WorksheetsY9 Computer Science - End of Year Assessment Practice
Total questions: 60
Worksheet time: 30mins
Python is a...
text language
database language
programming language
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
What will the output be from the following code?
print(3+4)
3+4
7
SyntaxError
print(3+4)
What is the Python built-in function to converts a number to a string?
str()
int()
parseInt()
convert
Which of these is correct Python conditional statement?
IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":
What type of loop is known as a count-controlled loop?
for loop
while loop
What type of loop is known as a condition-controlled loop?
for loop
while loop
Select all options below that would loop infinitely (forever)
What would be the output for the following code?
"O", "w", "e", "n"
"o", "w", "e", "n"
"O", "W", "E", "N"
"Owen"
What would be the output for the following code?
"O", "w", "e", "n"
"o", "w", "e", "n"
"O", "W", "E", "N"
"Owen"
What would this function return with the values 5, 2?
5
10
52
25
What would this function return with the values 7, 4?
28
14
7
47
What is the correct calculation for area?
w + h
w * h
w - h
w / h
print("Hello world!")
print("3+4")
What is the name of the variable in this program?
colour
input
" "
What will this code print?
access denied
access granted
error
password
if age is less than 20 then
What keyword is the end of an if statement?
if
elif
else
while
What data type holds a whole number?
Float
Boolean
Integer
String
Select all of the correct data types below
String
Real/Float
Boolean
Integer
Character
A count controlled loop will..
Repeat code until a condition is met
Repeat code a specific amount of times
Repeat code a random amount of times
None of the above
What sort of loop is this?
Count Controlled
Condition Controlled
Which of these are not loops in Python? Select multiple
for loop
while loop
repeat loop
if loop
A step-by-step process, or a defined list of steps required to accomplish a goal is known as...
True or False: There are only 3 different programming languages
What does the word iteration mean?
To select a section of code
To repeat a process
To create functions to complete a process
To randomly assign a value to a variable
The resolution of an image refers to the quality of the image.
True
False
Which is larger?
Megabyte
Gigabyte
What is the sample rate?
The number of times a sound wave is sampled per second
The number of bits used to store each sample
How loud a sound is
The size of the sound wave
What is sample rate measure in?
Bits
Hertz
GB
amps
What is used to convert a sound wave in to a digital format?
A sound wave converter
A router
An amplitude to digital converter
Analogue to digital converter
Home networks are more likely to use a...
router
switch
hub
Viruses and malware cannot spread via a computer network
True
False
What is a client?
A client is any computer in a network
A client is a single computer that is not connected to any other
A client is the central hub in a network
What is a computer called when it is not connected to a network?
A client
A server
The Internet
What is an example of a wide area network?
A home network
A standalone
The Internet
