Pseudocode
You may be required to write an algorithm using pseudocode
or to interpret an algorithm written in pseudocode.
In general, a pseudocode is similar to program written in Pascal.
So there is no need to ‘learn’ how to write if you know how to write in Pascal.
Some tips:
|
Pascal |
Pseudocode |
Loop |
For i := 1 to n do |
For i from 1 to n do |
Assign |
n := 1 |
n ß
1 |
Return a result from a function Sample |
sample := true |
Return true |
Display on the screen |
Writeln (a) |
Display a |
Relevant past paper:
Write pseudocode
DSE ICT Elect B(SP-2017):
PP 1ai. 2013 1biii. 2014 2cii. 2015 3bi,c,4d. 2016 2b,d,3b,4b. 2017 1bii,
4b,cii.
CE CIT Elect A(2005-2011): 2008 2c. 2009 3d. 2010 1bii,c. 2011
1bc,3eii.
Comprehension
DSE ICT Elect B(SP-2017): SP 1. PP 1ab. 2012 1ab, 4b. 2013 1,2,3dii,iii. 2014 4ab. 2015 1abci,ii. 2016 1c,4a. 2017 2a-d.