Quelpr

CSEC Information Technology · 2011 · Paper 2 · Question 10(a)

A program reads two characters comprising *, or # into a 6-index array named TEST. Assuming that the array and all variables are already initialized, write a program fragment to:

initialize the array

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 10(b)print the number of stars (*) in the array[6 marks]
  2. 10(c)print the comment 'NO' for all characters other than * or # in the array.[6 marks]

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