A programmer is writing a script and accidentally types FOR i = 1 TO 10 in a language that requires keywords to be lowercase (e.g., for). The translator immediately reports an error and stops. Which type of error is this?
Senior Secondary (HKDSE) · Information and Communication Technology
Program Testing and Debugging:練習問題
その場で採点される選択問題 5 問と、解説つきの記述問題 1 問。すべて「Program Testing and Debugging」からの出題です。
Which of the following sets of test data is the most appropriate for performing boundary value analysis on a program that accepts a student's age, where the valid range is an integer from 6 to 18 (inclusive)?
A programmer is developing a scientific simulation that involves repeatedly adding a very small constant, \( \epsilon = 10^{-16} \), to a large variable \( Sum \), which is initialized to \( 1.0 \). Both variables are stored as standard 64-bit double-precision floating-point numbers. After \( 10^7 \) iterations, the programmer observes that the value of \( Sum \) remains exactly \( 1.0 \).
Which of the following statements correctly identifies the type of numerical error occurring and the most effective debugging method to monitor the values of the variables during the loop execution?
A software module is designed to process user ages. The valid range for input is from 1 to 120, inclusive. Which of the following sets of test data is most appropriate for boundary value analysis?
During the debugging process of a complex program, a programmer uses a stub. What is the primary function of this technique?
A computer program is designed to only accept integer inputs from 1 to 50 inclusive. Identify one boundary case value that should be included in the test data to check the limits of the input range.
まず自分で答えを書いてから、解説と照らし合わせましょう。
※ thinkaのコンテンツはAIにより生成されているため、内容が正確でない場合があります。補助教材としてご使用いただき、公式の教材と合わせてご確認ください。
模範解答は見ました。次はあなたの答案を採点します。
このページは良い答案の形を示せますが、あなたの答案に何が足りないかは教えられません。thinka は実際の採点基準に沿って記述答案を約 15 秒で採点します。
同じような問題をもっと解きたい?このトピックの新しい問題を、解きながら採点。
練習を始める