Quelpr
1 markPaper 1 · Multiple choiceDeclaring Variables and Constants

CSEC Information Technology · May/June 2017 · Paper 1 · Question Q60

A computer programmer is coding an algorithm which calculates the class average for a given exam. He creates a variable called class_avg. Which data type should he specify when declaring this variable?

  1. (A)Integer
  2. (B)Real
  3. (C)Boolean
  4. (D)Character

The answer is shown once you've answered.

Practise this question

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