Try 6 real questions from May/June 2022
These are real past-paper questions. Think of your answer first, then open the explanation.
May/June 2022 · Paper 1 · Data representation
All data needs to be converted to binary data so that it can be processed by a computer. (a) Explain why a computer can only process binary data. (b) The denary values 64, 101 and 242 are converted to 8-bit binary values. Give the 8-bit binary value for each denary value. (c) The hexadecimal values 42 and CE are converted to binary. Give the binary value for each hexadecimal value.
Show model answer
(a) Computer circuits have two states (on/off, high/low voltage) which are naturally represented by the two binary digits 0 and 1; this makes processing reliable and simple.
(b) 64 = 01000000; 101 = 01100101; 242 = 11110010.
(c) 42 (hex) = 01000010; CE (hex) = 11001110.
64=01000000, 101=01100101, 242=11110010; 42h=01000010, CEh=11001110.
May/June 2022 · Paper 1 · Hardware and software
A compiler and an interpreter are two different types of translator. (a) One similarity between a compiler and an interpreter is that they both translate high-level language into machine code. (i) Give one other similarity between a compiler and an interpreter. (ii) Explain two differences between a compiler and an interpreter.
Show model answer
(a)(i) Other similarity: both produce error messages for syntax errors; both are needed to run a high-level program; both produce low-level code.
(a)(ii) Difference 1: a compiler translates the whole program at once and produces a separate executable file (the program can then run without the compiler), whereas an interpreter translates and executes one line/statement at a time (the interpreter is needed each time the program runs). Difference 2: with a compiler, errors are listed after the whole program is checked (so execution only happens once all errors are fixed); with an interpreter, errors are found and reported as each line is executed (easier to debug but slower to run).
Compiler: whole program -> executable, faster run. Interpreter: line-by-line, easier debugging, slower.
May/June 2022 · Paper 1 · The internet, networks and security
Many devices have a Media Access Control (MAC) address. Give three features of a MAC address.
Show model answer
Any three: it is unique to each device (no two devices share the same MAC); it is permanently burned into the Network Interface Card (NIC) / cannot be changed; it is 48 bits (6 bytes) long; it is written in hexadecimal; it is assigned by the manufacturer.
MAC = unique, permanent, 48-bit, hexadecimal.
May/June 2022 · Paper 1 · The internet, networks and security
Computer ethics are a concern for any users of the Internet. Identify and describe three ethical issues that could be a concern when using the Internet.
Show model answer
Any three, each identified and described, e.g.:
1. Plagiarism - copying someone else's work/ideas and presenting them as your own.
2. Copyright infringement / software piracy - illegally downloading or sharing copyrighted material (music, software, games).
3. Invasion of privacy / data protection - collecting or sharing personal data without consent.
(Other valid: hacking, cyberbullying, identity theft, spreading fake news, censorship.)
Ethical issues: plagiarism, piracy, privacy, hacking, cyberbullying.
May/June 2022 · Paper 2 · Programming
Section B. Tick one box in each row to identify the most appropriate data type for each description. Only one tick per column. Description / Data type (Boolean, Char, Integer, Real, String): a single character from the keyboard; multiple characters from the keyboard; only one of two possible values; only whole numbers; any number.
Show model answer
a single character from the keyboard -> Char.
multiple characters from the keyboard -> String.
only one of two possible values -> Boolean.
only whole numbers -> Integer.
any number -> Real.
Char=single char, String=many chars, Boolean=2 values, Integer=whole, Real=any number.
May/June 2022 · Paper 2 · Algorithm design and problem solving
Give one piece of normal test data and one piece of erroneous test data that could be used to validate the input of an email address. State the reason for your choice in each case.
Show model answer
Normal test data: e.g. "student@example.com" - it is a valid email containing an @ symbol and a domain, so it should be accepted.
Erroneous test data: e.g. "studentexample.com" (no @ symbol) - it is missing the @ symbol so it should be rejected by the validation.
(Other valid: erroneous = "student@" missing domain.)
Normal = valid format accepted; erroneous = invalid format rejected.