wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Paper 2 Revision quiz

Total questions: 27

Worksheet time: 15mins

Name
Class
Date
1.
What is abstraction?
a)
A painting
b)
A programming language
c)
This means focusing on the important details and ignoring the irrelevant information
d)
Abstraction is the breaking down of a big problem into smaller parts.
2.
What does decomposition mean?
a)
focuses on the important information only, ignoring irrelevant detail
b)
Step by step instructions on solving a problem.
c)
Thinking like a computer
d)
This is the breaking down of a complex problem into smaller parts
3.
What is an algorithm?
a)
A sequence of instructions on how to solve a problem.
b)
The breaking down of a problem into smaller parts.
c)
Focusing on important parts and ignoring the irrelevant details
d)
The recipe for a cake
4.
What is a flowchart?
a)
A visual representation of an algorithm using symbols
b)
Using 'fake code' to plan an algorithm
c)
Using a programming language to show an algorithm
d)
Uisng different types of charts to show an algorithm
5.
What does the following symbol represent in a flowchart?
a)
An input
b)
Start
c)
End
d)
A process
6.
What does the following flowchart symbol represent?
a)
A process
b)
An output
c)
A decision (choice)
d)
End
7.
What does the following flowchart symbol represent?
a)
Input / Output
b)
Start of flowchart
c)
A process
d)
End
8.
What does the following flowchart symbol represent?
a)
Process
b)
Input
c)
Start / End
d)
Sub-process
9.
A program won't run if there is a logic error.
a)
False
b)
True
10.

Which has integer data type?

a)

Phone number

b)

Zip code

c)

HN

d)

Number of students in the class

11.
what is 8%2
a)
0
b)
16
c)
24
d)
86
12.
Code executed based on a condition being true
a)
Sequence
b)
Selection
c)
Iteration
d)
Variable
13.
What does the term 'debug' mean?
a)
Identify errors and fix them.
b)
Making a calculation
c)
A set of instructions
d)
Looking at code
14.

What will be the output?

name = "Dave"

print (name)

a)

Dave

b)

name

c)

"Dave"

d)

(name)

15.

What is a input?

a)

To plug in something

b)

A function that allows us to ask the user to enter some data

c)

Data displayed on a screen

d)

A routine

16.

A variable must have been assigned (given) a value before that value is referenced (used).

a)

True

b)

False

17.

You assign a value to a variable with which symbol

a)

@

b)

==

c)

=

d)

*

18.
What operators is this ==
a)
not equal to 
b)
equal to
c)
Greater than 
d)
Greater than or equal to 
19.
What operators is this !=
a)
not equal to 
b)
equal to
c)
Greater than 
d)
Greater than or equal to 
20.
What operators is this >=
a)
Less than
b)
Less than or equal to
c)
Greater than 
d)
Greater than or equal to 
21.

What is the boolean expression for this logic circuit?

a)

Q = NOT (A OR B)

b)

Q = NOT A AND B

c)

NOT A OR B = Q

d)

Q = (NOT A) OR B

22.

This is the truth table for which logic gate?

a)
b)
c)
23.

Which logic gate is this?

a)

AND

b)

NOT

c)

OR

24.

Which logic gate is this?

a)

AND

b)

OR

c)

NOT

25.

Which logic gate is this?

a)

AND

b)

OR

c)

NOT

26.

What will be the output of this program if the user enters "Han" and then "Solo"?

a)

An error

b)

Nothing

c)

first surname

d)

Han Solo

27.
How do you correctly call this function
a)
def(1)
b)
x=square( )
c)
defSquare(4)
d)
x=square(5)