wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Grand Quiz (Python)

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.
In python the ' STRING data type' can be defined as...?
a)
holds alphanumeric text
b)
hold whole numbers
c)
holds numbers with a decimal point
d)
holds either a true or false value
2.
What function would I use to display text?
a)
sum
b)
import
c)
print
d)
display
3.
What does a hashtag represent when using Python?
a)
red text
b)
float
c)
comment
d)
integer
4.
What does int() represent?
a)
internet
b)
input
c)
intel
d)
integer
5.

There is an error on this piece of code, what is the correct statement?

a)

screen.bgcolor("lightblue")

b)

screen.bgcolor="lightblue")

c)

screen.bgcolour("lightblue")

d)

screen.bgcolor=lightblue()

6.

There is an error on this piece of code, what is the correct statement?

a)

import turtle

b)

import Turtle

c)

import.Turtle

d)

turtle import

7.
What will the output be from the following code?
print("Hello world!\nHello world!")
a)
Hello world! Hello world!
b)
Hello world!
Hello world!
c)
SyntaxError
d)
Hello world!
8.
What will the output be from the following code?
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
9.
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
10.
Returns the remainder from division
a)
modulus
b)
exponents
c)
boolean
d)
variables
11.
What are the physical components of a computer system called?
a)
Hardware
b)
Desktop
c)
Devices
d)
Peripherals
12.
What is gravity?
a)
The force that keeps you down.
b)
The solar system.
c)
The 7th planet..
d)
A force that keeps you up. :)
13.
What is 3/5 as a percenatge?
a)
20
b)
40
c)
60
d)
80
14.
An area of land completely surrounded by water is... 
a)
Peninsula 
b)
Island
c)
Isthmus
d)
Mountain 
15.
What can we learn from fossils?
a)
How earthquakes formed.
b)
How erosion changed mountains
c)
How Earth's magnetic field was formed
d)
How Earth's environment has changed
16.

Which one of this men WASN'T president of USA?

a)

Benjamin Franklin

b)

Thomas Jefferson

c)

George Washington

d)

Abraham Lincoln

17.

Which food ISN'T from the USA?

a)
b)
c)
d)
18.

which one is not a fruit ?

a)
b)
c)
d)
19.

The pure colour is ....

a)

red

b)

blue

c)

green

d)

white

20.

The pattern of Water is ....

a)

CO2

b)

H2O

c)

HO2

d)

O2