wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Paper 2 Revision - IGCSE Computer Science

Total questions: 12

Worksheet time: 16mins

Name
Class
Date
1.

Put the stages of the program development life-cycle in order

a)

Analysis

b)

Design

c)

Coding

d)

Testing

1)
2)
3)
4)
2.

Decomposition describes the process of...

a)

Explaining how your program works

b)

Code becoming difficult to test as it gets larger

c)

Breaking a large problem into smaller pieces

d)

Testing a program

3.

Which of these is not a method used in the design stage of the program lifecycle?

a)

Python

b)

Pseudocode

c)

Structure Diagram

d)

Flowchart

4.

Match the type of validation check to the mistake the user made during data entry

a)

Range check

1.

The user tried to enter their age with a negative number

b)

Length check

2.

The user's password is too short

c)

Type check

3.

The user entered their age as a word instead of a number

d)

Format check

4.

The user forgot to include '@' in their email

e)

Presence check

5.

The user left part of the form blank

5.

Match the types of errors a programmer has made to its appropriate name

a)

Trying to access an element in an array that does not exist

1.

Index Error

b)

Forgetting to use brackets after print

2.

Syntax Error

c)

The program runs, but produces the wrong answer

3.

Logic Error

6.

Match the example data with the appropriate data type

a)

"Hello"

1.

String

b)

True

2.

Boolean

c)

3.5

3.

Float / Real

d)

'g'

4.

Char

e)

42

5.

Integer

7.

Match the programming key terms with their definition

a)

WHILE...DO

1.

Pre-condition loop

b)

FOR...TO...NEXT

2.

Count-controlled loop

c)

REPEAT...UNTIL

3.

Post-condition loop

d)

IF

4.

Selection

e)

PRINT

5.

User output

8.

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.

Choose from the below words
function
does
parameter
local
global
does not
procedure
9.

a = true, b = true, c = false

x = not((a and b) and (b or c))​

The final value of x is ​ (a)  

Choose from the below words
false
true
10.

Match the following

a)

open("file.txt", w)

1.

Create a new empty file and then add data

b)

open("file.txt", a)

2.

Append data to an existing file

c)

open("file.txt", r)

3.

Read data from an existing file

11.

Put the following steps of working with text files in order

a)

Open the file

b)

Read/write data to the file

c)

Close the file

1)
2)
3)
12.

Label the following logic gates