Quelpr

CSEC Information Technology · January 2010 · Paper 1 · Question 13(a)(i)

A Pascal program segment is given with numbered lines 1 to 10.

Write the line number(s) that contain code to identify input.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 13(a)(ii)Write the line number(s) that contain code to identify declaration.[2 marks]
  2. 13(a)(iii)Write the line number(s) that contain code to identify output.[1 mark]
  3. 13(b)The program contains FOUR errors. For EACH error, write the line number and the corrected line of code.[4 marks]
  4. 13(c)(i)Identify a variable from the program segment.[1 mark]
  5. 13(c)(ii)Identify a conditional statement from the program segment.[1 mark]
  6. 13(c)(iii)Identify a data type from the program segment.[1 mark]
  7. 13(d)Explain the purpose of the program segment.[3 marks]
  8. 13(e)(i)State the result when value1 = 40, value2 = 50 is used in the corrected program.[2 marks]
  9. 13(e)(ii)State the result when value1 = 50, value2 = 40 is used in the corrected program.[2 marks]
  10. 13(e)(iii)State the result when value1 = 50, value2 = 50 is used in the corrected program.[2 marks]

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