Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

End of term quiz

Total questions: 71

Worksheet time: 35mins

Name
Class
Date
1.
To create a newline at the end of prompt, you can use which of the following expressions?
a)
\new
b)
\n
c)
\break
d)
\return
2.
What is the word (command) used to display numbers and text on the screen?
a)
print
b)
input
c)
output
d)
command
3.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
4.
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly
a)
True
b)
False
5.
Code executed based on a condition being true
a)
Sequence
b)
Selection
c)
Iteration
d)
Variable
6.
Code repeated / looped until a condition has been met or a set number of times.
a)
Sequence
b)
Selection
c)
Iteration
d)
Variable
7.

What does the following code do? myAge = int (myAge)

a)

Converts the var (variable) myAge to a string

b)

Converts the var (variable) myAge to a integer

c)

Converts the var (variable) myAge from a integer to a string

d)

Converts the var (variable) myAge to if statement

8.
Tells the interpreter that the code which follows is a function
a)
const
b)
int
c)
def
d)
while
9.
What will the output be from the following code?
print("Hello world!" * 2)
a)
TypeError
b)
Hello world world!
c)
Hello world!Hello world!
d)
Hello world! * 2
10.
What letter will be printed on the screen after running this code:
a)
e
b)
x
c)
t
d)
Nothing prints
11.
A location in memory used to store data that can be changed.
a)
Constant
b)
Value
c)
Variable
d)
Iteration
12.

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

a)

str()

b)

int()

c)

parseInt()

d)

convert

13.

Which of these is correct Python conditional statement?

a)

IF answer == "Yes":

b)

if answer == "Yes"

c)

if answer == "Yes":

d)

if answer = "yes":

14.
Which of these is the purpose of the Operating System?
a)
Allows the user to communicate with the system
b)
Allows the hardware and software of the system to communicate
c)
All of the above
15.
Which Interface uses images/icons to make it easier for the user?
a)
Command Line
b)
Graphical
c)
Voice Command
16.
Which Interface is this an example of?
a)
Command Line
b)
Graphical
c)
Voice Command
17.
Which Interface is this an example of?
a)
Command Line
b)
Graphical
c)
Voice Command
18.
Below are 2 advantages and 1 disadvantage for Command Line Interface.
Choose the disadvantage
a)
Takes up less memory
b)
Takes less processing power
c)
Can be very confusing to a beginner
19.

What is Encryption software used to do?

a)

Permanently change data

b)

Revert data to something it wasn't before

c)

Change data so it is unreadable by an interceptor

d)

Change data so it is readable by an interceptor

20.
_____________is a type of system software allows that allow a user to perform  maintenance-type tasks
a)
Operating system
b)
System Software
c)
Application software
d)
Utility program
21.

What is the purpose of Anti-Virus software?

a)

To keep the computer safe from malicious software

b)

To keep people safe from other people

c)

To keep the computer safe from defragmantation

d)

To keep data safe

22.
Automatic updates
a)
make sure your computer has the latest security patches and updates for software installed.
b)
creates business documents.
c)
shows how much storage space is left on a computer.
d)
transfers files to other computers.
23.
I am about to install a new program but want to make sure I can revert back to the computers current state if anything goes wrong, I should _____________ before I do anything else.
a)
set a system restore point
b)
switch off the firewall
c)
empty the recycle bin
d)
send an email to my teacher
24.
I am running out of space on my hard drive, I should use the _____________ tool.
a)
disk cleanup
b)
email
c)
disk defragment
d)
backup
25.
Allocating time on the processor to individual processes is known as...
a)
CPU Scheduling
b)
CPU Timing
c)
CPU Clocking
d)
CPU Sorting
26.
What happens when RAM is full?
a)
The computer crashes
b)
Virtual Memory is used
c)
An interrupt is raised
d)
The computer explodes
27.

The term OS is short for?

a)

Apple

b)

Operating Software

c)

Operating System

d)

Overload System

28.
The purpose of the GUI is to
a)
hide the complexities of the machine from the user
b)
Guide the user
c)
to make the screen look nice
29.
A computer can function without an operating system
a)
True
b)
False
30.

The ability for different people to use the same computer is made possible through:

a)

Open-source software

b)

Desktop elements

c)

User accounts

d)

Settings app

31.

Which of these tasks is a function of the operating system?

a)

Scanning a photograph

b)

Copying a file

c)

Producing a database report

d)

Adding data to a spreadsheet

32.

Which of the followings is not GUI operating system?

a)

DOS

b)

Windows

c)

iOS

d)

Linux

33.

How can the OS help manage security of the system?

a)

The OS can hire backup

b)

User accounts may be password protected

c)

Files can self destruct after a set time

34.

If I want to add to the end of a text file, I should:

a)

MyCipher = open("MyCipher.txt", "w")

b)

MyCipher = open("MyCipher.txt", "a")

c)

MyCipher = open("MyCipher.txt", "w+")

d)

MyCipher = open("MyCipher.txt", "s")

35.

Which of these will generate an error?

a)

MyCipher.write("writing")

b)

MyCipher..write(writing)

c)

MyCipher.write("writing",writing)

d)

MyCipher.readline()

