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?
高中 (HKDSE) · 資訊及通訊科技
程式測試和除錯:練習題
5 條多項選擇題即時批改,另有 1 條文字題附完整解題步驟,全部圍繞「程式測試和除錯」。
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生成,可能並非總是準確或最新。請將其用作輔助資源,並與官方材料進行核實。
想多做幾條同類題目?立即開始練習呢個課題,即做即批改。
立即練習