Font size
WorksheetsY10 Spring term revision
Total questions: 100
Worksheet time: 53mins
What symbol do you type in to add a short comment?
"""
#
@
/
What does this function do?
input()
Opens the CD tray.
Asks the user to type something in.
Displays the word 'input'.
Exits the program.
What is a variable?
A number such as 25.
Plus, minus, multiply, divide or equals.
An array of text.
A storage location in the program which stores a value.
True or False:
5.0 is an example of the 'float' datatype.
True
False
What is the process of converting one datatype to another called?
Data conversion.
Type Casting.
Type Conversion.
Concatenation.
What is an integer?
A number with a decimal point.
A whole number.
An array of characters.
A single character.
What function converts the data in a variable into a 'float'?
int()
flt()
bool()
float()
Comments are used to make code easier to read.
True
False
Variable names can start with...
...only capital letters.
...any number, letter or an underscore (_).
...any letter or symbol.
...any letter or an underscore (_).
Concatenate the following variables into strings:
houseNumber
roadName
streetAddress = houseNumber + roadName
streetAddress = "houseNumber" + "roadName"
streetAddress = 64 + Zoo Lane
streetAddress = housenumber * roadName
What does casting do?
Changes a data type
Magic
Joins strings together
Raises a number to a power
What does concatenation do?
Changes a data type
Magic
Joins strings together
Raises a number to a power
What common data type you would be used to count
money
integer
float
double
What common data type is used to store decimal numbers such as 3.14 and 7.07?
money
integer
float
char
Which data type is used to store:
100
Integer
Double
Boolean
String
Which data type is used to store:
TRUE
Boolean
Double
String
Integer
What type of data would you use to store the answer to 29 divided by 5?
String
Integer
Real
Character
What type of data type would you use to store a password?
Real
String
Integer
Boolean
What does the Python data type str stand for?
string
integer
Boolean
float
What does the Python data type float stand for?
string
integer
Boolean
float
What does the Python data type int stand for?
string
integer
Boolean
float
What is an input in python ?
A function that allows us to ask the user to enter some data.
To plug in something.
Data displayed on a screen.
A function
What is the word (command) used to display numbers and text on the screen
input
output
command
What is the Python built-in function to converts a string to a number?
str()
int()
convert
parseInt()
What is the end after if statements?
if
Elif
Else
While
Which of the following is a correctly-formatted comment?
*Comment
"Comment"
#comment
(comment)
Which of the following pieces of code defines a list of all the numbers from 4 to 12?
range(4,12)
range(4, 13)
range( 3,12)
range(3, 13)
In Python, the selection statements are also known as decision making statements or branching statements.
True
False
What does the == mean in this code?
Is
Is equal to
Is not equal to
Is not
To allow users to enter data we use the _________ function
Input
Variable
To display information to the user we use the _________ function.
Input
imput
To start a flowchart you use the __________ symbol.
Decision
Process
Start
Terminator
What is Selection?
A decision or question
A button
An answer
A question
What is a sequence?
A decision or question
An ordered list
A set of step by step instructions that are carried out in the correct order.
A set of step by step instructions that are carried out in the incorrect order.
What is Iteration?
A decision or question
Repeating steps over and over again.
A set of step by step instructions
Instructions that follow in the incorrect order
What are the two types of Iteration?
Count Controlled, Condition Controlled
Chloe Controlled, Charlotte Controlled
Counted Controlled, Condition Controlled
Controlled Count, Controlled Condition
Choose the correct code
favourite colour = imput("What is your fave colour?")
Favourite_Colour = imput("What is your fave colour?")
Favourite_Colour=input("What is your fave colour?")
fave colour=inpu("What is your fave colour?")
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
Which flowchart shape is this?
Decision Box
Input / Output box
Process box
Start / Stop box
What is an algorithm?
a step by step set of instructions
a musical instrument
a programming language
a piece of hardware
An algorithm is a sequence of instructions that needs to be in the right order and it needs to be ......
short
precise
complicated
written in English
This flowchart is made to...
Calculate the area and perimeter of a square
Output figures of different sizes
Calculate the area and perimeter of a circle
Find out how long it takes to get to the moon
What is missing on the following flowchart?
Arrows
Flow lines
Terminators
Process symbols
In this flowchart the diamond shape helps with...
Deciding whether the student should pass or fail
Adding up the student's marks
Making sure the student gets good marks
Checking the student's general behaviour
In your trace table, you need a column for each v (a) , and a column for your output.
What is a Trace Table?
A trace table is a table to show the changes in an algorithm in a step by step by process
A trace table is a table to show the changes in an program in a step by step by process
A trace table is a table to show the changes logic states
Why do we use Trace Tables?
So we can make sure it works as intended e.g. it has no logic errors
So we can translate it into different programming languages
So we can translate it into different programming styles
The Memory Address Register (MAR) holds ...........
Location of the CPU
Location in memory of the instruction to be fetched or stored
Location of the RAM
Location of the data
Which register is responsible for temporarily storing the data or program instruction fetched from memory
Memory Address Register
Program Counter
Accumulator
Memory Data Register
Which register is responsible for storing the mathematical and logical calculations
Memory Address Register
Program Counter
Accumulator
Memory Data Register
Which register is responsible for holding the memory address location of the next instruction
Memory Address Register
Program Counter
Accumulator
Memory Data Register
True or False, the Arithmetic and Logic Unit is linked directly to the Accumulator?
True
False
True or False, the buses are responsible for communicating the data transfer between the CPU and the Main Memory (RAM)
True
False
The Fetch-Decode-Execute cycle runs continuously when the computer is turned on.
True
False
Which register is being described?
Stores the results of the calculations done by the ALU
Describe the tasks that the control unit carries out
Fetches the data/instructions, decodes it and sends the signals via buses to the hardware components.
Carries out calculations and comparisons, to see if one value is larger than another.
Secondary storage devices can be grouped into three categories - what are they?
Magnetic, Flash and Optical
Magnetic, Optical and Solid State
Solid State, Flash and Hard Drives
Hard Drives, CDs and USBs
Hard Disk Drives are a type of...
Optical storage device
Magnetic storage device
Solid State memory
Primary memory
CDs, DVDs and Blu-Rays are all types of...
Magnetic storage devices
Optical storage devices
Solid State memory
Primary memory
Magnetic tape storage is what kind of device...
Solid state memory
Optical storage
Magnetic storage
Primary memory
What category of storage device is a HD card?
Magnetic
Optical
Solid state
Primary memory
What category of storage is a Blu-Ray disk?
Magnetic
Optical
Solid State
Primary memory
Which of the 3 categories of secondary storage is the least durable due to its moving parts?
Optical storage
Primary memory
Solid state storage
Magnetic storage
Which optical storage device has an average memory size of around 4.7GB?
CD
DVD
Blu-Ray
USB flash drive
Which category of secondary storage devices has the fastest access speeds? (i.e. quicker to read and write to)
Magnetic storage
Solid state storage
Primary memory
Optical memory
Which category of secondary storage devices uses beams of light and lasers that read "pits" and "lands" as binary 1s and 0s?
Magnetic storage
Optical storage
Solid state storage
Which category of secondary storage devices uses semiconductor chips to store data? It is also known as flash memory.
Magnetic storage
Optical storage
Solid state
Which of the TWO categories of secondary storage devices are highly portable? (i.e. easy to carry)
Magnetic and Optical
Solid state and Optical
Solid state and Magnetic
Which of the secondary storage categories are the most durable (or strong/ toughest to break)?
Magnetic
Solid State
Optical
Primary memory
Which of the 3 categories of secondary storage are the cheapest to buy, per megabyte (MB)?
Magnetic
Optical
Solid State
