Quelpr

CSEC Information Technology · January 2010 · Paper 1 · Question 12(c)(i)

Given that MARK is 50, state the line number corresponding to the code above that would print a result.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 12(a)Explain the difference between a 'syntax error' and a 'logic error'.[2 marks]
  2. 12(b)(i)Explain the execution of Line 1: 'If MARK > 50 Then print "Good"'.[1 mark]
  3. 12(b)(ii)Explain the execution of Line 2: 'If MARK >= 50 Then print "Day"'.[1 mark]
  4. 12(c)(ii)Write the result that would be printed when MARK is 50.[1 mark]

More practice: the rest of this paper · more Testing Algorithms questions · all CSEC Information Technology past papers