wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Year 9 - Term 1 Mega Quiz

Total questions: 85

Worksheet time: 45mins

Name
Class
Date
1.

A loop that keeps repeating steps until something happens is called a (a)   controlled loop.


Choose from the below words
condition
count
2.

import random

letters = ["a","b","c","d","e","f"]

chosenLetter = letters(random.randint(0,5))

What is the name of the variable in the code above

a)

chosenLetter

b)

letters

c)

random

d)

randint

3.

what peice of syntax always comes at the end of a line declaring a loop in python?

a)

?

b)

*

c)

:

d)

!

e)

>

4.

count-controlled iteration can also be referred to as

(a)   loops


Choose from the below words
for
while
iteration
sonic's
5.

(a)   counter in range(5):

print(counter)

fill in the blank to make the above code print the numbers 0-4

6.

what is python?

a)

a game

b)

a coding language

c)

a program

d)

a browser

e)

machine code

7.

newName = input("Enter a name")

characterNames = ["Ada", "Alan", "Charles", "Katherine"]

characterNames.append(newName)

What is the name of the list in this code?

a)

newName

b)

characterNames

c)

input()

d)

append()

e)

=

8.

characterNames = ["Ada", "Alan", "Charles", "Katherine"]

characterNames. (a)   ("Ada")

What word would I add in the blanks to take Ada out of the list called characterNames

9.

Create a program that it outputs "Hello World":

​ (a)   ​ (b)   ​ (c)   ​ (d)  

Choose from the below words
print
(
"Hello World"
)
+
==
input
10.

userAge = ​ (a)   ("How old are you?")

Choose from the below words
input
print
output
enter
type
11.

What is printed by the following lines of code?

a)

eggs

b)

bread

c)

2

d)

sugar

12.

How many items can a list contain? Tick all that apply.

a)

0

b)

1

c)

2

d)

3

e)

10

13.

What is the maximum amount of items you can store in a variable?

a)

0

b)

1

c)

2

d)

3

14.

What would be the output of this code?

laurions = ["Altius", "Citius", "Fortius", "Magnus"]

print(laurions)

a)

["Altius", "Citius", "Fortius", "Magnus"]

b)

Altius , Citius, Fortius , Magnus

c)

laurions

d)

"Altius", "Citius", "Fortius", "Magnus"

e)

Error

15.

What would be the output of this code?

laurions = ["Altius", "Citius", "Fortius", "Magnus"]

print(laurions[2])

(a)  

16.

laurions = ["Altius", "Citius", "Fortius", "Magnus"]

chosenLaurion = laurions[1]

What is the variable in this code?

(a)  

17.

What is the name for the data structure in python which can hold more than one item?

(a)  

18.

What is the output of the code below?

laurions = ["Altius", "Citius", "Fortius", "Magnus"]

laurions.clear()

laurions.append("magnus")

laurions.append("citius")

print(laurions[1])

(a)  

19.

firstNames = ["Ada", "Alan", "Charles"]

surnames = ["Lovelace", "Turing", "Babbage"]

subject = "Computer Science"

What is the name of the variable in the code above?

(a)  

20.

import random

randomNumber = random.randint(0,4)

letters = ["a","b","c","d","e"]

print(letters[randomNumber])

What is the name of the variable in the code above?

(a)  

21.

In an array, what is the first numbered position in which data can be stored?

a)

Position 0

b)

Position 1

22.

Which of these in an advantage of a database?

Select all that apply

a)

It’s easy to add to or amend existing records.

b)

They're written in python.

c)

Multiple people can access a database at the same time.

d)

Security can be better than paper files by using a password.

e)

They can be hacked.

23.

I have created a database of students. 'name' is likely to be what?

a)

A table

b)

A field

c)

A record

d)

A DBMS

24.

I have created a database of pets who are up for adoption. Snowy is a white labrador, all of his data can be grouped together. This would be classed as a ... ?

a)

A table

b)

A field

c)

A record

d)

A DBMS

25.

the name of a category in a database, such as 'name', 'age', 'gender' is a (a)  

26.

DBMS stands for what?

a)

Database Management System

b)

Double Base Mega Slam

c)

Database Money System

d)

Database Media Storage

27.

Which of these is a DISADVANTAGE of a database?

a)

It can store more than one piece of data.

b)

It can be hacked.

c)

It relies on paper.

d)

It cannot be moved from place to place.

28.

