Pre-Assessment V2 - 2026-2027 | Grade A |
Programming Logic & Problem Solving
Difficulty tags: B = Basic, I = Intermediate, A = Advanced
Competency tags: C1 = Algorithmic Logic, C2 = Constructs, C3 = Data
BASIC LEVEL (35 Qs)
Q1
Trace:
Copy
SET x ← 4
SET y ← x * 2
OUTPUT y
Output = ?
,A. 2
B. 4
C. 8
D. 16
Correct: C (8)
Diagnostic: C1-Basic: Arithmetic expression
Solution: 4×2=8
Distractors: A (divide), B (no operation), D (square)
Study Tip: Practice sequential arithmetic in pseudocode.
Q2
Which pseudocode correctly outputs the larger of two integers a and b?
Copy
A. IF a > b THEN OUTPUT a ELSE OUTPUT b
B. IF a = b THEN OUTPUT a ELSE OUTPUT b
C. OUTPUT a + b
D. OUTPUT a MOD b
,Correct: A
Diagnostic: C2-Basic: Simple selection
Solution: Selection compares a and b.
Distractors: B (equality only), C (sum), D (remainder)
Study Tip: Write if-else for min/max problems.
Q3
An algorithm sums integers 1→10. How many iterations are needed?
Copy
FOR i ← 1 TO 10
sum ← sum + i
END FOR
A. 8
B. 9
C. 10
D. 11
, Correct: C (10)
Diagnostic: C2-Basic: FOR-loop count
Solution: 1→10 inclusive = 10 iterations.
Distractors: Off-by-one errors
Study Tip: Trace small FOR loops manually.
Q4
Which data type is most appropriate to store a person’s age?
Copy
A. String
B. Float
C. Integer
D. Boolean
Correct: C (Integer)
Diagnostic: C3-Basic: Primitive type choice
Solution: Whole number → Integer.
Distractors: A (text), B (decimal), D (true/false)