Skip to content

Course home

Robust and secure programming

Robust and secure programming

EasyMediumHard
123456789101112131415161718
Question 15

In an earlier version of a drone flight-safety validation program, line 4 contained one syntax error and one logic error:

whli (droneAltitude < 10.0 and droneAltitude > 120.0)

The program is intended to repeatedly prompt the operator to re-enter a target flight altitude if their previous entry was not in the safe range of 10.0 to 120.0 metres inclusive.

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

Error typeDescription
Syntax error
Logic error
[2]
Markscheme

Robust and secure programming Questions

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

27 exam-style questions on AQA GCSE Computer Science Robust and secure programming. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank