Quelpr

CSEC Information Technology · January 2013 · Paper 2 · Question 9(e)(ii)

The following sets of values are input: Set A: Num1 = 0, Num2 = 5; Set B: Num1 = 2.5, Num2 = 5.

If an error is produced, indicate whether the value in Num1 or Num2 has caused the error.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 9(a)State the name of the programming language used to write the code.[1 mark]
  2. 9(b)Explain whether the code in lines 5 to 10 represents a loop, selection, or sequence of statements.[2 marks]
  3. 9(c)State the specific purpose of the writeln command.[1 mark]
  4. 9(d)Write the output from the program when Num1 = 3 and Num2 = 4.[8 marks]
  5. 9(e)(i)For EACH set of values, state whether a logic error, syntax error or no error is produced.[2 marks]

More practice: the rest of this paper · more Program Checks and Tests questions · all CSEC Information Technology past papers