Quelpr
1 markPaper 1 · Multiple choiceTesting Algorithms

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

Item 55 refers to the following pseudocode. Read A, B If A < 2 C ← 2 Else C ← 6 End if D ← C*B+2 Write D What is printed by the pseudocode if the input values are 5 and 2 respectively?

  1. (A)6
  2. (B)12
  3. (C)14
  4. (D)24

The answer is shown once you've answered.

Practise this question

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