Tables are ususally named starting with which three letter abbreviation?

(a)  

29.

Which of these is true of a primary key?

a)

It must be unique

b)

It must start with the letter a.

c)

It must start with the number 0.

d)

It must be only 1 character long.

30.

A database can hold more than 1 Million pieces of data?

a)

True

b)

False

31.

Databases make it easier to find and use data from big data sets.

a)

False

b)

True

32.

In a database, each record will usually have data in multiple fields?

a)

False

b)

True

33.

There will always be more records than fields in a database.

a)

True

b)

False

34.

subjects = ["Computing", "Drama", "English", "Maths", "Science", "Spanish"]

What is subjects [2]

a)

Computing

b)

English

c)

Science

d)

Drama

e)

Index Error

35.

What would be the output of the code below:

laurions = ["Altius", "Citius", "Fortius", "Magnus"]

print(laurions[3] + " beat " + laurions[2])

a)

Error

b)

Fortius beat Citius

c)

Magnus beat Fortius

d)

Magnus beat Citius

e)

Fortius beat Magnus

36.

Which of these is an appropriate name for a list containing:

Apples, Oranges, Pears, Bananas

a)

Fruit

b)

fruit

c)

x

d)

list1

37.

What is python

a)

Programming Language

b)

Browser

c)

Coding Method

d)

Computer Game

38.

name = input("What is your name?"

print("Hello" + name")

If I inputted Elsa into the program above, what would the output be?

a)

Hello Elsa

b)

Elsa

c)

HelloElsa

d)

Error

e)

Let it go!

39.

A loop that does an instruction for a certain number of times is known as:

a (a)   controlled loop, or a 'for loop'.

40.

playerName = (a)   ("Enter your name")

print("Welcome to the game " + playerName)

The below above allows a player to enter their name and then greets them. What is the missing word?


Choose from the below words
input
print
enter
variable
list
41.

for counter in range(10):

print(counter)

What will be the final line output by this program?

(Type your answer as a number)

(a)  

42.

laurions = ["Altius", "Citius", "Fortius"]

laurions. (a)   ("Magnus")

fill in the blanks to make it so that the code ADDS Magnus to the list of laurions.

43.

code:

___ counter in range(2):

print(counter)

What word is missing from the code above. The program outputs the numbers 0 and 1.

a)

and

b)

for

c)

while

d)

if

e)

nor

44.

laurions = ["Altius", "Citius", "Fortius", "Magnus"]

playerName = input("Enter your name")

chosenLaurion = input("Who would you like to choose as your starter Laurion")

How many variables are there in the above code?

a)

0

b)

1

c)

2

d)

3

e)

4

45.

What does the flowchart to the left represent?

a)

Selection

b)

Count Controlled Iteration

c)

Condition Controlled Iteration

d)

Hacking

e)

Decomposition

46.

spice_girls = ["Emma", "Geri", "Mel B", "Mel C", "Victoria"]

which line of code would output the word Geri if added to the program above.

a)

print(spice_girls[1])

b)

print(spicegirls[0])

c)

print(Spice_girls[1])

d)

pint(spice_girls[1])

47.

Count-controlled iteration in python uses:

a)

for loops

b)

while loops

c)

if statements

d)

print statements

48.

condition controlled iteration in python uses:

a)

for loops

b)

while loops

c)

if statements

d)

print statements

49.

which can hold multiple pieces of data?

a)

a variable

b)

a list

50.

dinner_options = ["pizza", "pasta", "stir-fry", "curry", "fish and chips", "fajitas"]

import random

randomNumber = random.randint(0,3)

print(dinner_options[randonNumber]

Kieran is indecisive and has created a python program to help him choose what to have for dinner. There is an error with his program. Which options will the program never choose?

a)

pizza

b)

stir-fry

c)

curry

d)

fish and chips

e)

fajitas

51.

Create a statement which adds "Citius" to a list called laurions:

​ (a)   ​ (b)   ​ (c)   ​ (d)   ​"Citius" ​ (e)  

