Robust and secure programming

EasyMediumHard
123456789101112131415161718
Question 10
Easy

In a previous draft of a Python program designed to validate user input, line 4 contained one syntax error and one logic error:

whlie guess < 1 or guess >= 50:

The program is intended to ensure that a user's guess is within the inclusive range of 1 to 50.

Complete the table to describe both errors on line 4.

Error typeDescription
Syntax error
Logic error
[2]

Robust and secure programming Questions

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