wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

9.1.2 - Starter Quiz

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

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

What is subjects [2]

a)

Computing

b)

English

c)

Science

d)

Drama

e)

Index Error

2.

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

What is subjects [4]

a)

Maths

b)

English

c)

Science

d)

Drama

e)

Index Error

3.

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

What would print out if I used the statement:

print(subjects[0])

a)

Spanish

b)

Computing

c)

"Computing"

d)

"Spanish"

e)

Index Error

4.

What would be the output of the code below:

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

print(laurions[1])

a)

Fortius

b)

Altius

c)

Magnus

d)

Citius

5.

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

6.

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

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

What, in the code above, is a variable?

a)

Fortius

b)

Nothing

c)

Citius

d)

laurions

e)

starterLaurion

7.

buggy_list = [ ,"ugh!", ,"this","list", ,"is","buggy"]

print(buggy_list[3])

What would the code above output?

a)

ugh

b)

this

c)

list

d)

is

e)

error

8.

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

Apples, Oranges, Pears, Bananas

a)

Fruit

b)

fruit

c)

x

d)

list1

9.

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!

10.

What is python

a)

Programming Language

b)

Browser

c)

Coding Method

d)

Computer Game

11.

What would be the output of the code below:

nouns = ["cat", "dog", "pig", "fox", "cow", "emu"]

adjectives = ["fat", "thin", "big", "small",]

print("The " + nouns[0] + " is " + adjectives[0])

a)

The emu is small

b)

The cat is fat

c)

The pig is big

d)

The cat is small

e)

The emu is fat

12.

What would be the output of the code below:

nouns = ["cat", "dog", "pig", "fox", "cow", "emu"]

adjectives = ["fat", "thin", "big", "small"]

print("The " + nouns[2] + " is " + adjectives[2])

a)

The emu is small

b)

The cat is fat

c)

The pig is big

d)

The cat is small

e)

The emu is fat

13.

What would be the output of the code below:

nouns = ["cat", "dog", "pig", "fox", "cow", "emu"]

adjectives = ["fat", "thin", "big", "small"]

print(The nouns[2] is adjectives[2])

a)

The emu is small

b)

The cat is fat

c)

The pig is big

d)

The cat is small

e)

Error

14.

What would be the output of the code below:

nouns = ["cat dog", "pig", "fox", "cow", "emu"]

adjectives = ["fat", "thin", "big", "small"]

print("The " + nouns[2] + " is " + adjectives[2])

a)

The pig is small

b)

The fox is big

c)

The pig is big

d)

The fox is small

e)

Error