Choose from the below words
laurions
.
append
(
)
list
add
[
]
=
52.
Where can Linear Search be performed?
a)
On letters
b)
On numbers
c)
Both
d)
None of these
53.
How many linear searches will it take to find the value 7 in the list [1,4,8,7,10,28]?
a)
2
b)
3
c)
4
d)
5
54.
What is an advantage of the Linear search algorithm?
a)
Performs well with small sized data sets
b)
Can be used on data sets with more than a million elements
c)
Is complicated to code
55.
What is a disadvantage of the Linear search algorithm?
a)
It will only work on a sorted data set
b)
May be too slow to process large data sets
56.
In programming, what is iteration?
a)
The repetition of steps within a program
b)
The order in which instructions are carried out
c)
A decision point in a program
d)
Testing a program to make sure it works
57.
Which two statements are used to implement iteration?
a)
IF and WHILE
b)
ELSE and WHILE
c)
FOR and WHILE
d)
IF and ELSE
58.
Which of the following symbols is used in Python to mean "Equal to"?
a)
=
b)
!=
c)
==
d)
>=
59.
a)
0  5  10
b)
5  10
c)
0  5  10  15  20  25  30  35  40  45  50  55  60  65  70  75  80  85  90  95  100  105  110  115  120  125  130  135  140......etc
d)
12  7  2
60.
a)
Welcome
b)
Try again!
c)
Error
d)
Enter your password
61.
The character that must be at the end of the line for if, while, for etc.
a)
:
b)
;
c)
.
d)
,
62.
name the movie
a)
Home Alone
b)
Home Alone 2
c)
Bobby and Billy wild Adventures 
d)
the 4th of July
63.

Who is that

a)

Santa

b)

Elf

c)

A Snowflake

d)

Rudolph the Red-Nosed Reindeer

e)

A normal Reindeer

64.
What is Frosty the Snowman's nose made of?
a)
A Carrot
b)
A Potato
c)
A Button
d)
A Rock
65.

2. In the song The 12 days of Christmas, what gift was given on the fourth day?

a)

French Hens

b)

Golden Rings

c)

Calling Birds

66.

4. How do you say "Merry Christmas" in Spanish?

a)

Sheng Dan Kuai Le

b)

Feliz Navidad

c)

Maligayang Pasko

67.

On which continent is the Sahara desert?

a)

Africa

b)

Asia

c)

North Africa

d)

South Africa

68.

Which planet is the smallest?

a)

Mars

b)

Saturn

c)

Mercury

d)

Venus

69.

How many zeroes in ten million?

a)

5

b)

6

c)

7

d)

8

70.

John, Paul, George and Ringo were part of which band?

a)

The Rolling Stones

b)

Bee Gees

c)

The Monkees

d)

The Beatles

71.

Select the animal that can't jump:

a)

Kangaroo

b)

Elephant

c)

Dog

d)

Cat

72.

What is the sweet food made by bees?

a)

Wax

b)

Pollen

c)

Nectar

d)

Honey

73.

What’s the name of the toy cowboy in Toy Story?

a)

Woody

b)

Buzz

c)

Andy

d)

Sid

74.

What is the name of the fairy in Peter Pan?

a)

Wendy

b)

Tinkerbell

c)

Lily

d)

Jane

75.

What is the largest ocean on Earth?

a)

The Atlantic.

b)

The Artic.

c)

The Pacific.

d)

The Indian.

76.

Who is the premier league footballer with the most goals?

a)

Alan Shearer

b)

Teddy Sheringham

c)

Sergio Aguero

d)

Thierry Henry

77.

What Is The Hottest Colour Of A Fire?

a)

Light Blue

b)

Red

c)

Green

d)

Orange

78.

Which Country Has Cities Such As Sydney, Canberra, Perth And Melbourne?

a)

New Zealand

b)

Australia

c)

Lebanon

d)

Oman

79.

What Is The Gestation Period Of A Rhinoceros On Average?

a)

16 months

b)

8 months

c)

21 months

d)

3.5 years

80.

What Is 12 x 12?

a)

144

b)

156

c)

189

d)

211

81.

Which Country Has The Capital Lima?

a)

Peru

b)

Venezuela

c)

Morocco

d)

Australia

82.

What sport is this?

a)

mountain biking

b)

skiing

c)

surfing

d)

sky diving

83.

Who is this?

a)

Blue Girl

b)

Elsa

c)

Frozen

d)

Anna

84.

What is lava?

a)

hot rock

b)

liquid fire

c)

cold fire

d)

hot metal

85.

​ (a)   are involved with everything we do online. From social networking to the BBC website, ​ (b)   are crucial tools used to store large amounts of ​ (c)   in an ​ (d)   way.

Choose from the below words
Databases
databases
data
organised
variables
frogs
alphabetical