Quelpr

Other parts of this question

  1. 10(a)(i)State the output from the program when 4 is input for both X and Y.[2 marks]
  2. 10(a)(ii)State the line number that produced the output statement in (a)(i) above.[1 mark]
  3. 10(a)(iii)The output suggests an error exists. State the name of the type of error.[1 mark]
  4. 10(a)(iv)State the line number in which the error exists and rewrite the program code that would correct the error.[2 marks]
  5. 10(a)(v)State the type of structure that is used in lines 7 to 9.[1 mark]
  6. 10(b)(ii)State the line number in which the statement in (b)(i) above could be appropriately inserted.[1 mark]

More practice: the rest of this paper · more Declaring Variables and Constants questions · all CSEC Information Technology past papers