2024 Senior CS ZedICTHub Pascal Answers
2024 Senior CS ZedICTHub Pascal Answers
Name: ………………………………………………
This marking scheme may contain errors, please review and adjust accordingly
2. Differences Explained
Write outputs text or values without moving to a new line after printing.
Writeln outputs text or values and moves the cursor to the next line, making it
useful for separating lines of output.
https://zedicthub.blogspot.com/
Page 2 of 3
(c) := and =:
L7: Read(b);
L9: average := sum / 2;
L12: END.
In Pascal, keywords, variable names, and function names are not case-sensitive. This
means that identifiers like MyVar, myvar, and MYVAR would all be treated as the same
name.
{ This is a
multi-line comment }
https://zedicthub.blogspot.com/
Page 3 of 3
PROGRAM ExampleProgram;
VAR
a: Integer;
BEGIN
// Program statements here
END.
1. FOR
2. WHILE
3. REPEAT…UNTIL
https://zedicthub.blogspot.com/