Robust and secure programming

EasyMediumHard
123456789101112131415161718
Question 8
Easy

In an earlier version of an exam score validation program, line 2 contained one syntax error and one logic error:

whlie (studentScore < 0 and studentScore > 50)

The program is intended to repeatedly prompt the user to re-enter a score if their previous entry was not in the valid range of 0 to 50 inclusive.

Complete the table to describe the syntax error and the logic error on this line.

Error typeDescription
Syntax error
Logic error
[2]

Robust and secure programming Questions

  1. GCSE
  2. /Computer Science
  3. /Robust and secure programming