Font size
WorksheetsPaper 2 Revision - IGCSE Computer Science
Total questions: 12
Worksheet time: 16mins
Put the stages of the program development life-cycle in order
Analysis
Design
Coding
Testing
Decomposition describes the process of...
Explaining how your program works
Code becoming difficult to test as it gets larger
Breaking a large problem into smaller pieces
Testing a program
Which of these is not a method used in the design stage of the program lifecycle?
Python
Pseudocode
Structure Diagram
Flowchart
Match the type of validation check to the mistake the user made during data entry
Range check
The user tried to enter their age with a negative number
Length check
The user's password is too short
Type check
The user entered their age as a word instead of a number
Format check
The user forgot to include '@' in their email
Presence check
The user left part of the form blank
Match the types of errors a programmer has made to its appropriate name
Trying to access an element in an array that does not exist
Index Error
Forgetting to use brackets after print
Syntax Error
The program runs, but produces the wrong answer
Logic Error
Match the example data with the appropriate data type
"Hello"
String
True
Boolean
3.5
Float / Real
'g'
Char
42
Integer
Match the programming key terms with their definition
WHILE...DO
Pre-condition loop
FOR...TO...NEXT
Count-controlled loop
REPEAT...UNTIL
Post-condition loop
IF
Selection
User output
In the Python code, greeting is an example of a (a) because it (b) have a return value.
greeting has one (c) called name.
Inside greeting, there is a variable called message. This is an example of a (d) variable because message can not be accessed from outside greeting.
a = true, b = true, c = false
x = not((a and b) and (b or c))
The final value of x is (a)
open("file.txt", w)
Create a new empty file and then add data
open("file.txt", a)
Append data to an existing file
open("file.txt", r)
Read data from an existing file
Put the following steps of working with text files in order
Open the file
Read/write data to the file
Close the file
Label the following logic gates
