Font size
S
M
L
XL
WorksheetsYear 10 End of Term Quiz (Autumn)
Total questions: 86
Worksheet time: 56mins
Name
Class
Date
1.
To repeat a fixed number of times use a
a)
while loop
b)
for loop
c)
if loop
d)
indentation
2.
To repeat until a particular condition is true use
a)
while loop
b)
for loop
c)
if loop
d)
indentation
3.
The second part of if, that is executed when the condition is false
a)
if
b)
else
c)
for
d)
input
4.
A variable that can hold a collection of values, often called an array in other programming languages
a)
list
b)
int
c)
string
d)
constant
5.
The character that must be at the end of the line for if, while, for etc.
a)
:
b)
;
c)
.
d)
,
6.
Decides if a string only contains numbers
a)
isalpha()
b)
isnumeric()
c)
int()
d)
string()
7.
Tells the interpreter that the code which follows is a function
a)
const
b)
int
c)
def
d)
while
8.
Converts a number to a string
a)
str()
b)
int()
c)
parseInt()
d)
convert
9.
Used to create exponents
a)
**
b)
"""
c)
%
d)
#
10.
surrounds multi-line comments
a)
"""
b)
**
c)
#
d)
%
11.
symbol used for modulo
a)
%
b)
&
c)
#
d)
**
12.
A data type consisting of numbers, letters and symbols.
a)
String
b)
Integer
c)
Float
d)
Boolean
13.
Code executed based on a condition being true
a)
Sequence
b)
Selection
c)
Iteration
d)
Variable
14.
3<=4
a)
TRUE
b)
FALSE
15.
What is another way of writing the following code?
Score = Score + 1
Score = Score + 1
a)
Score.add(1)
b)
score + 1
c)
Score + Score
d)
Score += 1
16.
Look at this code, what is the variable?
a)
0
b)
4
c)
for
d)
i
17.
Look at this code, how many times will it loop?
a)
50
b)
90
c)
0
d)
4
18.
The number returned when you run this code:
len(“love”)
len(“love”)
a)
1
b)
2
c)
3
d)
4
19.
What does this code print?
a)
A
b)
B
c)
C
d)
D
20.
There are three logical operators in Python:
and, or, ____
and, or, ____
a)
in
b)
else
c)
not
d)
true
21.
What will the lines of code print?
a)
A
b)
B C
c)
A B C
d)
A C
22.
What is the output of
print ("Hello" + "world")
print ("Hello" + "world")
a)
Helloworld
b)
Hello World
c)
world hello
d)
hello world
23.
What letter will be printed on the screen after running this code:
team = “Manchester United”
letter = name[5]
print(letter)
team = “Manchester United”
letter = name[5]
print(letter)
a)
M
b)
d
c)
e
d)
Nothing prints
24.
How many times does the following program print the word ‘computer’:
word= "computer"
for num in range(1,6):
print(word)
word= "computer"
for num in range(1,6):
print(word)
a)
5
b)
6
c)
1
d)
0
25.
Why are hubs not very efficient?
a)
Ethernet protocols are slower than IP
b)
Because witches use switches
c)
There might be too many people logged on
d)
They transmit data on ALL ports
26.
'Witches use switches' helps us to remember that...
a)
Switches forward data 'intelligently'
b)
Switches work by magic and spells
c)
Switches are efficient, but not as much as hubs
d)
Swiches use CAT5 Ethernet and witches usually have a cat
27.
Which of these is not hardware used to create a network?
a)
Hub
b)
SSD
c)
Wireless Access Point
d)
Switch
28.
Which of these is true about ring, star and bus networks?
a)
Ring networks use more cable than star
b)
Star networks fail if even one computer fails
c)
Bus networks can be slow due to collisions
d)
Bus networks cannot use Ethernet cable
29.
Which of these is false about LANs?
a)
LAN stands for Local Area Network
b)
LANs cover a small area or single building
c)
LANs are usually wired with Ethernet cable
d)
LANs cannot use fibre optic cable
30.
Which of these statements about MAC addresses is false?
a)
MAC stands for Multiple Access Control
b)
MAC addresses are written in hex
c)
They are fixed and not re-usable
d)
Routers have MAC addresses
31.
What are IP packets?
a)
Secure connections
b)
Routers and hubs rolled into one
c)
A type of virus
d)
Segments of data on the Internet
32.
Which of these is not a network security measure?
a)
Restricting access levels
b)
Passwords to log on
c)
Encryption of WiFi signals
d)
Yale locks on the computer room
33.
What is failover?
a)
Having a parallel server that 'kicks in' if the other server breaks
b)
Taking a back up every time new data is saved
c)
Sending the entire day's files to a tape drive
d)
Never use 'password' as a password
34.
What does WAN stand for ?
a)
Weak Access Node
b)
Working Area Network
c)
Wide Area Network
d)
World Access Net
35.
Why use a network?
a)
Share viruses
b)
To lose data
c)
To easily share documents
d)
To install cables
36.
A computer network can share printers and software.
a)
True
b)
False
37.
Networks are usually wireless or wired. What is an advantage of cable network?
a)
More expensive
b)
Less secure
c)
Faster transfer speeds
d)
More inconvenient
38.
What is an advantage of a WiFi network?
a)
Slower transfer speeds
b)
More convenient and easier to set-up
c)
Less secure
d)
Faster transfer speeds
39.
Name this piece of network hardware...
a)
Network Interface Card (NIC)
b)
Switch
c)
Hub
d)
Cat 5 cable
40.
Name this network hardware...
a)
Router
b)
Hub
c)
Bridge
d)
Gateway
41.
which type of computer on a network provides something such as file space?
a)
Client
b)
Server
c)
Peer
d)
Node
42.
A software or hardware used to prevent unauthorised access to the network.
a)
Hub
b)
Firewall
c)
Modem
d)
Router
43.
Acceptable use policies
a)
make it clear what you can/cannot do on a network
b)
only allow certain users access to some files
c)
make it illegal to use social media, game sites etc
d)
are part of the Data Protection Act
44.
A phishing email is one which
a)
requests a payment for goods you have not received
b)
offers you products in which you may have no interest
c)
encourages you to click on a link to a fraudulent website
d)
contains abusive and threatening language
45.
If you receive an email from a well-known company, but its name is misspelt in the sender’s address, you should:
a)
click on the link in the email to check if it’s genuine
b)
reply, pointing out the error
c)
report it as a possible phishing scam
d)
forward the email to a friend to check
46.
A fraudulent email which is trying to obtain your username and password for a particular site will typically:
a)
have a heading with a logo which appears genuine
b)
address you by name
c)
offer large sums of money
d)
appear to come from a friend
47.
You can tell whether a link in email will take you to a genuine website, for example belonging to a bank, without risk, by:
a)
pointing to the link without clicking
b)
deleting the email
c)
replying to the email
d)
clicking on the link
48.
Hacking is illegal under:
a)
The Data Protection Act
b)
The Computer Misuse Act
c)
Copyright Law
d)
Health and Safety Law
49.
You receive a desperate plea for help from a friend who says they are stuck overseas and all their money has been stolen. You should:
a)
reply to the email
b)
delete the email
c)
send some money
d)
forward the email to a mutual friend
50.
Gaining unauthorised access to someone else’s computer files is known as:
a)
copyright infringement
b)
hacking
c)
virus attack
d)
data theft
51.
You can protect yourself against spam or fraudulent emails by:
a)
using a spam filter
b)
never clicking on links that you are suspicious of
c)
being aware of different types of fraudulent email
d)
all of these
52.
“Malware” is:
a)
a type of virus
b)
unwanted software installed without consent
c)
security software to detect viruses
d)
a software bug
53.
A computer virus may:
a)
overwrite your files and corrupt your data
b)
steal important information from your computer
c)
use a lot of memory and slow down your computer
d)
all of these
54.
You can be confident your passwords are completely secure if:
a)
they are at least 8 characters long
b)
you change them regularly
c)
you use different passwords for all your online accounts
d)
All of these
55.
Which of the following is a “strong” password for someone named Justin Smith?
a)
JustinSmith
b)
Justin123456
c)
softcatsears
d)
SmithJ1
56.
The law states that:
a)
only government organisations can hold personal data about you
b)
personal data held by an organisation must be protected from hackers
c)
personal data must be updated at least once a year
d)
all personal data must be encrypted
57.
Health and Safety regulations require an employer to:
a)
plan work at a computer so there are frequent breaks
b)
provide wrist rests for keyboard use
c)
pay for glasses for employees who need them, if they spend a lot of time using a computer
d)
all of the above
58.
When disposing of an old computer:
a)
It should be incinerated to ensure that sensitive data is destroyed
b)
It should be taken to a recycling centre
c)
It should be taken to a landfill site
d)
It should be taken apart and the outer casing recycled, the rest put in the bin
59.
Convert 11001001 to Denary.
a)
199
b)
200
c)
201
d)
202
60.
Convert 7A Hexadecimal to Binary.
a)
01111010
b)
01111000
c)
01110100
d)
01110010
61.
Convert 9C to Denary.
a)
155
b)
156
c)
157
d)
158
62.
What problem occurs when the following two numbers are added together?11010011 + 11010011
a)
overpour
b)
overgo
c)
overflow
d)
overmove
63.
What metadata is stored with an image file?
a)
The colours, the colour depth and the resolution.
b)
The size, the genre and the resolution.
c)
The size, the colour depth and the resolution.
d)
The colour depth, the resolution and the genre.
64.
To transfer sound to a computer it needs to be digitally...
a)
passed
b)
interval rate
c)
given
d)
sampled
65.
The type of compression which is used when it is important to not lose any of the information in a file.
a)
Lossy
b)
Lossless
66.
What is Image Resolution?
a)
The number of pixels per inch
b)
how a picture appears on the screen
c)
How clear a picture is
67.
How many colours do we get from 2 bits
a)
2 colours
b)
4 colours
c)
8 colours
d)
24 colours
68.
How many colours do we get from 3 bits?
a)
2 colours
b)
4 colours
c)
8 colours
d)
24 colours
69.
Each pixel is displayed using a combination of what three colours?
a)
Blue, green and purple
b)
Red, grey and white
c)
Red, green and blue
d)
White, red and blue
70.
What is meant by the term 'colour depth'?
a)
Width and height of an image.
b)
A pixel in an image.
c)
Quality of the colour.
d)
Number of bits used to encode each pixel.
71.
How many characters does ASCII include?
a)
128
b)
16 million
c)
60
72.
A NOT gate has…
a)
Two inputs and one output
b)
One input and one output
c)
One input and two outputs
d)
Two inputs and two outputs
73.
An OR gate has
a)
Two inputs and one output
b)
One input and one output
c)
One input and two outputs
d)
Two inputs and two outputs
74.
A logic state can only be….
a)
On or 1
b)
Off or 1
c)
1 or 0
d)
In and Out
75.
What is compression?
a)
To convert one file to another
b)
To reduce the size of data to save space
c)
To minimise the time taken for a file to be download
d)
To compress something by pressing it hard
76.
Which of the following are not in a compressed format?
a)
JPEG
b)
MPEG
c)
Bitmap
d)
MP3
77.
Hayley has designed a new web app. She thinks another company is changing her idea. Which act would Hayley use to stop this person from doing this?
a)
Creative Commons Licence
b)
Computer Misuse Act
c)
Copyright designs and Patents Act
d)
Freedom of Information Act
78.
Charlie uses social media regularly. What step would you recommend to be more secure online?
a)
Always use the same password
b)
Only post non-private data/pictures
c)
Always use a mobile phone for security
d)
Share other people’s pictures as much as possible
79.
A company produces an App using only the ASCII character set. What issue may they not have considered?
a)
Cultural
b)
Legal
c)
Environmental
d)
Moral/Ethical
80.
What does this symbol represent?
a)
Decision
b)
Input/Output
c)
Start
d)
Process
81.
What does this symbol represent?
a)
Input/Output
b)
Start
c)
Stop
d)
Decision
82.
What does this symbol represent?
a)
Start
b)
Sub
c)
Decision
d)
Process
83.
What is the purpose of a flowchart?
a)
To plan the program before it is made
b)
Because it is easier
84.
Which of these is not a component of computational thinking?
a)
Abstraction
b)
Memory
c)
Decomposition
d)
Pattern Recognition
85.
The following code would
a)
set the variable "a" to whatever is stored in "answer"
b)
add whatever is stored in "answer" to the variable "a"
c)
output the number 7
d)
repeat forever
86.
Which type of memory is used to store data temporarily (data is lost when the machine switches off)?
a)
Read Only Memory
b)
Random Access Memory
Reset
