Skip to content

Course home

Sign up

Computational thinking

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
Question 77

An algorithm designed to find the mean of three values, xxx, yyy, and zzz, contains the instruction:

Mean←x+y+z/3 \text{Mean} \leftarrow x + y + z / 3 Mean←x+y+z/3

The algorithm executes to completion without any system errors or crashes, but produces incorrect outputs.

Explain why this mistake is classified as a logic error rather than a syntax error.

[1]
Markscheme

Computational thinking Questions

  1. GCSE
  2. /Computer Science
  3. /Computational thinking

Question bank