Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Y9 Computer Science - End of Year Assessment Practice

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

Python is a...

a)

text language

b)

database language

c)

programming language

2.
What is the name of the environment in Python that write your programs and then test them out?
a)
Shell
b)
Window
c)
IDLE
d)
CLI
3.
What does the print function do in python?
a)
It's a variable.
b)
It can input data.
c)
It displays something like a string or integer
d)
It loops the code.
4.
What symbol do you use to make a comment in Python?
a)
@
b)
¬
c)
;
d)
#
5.
What button do you press to compile (run) your program so that it runs in the shell?
a)
F3
b)
F5
c)
F7
d)
F9
6.
What is the word (command) used to display numbers and text on the screen?
a)
print
b)
input
c)
output
d)
command
7.
What is a variable?
a)
A box(memory location) where you store values
b)
a type of graphics
c)
Data type
d)
a type of memory
8.

What will be the output?

name = "Dave"

print (name)

a)

Dave

b)

'Dave'

c)

name

d)

(name)

9.
What Python command lets the user enter an answer to a question?
a)
answer()
b)
open()
c)
print()
d)
input()
10.
In the following code, "city" is an example of a what?
a)
List
b)
Loop
c)
Variable
d)
Array
11.

What will the output be from the following code?

print(3+4)

a)

3+4

b)

7

c)

SyntaxError

d)

print(3+4)

12.
A location in memory used to store data that can be changed.
a)
Constant
b)
Value
c)
Variable
d)
Iteration
13.

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

a)

str()

b)

int()

c)

parseInt()

d)

convert

14.
The correct way to write a variable in Python?
a)
my_variable = 10
b)
my variable = 10
c)
my_variable is 10
d)
my_variable: 10
15.

Which of these is correct Python conditional statement?

a)

IF answer == "Yes":

b)

if answer == "Yes"

c)

if answer == "Yes":

d)

if answer = "yes":

16.

What type of loop is known as a count-controlled loop?

a)

for loop

b)

while loop

17.

What type of loop is known as a condition-controlled loop?

a)

for loop

b)

while loop

18.

Select all options below that would loop infinitely (forever)

a)
b)
c)
d)
19.

What would be the output for the following code?

a)

"O", "w", "e", "n"

b)

"o", "w", "e", "n"

c)

"O", "W", "E", "N"

d)

"Owen"

20.

What would be the output for the following code?

a)

"O", "w", "e", "n"

b)

"o", "w", "e", "n"

c)

"O", "W", "E", "N"

d)

"Owen"

21.

What would this function return with the values 5, 2?

a)

5

b)

10

c)

52

d)

25

22.

What would this function return with the values 7, 4?

a)

28

b)

14

c)

7

d)

47

23.

What is the correct calculation for area?

a)

w + h

b)

w * h

c)

w - h

d)

w / h

24.
What will the output be from the following code?
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)
25.
A data type than can have one of two values: True or False
a)
boolean
b)
variable
c)
modulus
d)
interpreter
26.
To solve a problem that requires the user to enter 10 numbers would use what type of iteration?
a)
While loop
b)
For loop
c)
Variable
d)
Selection
27.
What will the output be from the following code?
print("3+4")
a)
7
b)
3+4
c)
34
d)
SyntaxError
28.

What is the name of the variable in this program?

a)

print

b)

colour

c)

input

d)

" "

29.

What will this code print?

a)

access denied

b)

access granted

c)

error

d)

password

30.
What does “==” represent in Python programming?
a)
less than
b)
equal to
c)
greater than
d)
not equal to
31.
Choose the correct Python code.
if age is less than 20 then
a)
if age > 20:
b)
if age < 20:
32.

What keyword is the end of an if statement?

a)

if

b)

elif

c)

else

d)

while

33.

What data type holds a whole number?

a)

Float

b)

Boolean

c)

Integer

d)

String

34.

Select all of the correct data types below

a)

String

b)

Real/Float

c)

Boolean

d)

Integer

e)

Character

35.

A count controlled loop will..

a)

Repeat code until a condition is met

b)

Repeat code a specific amount of times

c)

Repeat code a random amount of times

d)

None of the above

36.

What sort of loop is this?

a)

Count Controlled

b)

Condition Controlled

37.

Which of these are not loops in Python? Select multiple

a)

for loop

b)

while loop

c)

repeat loop

d)

if loop

38.

A step-by-step process, or a defined list of steps required to accomplish a goal is known as...

a)
algorithm
b)
variable
c)
string
d)
module
39.

True or False:  There are only 3 different programming languages

a)
True
b)
False
40.

What does the word iteration mean?

a)

To select a section of code

b)

To repeat a process

c)

To create functions to complete a process

d)

To randomly assign a value to a variable

41.
The following is a correct order of units of storage from lowest to highest:
a)
a bit, a nibble, a byte, a kilobyte, a megabyte, a gigabyte, a terabyte
b)
a bit, a byte, a nibble, a kilobyte, a megabyte, a gigabyte, a terabyte
c)
a bit, a nibble, a byte, a megabyte, a kilobyte, a gigabyte, a terabyte
d)
a byte, a bit, a nibble, a megabyte, a kilobyte, a gigabyte, a terabyte
42.
The smallest unit of data stored in an image file is called:
a)
Pixels
b)
Resolution
c)
Alpha
d)
Bitmap.
43.

The resolution of an image refers to the quality of the image.

a)

True

b)

False

44.
A character set is...
a)
What language can be used in a computer system.
b)
The fonts that a computer has installed.
c)
The possible characters that can be represented by a computer system.
45.
The (standard) ASCII code is capable of representing non-European languages.
a)
True
b)
False
46.
A byte is
a)
8 bits
b)
4 bits
47.

Which is larger?

a)

Megabyte

b)

Gigabyte

48.

What is the sample rate?

a)

The number of times a sound wave is sampled per second

b)

The number of bits used to store each sample

c)

How loud a sound is

d)

The size of the sound wave

49.

What is sample rate measure in?

a)

Bits

b)

Hertz

c)

GB

d)

amps

50.

What is used to convert a sound wave in to a digital format?

a)

A sound wave converter

b)

A router

c)

An amplitude to digital converter

d)

Analogue to digital converter

51.
What does LAN stand for?
a)
Local Area Network
b)
Legal Access Network
c)
Legendary Access Node
d)
Local Admin Network
52.
What type of network is this?
a)
Star
b)
Mesh
c)
LAN
d)
WAN
53.
What type of network is this?
a)
Star
b)
Bus
c)
LAN
d)
WAN
54.
What is a network?
a)
1 computer
b)
2 or more computers connected
c)
a film
d)
a server
55.
A computer network can share printers and software.
a)
True
b)
False
56.

Home networks are more likely to use a...

a)

router

b)

switch

c)

hub

57.

Viruses and malware cannot spread via a computer network

a)

True

b)

False

58.

What is a client?

a)

A client is any computer in a network

b)

A client is a single computer that is not connected to any other

c)

A client is the central hub in a network

59.

What is a computer called when it is not connected to a network?

a)

A client

b)

A server

c)

The Internet

60.

What is an example of a wide area network?

a)

A home network

b)

A standalone

c)

The Internet