36.

Why is it best to open a file with with in Python?

a)

It automatically closes the file

b)

Easier to read the code

c)

Better for binary files

d)

Closers to the pseudocode

37.

What command can you use to separate parts of a line?

a)

separate()

b)

split()

c)

divide()

d)

cut()

38.

What command can you use to send back data from a function?

a)

return

b)

sendback

c)

back

d)

print()

39.

How do you CALL the function name in Python?

a)

name()

b)

def name()

c)

call name()

d)

GOTO name()

40.

Comments are

a)

statements only the computer can understand.

b)

programming notes or reminders that the computer ignores.

c)

not appreciated.

d)

statements that allow the computer to test a value and perform different actions depending on the outcome of that test.

41.

A programming statement that allows a block of code to be repeated for a given range of values defines

a)

function

b)

while loop

c)

for loops

d)

applications

42.

Import means

a)

A named, reusable set of programming statements to perform a specific task.

b)

A programming statement that allows a block of code to be repeated for a given range of values.

c)

To bring reusable code or data into a program from another program or module.

d)

Any data or information entered into a computer.

43.

The spelling and grammar rules of a programming language is called

a)

GSP

b)

syntax

c)

code

d)

comments

44.

Which of these is the correct code for creating a list of names?

a)

nameList = John, Harry, Jesse, John, Harry, Harry

b)

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

c)

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

d)

nameList = [John, Harry, Jesse, John, Harry, Harry]

45.

List items have an index number. In the following list, which item has the index number of 3?

["John", "Harry", "Jesse", "John", "Harry", "Harry"]

a)

"John"

b)

"Harry"

c)

"Jesse"

d)

"John"

46.

Which of these pieces of code would return the name "Harry" from the following list?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

a)

nameList()

b)

nameList[1]

c)

NameList(4)

d)

nameList["4"]

47.

The list needs one more name added to the end - "Felipe". Which piece of code below would do this?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

a)

nameList.append(Felipe)

b)

append(nameList,"Felipe")

c)

nameList.append["Felipe",7]

d)

nameList.append("Felipe")

48.
What output will this code produce?
a)
blue
b)
green
c)
red
d)
error
49.

Is this the correct code for a list?

register = {"Sam", "Pheobe", Georgia", Richard"}

a)

Yes

b)

No

50.

This list contains items of what data type?

a)

String

b)

Boolean

c)

Float

d)

Integer

51.

Which symbols are used to open and close a list?

a)

( ) round brackets

b)

( ) curly brackets

c)

[ ] square brackets

d)

" " speech marks

52.

How do i remove something from a list?

a)

variable.append()

b)

variable.delete()

c)

variable.remove()

d)

variable=(new variable)

53.

What is used to separate elements in a list?

a)

Bracket

b)

Comma

c)

Full Stop

d)

Space

54.

variable.sort() will do what?

a)

Sort the list into alphabetical order

b)

Sort the list into reverse order

c)

Create a new list

d)

Error

55.

What does the '#' allow you to do?

a)

Repeat code

b)

Comment on code

c)

Print code

d)

End code

56.

Which of these operators means EQUAL TO?

a)

'='

b)

'=>'

c)

'<='

d)

'=='

57.

What will this code do?

a)

Print Numbers 1-11

b)

Print Numbers 1-10

c)

Print Numbers 2-10

d)

Print Error

58.

Which container type will you use to store the personal best times achieved by club swimmers in the 100m freestyle such as: Mark: 65.34s, Freya: 68.04s, etc.

a)

tuple

b)

list

c)

dictionary

59.

What is the output of the following code :


print(9//2)

a)

4.5

b)

4.0

c)

error

d)

4

60.

In order to store values in terms of key and value we use what core data type.

a)

Dictionary

b)

Tuple

c)

List

d)

None of the above

61.

Which is the correct operator for power?

a)

//

b)

^

c)

**

d)

None of the above

62.

What is the answer to this expression 22 % 3 is?

a)

0

b)

1

c)

5

d)

7

63.

Which of the following is not a keyword?

a)

if

b)

not

c)

global

d)

swap

64.
Code executed based on a condition being true
a)
Sequence
b)
Selection
c)
Iteration
d)
Variable
65.
What does the term 'debug' mean?
a)
Identify errors and fix them.
b)
Making a calculation
c)
A set of instructions
d)
Looking at code
66.
In python the ' FLOAT data type' can be defined as...?
a)
holds alphanumerical data
b)

holds whole numbers

c)

holds a decimal point in a number

d)
hold either true or false
67.
In python the ' BOOLEAN data type' can be defined as...?
a)
holds alphanumerical data
b)
holds whole numbers
c)
holds a number with a decimal point
d)
holds either true or false
68.
print("12"*3)
What would this print?
a)
36
b)
121212
c)
24
d)
12*3
69.
What will the output be from the following code?
print("3+4")
a)
7
b)
3+4
c)
34
d)
SyntaxError
70.
Which is the most appropriate data type for: "13th December"
a)
Float
b)
Boolean
c)
Integer
d)
String
71.
The character that must be at the end of the line for if, while, for etc.
a)
:
b)
;
c)
.
d)
,