COMP2 GCSE Computer Science Revision Workbook
COMP2 GCSE Computer Science Revision Workbook
Why must data be converted into binary for a computer to process it?
Nibble
Byte (B)
Kilobyte (KB)
Megabyte (MB)
Gigabyte (GB)
Terabyte (TB)
Petabyte (PB)
Exam Questions
1. Put these units in order of size: Gigabyte, Kilobyte, Nibble, Megabyte, Byte
2. Where does the unit ‘bit’ originate from?
U1L2: Binary Numbers
Converting Binary-Denary
00110101
Converting Denary-Binary
218
Binary Shifts
Shift 01001010 left two places
Denary-Hexadecimal
199
Hexadecimal-Binary
3E
Hexadecimal-Denary
9B
Mid-Unit Review
U1L4: Logic
AND OR NOT XOR
Q = ¬A v (B ^ C)
Q = ¬(A v B) ^ C
U1L5: Characters
What is a character?
Extended-ASCII
Unicode
U1L6: Images
How are images represented by a computer?
What is metadata?
What is resolution?
Mid-Unit Review
U1L7: Sound
How is sound represented by a computer?
Mid-Unit Review
Unit 2: Algorithms
Paper 2: Computational Thinking, Algorithms & Programming
What is Abstraction?
What is Decomposition?
Exam Questions
1. A file uploading service won’t allow two files with the same file name to be uploaded.
If a file name already exists, it will ask the user to change the file name.
a. Describe, with examples, how abstraction can help decide how to compare the
files.
b. Describe, with examples, how decomposition could be used to help program
this task.
U2L2: Searching Algorithms
What is a Binary Search?
Draw a flowchart to check if a new username is valid. Usernames should be at least five
characters long and unique. If it’s invalid, the algorithm should give the reason why and get
the user to enter another username.
U2L6: Interpreting, Correcting & Completing Algorithms
This page is intentionally blank. You should use this to practice developing your algorithmic
thinking skills.
Unit 3: Programming
Paper 2: Computational Thinking, Algorithms & Programming
What is a constant?
What is an input?
What is an output?
What is concatenation?
Identify some of the key string manipulation commands below, writing them as Python
programs.
U3L6: Sub-Programs
What is a sub-program?
Write some sub-programs in Python below, including at least one function and procedure.
U3L7: File Handling
What is file handling?
What is SQL?
Write some SQL commands to query this table, and show the output when this query is run.
U3L10: Defensive Design
Why should programs be carefully designed?
What is authentication?
Draw a test plan to test a login system that uses a username and password.
U3L12: Translators
What are the different levels of programming language?
Type of Language Description
What is a translator?
What is an assembler?
What is a compiler?
What is an interpreter?
Pseudocode Keywords
PRINT INPUT OUTPUT
NEXT WHILE END
DO UNTIL IF
ELSE ELSEIF ENDIF
GET REPEAT FOR
SELECT STORE SWITCH
FUNCTION ENDFUNCTION PROCEDURE
ENDPROCEDURE WHERE AND
OR START STOP
ADD MULTIPLY DIVIDE
MOD DIV SUBTRACT
*NB Not an exhaustive list