Question
Identify the purpose of the following algorithm pseudocode.
BEGIN READ number IF number > 0 THEN WRITE “Positive” ELSE IF number < 0 THEN WRITE “Negative” ELSE WRITE “Zero” END IF END
1 mark · take your time before peeking.
Sign up to try the next 30 problems
Save your streak, mark answers against the spec, and build a daily revision habit. Free during public beta — no card, no auto-renew.
Generated by TopMyGrade AI · cross-check official sources before relying on the mark-scheme phrasing.