Senior Secondary (HKDSE) · Information and Communication Technology

Program Testing and Debugging: แบบฝึกหัด

ข้อปรนัย 5 ข้อ ตรวจให้ทันทีที่ตอบ และข้อเขียน 1 ข้อ พร้อมวิธีทำละเอียด ทั้งหมดจากเรื่อง Program Testing and Debugging

6 ข้อ7 คะแนนฟรี ไม่ต้องสมัคร
ข้อ 1
1 คะแนน

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?

ข้อ 2
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)?

ข้อ 3
1 คะแนน

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?

ข้อ 4
1 คะแนน

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?

ข้อ 5
1 คะแนน

During the debugging process of a complex program, a programmer uses a stub. What is the primary function of this technique?

ข้อ 6
2 คะแนน

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 วินาที

อยากฝึกโจทย์แบบนี้เพิ่มไหม เริ่มฝึกหัวข้อนี้ได้เลย ตรวจให้ทันทีทุกข้อ

เริ่มฝึกเลย