129761-2015-syllabus
129761-2015-syllabus
129761-2015-syllabus
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Syllabus content<br />
2.2 Data representation<br />
Candidates should be able to:<br />
2.2.1 Data types<br />
• select appropriate data types for a problem solution<br />
• use in practical programming the data types that are common to procedural high-level languages:<br />
integer, real, char, string, Boolean, date (pseudocode will use the following data types:<br />
INTEGER, REAL, CHAR, STRING, BOOLEAN, DATE, ARRAY, FILE)<br />
• show understanding of how character and string data are represented by software including the<br />
ASCII and Unicode character sets<br />
2.2.2 Arrays<br />
• use the technical terms associated with arrays including upper and lower bound<br />
• select a suitable data structure (1D or 2D array) to use for a given task<br />
• use pseudocode for 1D and 2D arrays (pseudocode will use square brackets to contain the array<br />
subscript, for example a 1D array as A[1:n] and a 2D array as C[1:m, 1:n])<br />
• write program code using 1D and 2D arrays<br />
• write algorithms/program code to process array data including:<br />
○<br />
○<br />
2.2.3 Files<br />
sorting using a bubble sort<br />
searching using a linear search<br />
• show understanding of why files are needed<br />
• use pseudocode for file handling:<br />
OPENFILE FOR READ/WRITE/APPEND // Open file (understand the<br />
difference between various file modes)<br />
READFILE , // Read a line of text from the file<br />
WRITEFILE , // Write a line of text to the file<br />
CLOSEFILE<br />
// Close file<br />
EOF() // function to test for the end of the file<br />
• write program code for simple file handling of a text file, consisting of several lines of text<br />
26 Cambridge International AS and A Level Computer Science 9608. Syllabus for examination in <strong>2015</strong>.