wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Y10 Spring term revision

Total questions: 100

Worksheet time: 53mins

Name
Class
Date
1.

What symbol do you type in to add a short comment?

a)

"""

b)

#

c)

@

d)

/

2.

What does this function do?

input()

a)

Opens the CD tray.

b)

Asks the user to type something in.

c)

Displays the word 'input'.

d)

Exits the program.

3.

What is a variable?

a)

A number such as 25.

b)

Plus, minus, multiply, divide or equals.

c)

An array of text.

d)

A storage location in the program which stores a value.

4.

True or False:

5.0 is an example of the 'float' datatype.

a)

True

b)

False

5.

What is the process of converting one datatype to another called?

a)

Data conversion.

b)

Type Casting.

c)

Type Conversion.

d)

Concatenation.

6.

What is an integer?

a)

A number with a decimal point.

b)

A whole number.

c)

An array of characters.

d)

A single character.

7.

What function converts the data in a variable into a 'float'?

a)

int()

b)

flt()

c)

bool()

d)

float()

8.

Comments are used to make code easier to read.

a)

True

b)

False

9.

Variable names can start with...

a)

...only capital letters.

b)

...any number, letter or an underscore (_).

c)

...any letter or symbol.

d)

...any letter or an underscore (_).

10.

Concatenate the following variables into strings:


houseNumber

roadName

a)

streetAddress = houseNumber + roadName

b)

streetAddress = "houseNumber" + "roadName"

c)

streetAddress = 64 + Zoo Lane

d)

streetAddress = housenumber * roadName

11.

What does casting do?

a)

Changes a data type

b)

Magic

c)

Joins strings together

d)

Raises a number to a power

12.

What does concatenation do?

a)

Changes a data type

b)

Magic

c)

Joins strings together

d)

Raises a number to a power

13.

What common data type you would be used to count

a)

money

b)

integer

c)

float

d)

double

14.

What common data type is used to store decimal numbers such as 3.14 and 7.07?

a)

money

b)

integer

c)

float

d)

char

15.

Which data type is used to store:

100

a)

Integer

b)

Double

c)

Boolean

d)

String

16.

Which data type is used to store:

TRUE

a)

Boolean

b)

Double

c)

String

d)

Integer

17.

What type of data would you use to store the answer to 29 divided by 5?

a)

String

b)

Integer

c)

Real

d)

Character

18.

What type of data type would you use to store a password?

a)

Real

b)

String

c)

Integer

d)

Boolean

19.

What does the Python data type str stand for?

a)

string

b)

integer

c)

Boolean

d)

float

20.

What does the Python data type float stand for?

a)

string

b)

integer

c)

Boolean

d)

float

21.

What does the Python data type int stand for?

a)

string

b)

integer

c)

Boolean

d)

float

22.
Variables cannot be changed.
a)
False
b)
True
23.
Constants cannot be changed.
a)
True
b)
False
24.
Which of these values would be useful as a constant?
a)
Pi
b)
Di
c)
Ni
d)
Pie
25.
Which of these values would be used as a variable?
a)
Velocity
b)
Frequency
c)
0
d)
1
26.
Which of the following variables names is an example of camel case?
a)
totalScore
b)
TOTALSCORE
c)
TotalScore
27.

What is an input in python ?

a)

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

b)

To plug in something.

c)

Data displayed on a screen.

d)

A function

28.

What is the word (command) used to display numbers and text on the screen

a)

input

b)

output

c)

print

d)

command

29.

What is the Python built-in function to converts a string to a number?

a)

str()

b)

int()

c)

convert

d)

parseInt()

30.

What is the end after if statements?

a)

if

b)

Elif

c)

Else

d)

While

31.

Which of the following is a correctly-formatted comment?

a)

*Comment

b)

"Comment"

c)

#comment

d)

(comment)

32.

Which of the following pieces of code defines a list of all the numbers from 4 to 12?

a)

range(4,12)

b)

range(4, 13)

c)

range( 3,12)

d)

range(3, 13)

33.

In Python, the selection statements are also known as decision making statements or branching statements.

a)

True

b)

False

34.

What does the == mean in this code?

a)

Is

b)

Is equal to

c)

Is not equal to

d)

Is not

35.

To allow users to enter data we use the _________ function

a)

Print

b)

Input

c)

print

d)

Variable

36.

To display information to the user we use the _________ function.

a)

print

b)

Input

c)

PRINT

d)

imput

37.

To start a flowchart you use the __________ symbol.

a)

Decision

b)

Process

c)

Start

d)

Terminator

38.

What is Selection?

a)

A decision or question

b)

A button

c)

An answer

d)

A question

39.

What is a sequence?

a)

A decision or question

b)

An ordered list

c)

A set of step by step instructions that are carried out in the correct order.

d)

A set of step by step instructions that are carried out in the incorrect order.

40.

What is Iteration?

a)

A decision or question

b)

Repeating steps over and over again.

c)

A set of step by step instructions

d)

Instructions that follow in the incorrect order

41.

What are the two types of Iteration?

a)

Count Controlled, Condition Controlled

b)

Chloe Controlled, Charlotte Controlled

c)

Counted Controlled, Condition Controlled

d)

Controlled Count, Controlled Condition

42.

Choose the correct code

a)

favourite colour = imput("What is your fave colour?")

b)

Favourite_Colour = imput("What is your fave colour?")

c)

Favourite_Colour=input("What is your fave colour?")

d)

fave colour=inpu("What is your fave colour?")

43.

Which flowchart shape is this?

a)

Decision Box

b)

Input / Output box

c)

Process box

d)

Start / Stop box

44.

Which flowchart shape is this?

a)

Decision Box

b)

Input / Output box

c)

Process box

d)

Start / Stop box

45.

Which flowchart shape is this?

a)

Decision Box

b)

Input / Output box

c)

Process box

d)

Start / Stop box

46.

Which flowchart shape is this?

a)

Decision Box

b)

Input / Output box

c)

Process box

d)

Start / Stop box

47.

What is an algorithm?

a)

a step by step set of instructions

b)

a musical instrument

c)

a programming language

d)

a piece of hardware

48.
What is the correct definition of an algorithm?
a)
An algorithm is a step by step instructions to solve a problem.
b)
An algorithm is a process of baking bread.
c)
An algorithm is a software used to compute numbers.
d)
An algorithm is the process of breaking problems.
49.

An algorithm is a sequence of instructions that needs to be in the right order and it needs to be ......

a)

short

b)

precise

c)

complicated

d)

written in English

50.

This flowchart is made to...

a)

Calculate the area and perimeter of a square

b)

Output figures of different sizes

c)

Calculate the area and perimeter of a circle

d)

Find out how long it takes to get to the moon

51.

What is missing on the following flowchart?

a)

Arrows

b)

Flow lines

c)

Terminators

d)

Process symbols

52.

In this flowchart the diamond shape helps with...

a)

Deciding whether the student should pass or fail

b)

Adding up the student's marks

c)

Making sure the student gets good marks

d)

Checking the student's general behaviour

53.
What is the purpose of an arrow in a flowchart?
a)
Shows the relationships between shapes/ the flow of information
b)
They look nice when we use them
c)
We don't use arrows
d)
Shows the way the arrow is directed
54.

In your trace table, you need a column for each v (a)   , and a column for your output.

55.

What is a Trace Table?

a)

A trace table is a table to show the changes in an algorithm in a step by step by process

b)

A trace table is a table to show the changes in an program in a step by step by process

c)

A trace table is a table to show the changes logic states

56.

Why do we use Trace Tables?

a)

So we can make sure it works as intended e.g. it has no logic errors

b)

So we can translate it into different programming languages

c)

So we can translate it into different programming styles

57.
What components make up the Von Neumann Architecture?
a)
Memory unit, modem, router, Graphics/Sound card
b)
Input/output device, mother board , power supply
c)
Input device, memory unit, ALU, output device ,
d)
Peripherals, Optical drive, network card
58.
What does ALU stand for????
a)
Arithemetic logic unit
b)
Arithmetic logic unit
c)
Arithmetical logic unit
d)
Arithmetic logic unit
59.

The Memory Address Register (MAR) holds ...........

a)

Location of the CPU

b)

Location in memory of the instruction to be fetched or stored

c)

Location of the RAM

d)

Location of the data

60.

Which register is responsible for temporarily storing the data or program instruction fetched from memory

a)

Memory Address Register

b)

Program Counter

c)

Accumulator

d)

Memory Data Register

61.

Which register is responsible for storing the mathematical and logical calculations

a)

Memory Address Register

b)

Program Counter

c)

Accumulator

d)

Memory Data Register

62.

Which register is responsible for holding the memory address location of the next instruction

a)

Memory Address Register

b)

Program Counter

c)

Accumulator

d)

Memory Data Register

63.

True or False, the Arithmetic and Logic Unit is linked directly to the Accumulator?

a)

True

b)

False

64.

True or False, the buses are responsible for communicating the data transfer between the CPU and the Main Memory (RAM)

a)

True

b)

False

65.
During the Fetch-Decode-Execute cycle, the software to be run is located in main memory (RAM)
a)
True
b)
False
66.

The Fetch-Decode-Execute cycle runs continuously when the computer is turned on.

a)

True

b)

False

67.
Which of the following is not a component inside a processor?
a)
Memory
b)
Control Unit
c)
Arithmetic Logic Unit
d)
General Purpose Registers
e)
Text for option 5 (optional)
68.
The control unit does what?
a)
Connects parts of the CPU together.
b)
Performs arithmetic and logical operations on the data.
c)
Stores the outcomes of arithmetic and logic operations.
d)
Controls timing and control signals around the CPU.
69.
What does ALU stand for?
a)
Addition Logic Unit
b)
Arithmetic Logical Unit
c)
Arithmetic Logic Unit
d)
Algebra Logic Unit
70.
In which register does the Fetch Decode Execute cycle start in?
a)
Memory Address Register
b)
ALU
c)
Memory Data Register
d)
Program Counter
71.
What happens to the Program Counter after it has passed its address?
a)
It passes the next address
b)
It decodes the instruction
c)
It increments
d)
It decrement
72.
What gets passed to the MAR?
a)
The instruction
b)
Both the instruction and data
c)
The address to the next instruction or data
d)
The data
73.
The correct order is
a)
Fetch, Decode, Execute
b)
Decode, Execute, Fetch
c)
Execute, Decode, Fetch
d)
Decode, Fetch, Execute
74.
What is the purpose of the CPU?
a)
To process all the data and instructions.
b)
To turn the computer on.
c)
To create PowerPoint presentations.
d)
To provide power to the computer.
75.
1.1 b 
Which register is being described?
Stores the results of the calculations done by the ALU
a)
MAR
b)
MDR
c)
Accumulator
d)
Program Counter
76.
Which of the following is an example of 'main memory'.
a)
Hard Drive
b)
USB Drive
c)
RAM
d)
ROM
77.
What is a bus?
a)
A circuit that connect one part of CPU to other components.
b)
A type of long term memory
c)
A type of permanent memory
d)
A method of transport
78.
Which of the following adjustments to an internal component could improve the performance of a CPU?
a)
Add more cores
b)
Decrease the cache
c)
Get a bigger motherboard
d)
Remove the OS
79.
What happens if you increase the clock speed?
a)
CPU can process instructions quicker
b)
CPU can process more instructions at the same time
c)
CPU will explode
d)
CPU processes too fast for the cache to handle
80.

Describe the tasks that the control unit carries out

a)

Fetches the data/instructions, decodes it and sends the signals via buses to the hardware components.

b)

Carries out calculations and comparisons, to see if one value is larger than another.

81.
What happens during the fetch stage?
a)
The CPU fetches data and instructions from main memory and stores them in its own registers.
b)
The CPU fetches instructions from the hard drive.
c)
The CPU fetches instructions from the ROM
d)
The CPU fetches data and instructions from the registers
82.
What is the purpose of the CPU's registers?
a)
These are used to permanently store data and instructions
b)
These are used to temporarily store data and instructions.
c)
They are used to keep track of the CPU speed.
d)
They are used to check the CPU's processing power
83.
RAM is a type of volatile memory. What does the term volatile mean?
a)
That all programs are permanently stored.
b)
That it does not need power to save programs and data.
c)
That all information stored in RAM will be lost if the power is switched off.
d)
That RAM has a big capacity.
84.
What is virtual memory?
a)
This is like virtual reality
b)
Virtual memory is very fast memory
c)
This is where part of the hard drive is used as an extension to RAM
d)
This is where virtual memory fetches information.
85.
What is the main purpose of the ROM?
a)
Stores the operating system.
b)
To save information on.
c)
Stores the boot program which gets the computer started and operating system loaded.
d)
To store programs and data which are currently being used.
86.
What does the RAM store?
a)
The RAM stores all programs and data when the computer is switched off.
b)
All programs and data that are currently being used.
c)
The RAM stores numbers.
d)
The RAM stores personal information.
87.

Secondary storage devices can be grouped into three categories - what are they?

a)

Magnetic, Flash and Optical

b)

Magnetic, Optical and Solid State

c)

Solid State, Flash and Hard Drives

d)

Hard Drives, CDs and USBs

88.

Hard Disk Drives are a type of...

a)

Optical storage device

b)

Magnetic storage device

c)

Solid State memory

d)

Primary memory

89.

CDs, DVDs and Blu-Rays are all types of...

a)

Magnetic storage devices

b)

Optical storage devices

c)

Solid State memory

d)

Primary memory

90.

Magnetic tape storage is what kind of device...

a)

Solid state memory

b)

Optical storage

c)

Magnetic storage

d)

Primary memory

91.

What category of storage device is a HD card?

a)

Magnetic

b)

Optical

c)

Solid state

d)

Primary memory

92.

What category of storage is a Blu-Ray disk?

a)

Magnetic

b)

Optical

c)

Solid State

d)

Primary memory

93.

Which of the 3 categories of secondary storage is the least durable due to its moving parts?

a)

Optical storage

b)

Primary memory

c)

Solid state storage

d)

Magnetic storage

94.

Which optical storage device has an average memory size of around 4.7GB?

a)

CD

b)

DVD

c)

Blu-Ray

d)

USB flash drive

95.

Which category of secondary storage devices has the fastest access speeds? (i.e. quicker to read and write to)

a)

Magnetic storage

b)

Solid state storage

c)

Primary memory

d)

Optical memory

96.

Which category of secondary storage devices uses beams of light and lasers that read "pits" and "lands" as binary 1s and 0s?

a)

Magnetic storage

b)

Optical storage

c)

Solid state storage

97.

Which category of secondary storage devices uses semiconductor chips to store data? It is also known as flash memory.

a)

Magnetic storage

b)

Optical storage

c)

Solid state

98.

Which of the TWO categories of secondary storage devices are highly portable? (i.e. easy to carry)

a)

Magnetic and Optical

b)

Solid state and Optical

c)

Solid state and Magnetic

99.

Which of the secondary storage categories are the most durable (or strong/ toughest to break)?

a)

Magnetic

b)

Solid State

c)

Optical

d)

Primary memory

100.

Which of the 3 categories of secondary storage are the cheapest to buy, per megabyte (MB)?

a)

Magnetic

b)

Optical

c)

Solid State