Font size
WorksheetsPython quiz
Total questions: 25
Worksheet time: 13mins
The symbol of Hallowen is ..,,
pear
Peach
pumpkin
Strawberry
Which of the following functions can be used to create a loop? (check all that apply)
for i in range
if
else
while
What would the following code draw?
from turtle import*
for i in range(3):
forward(100)
right(360/3)
A triangle pointing up
A triangle pointing to the right
A triangle pointing to the left
A triangle pointing down
What would the following code output?
from turtle import*
goto(-100, 0)
A blank screen
A vertical line going from the middle of the screen straight down
A horizontal line going from the middle of the screen to the left
A horizontal line going from the middle of the screen to the right
Day or night, my bones are white. Who am I?
Vampire
Ghost
Skeleton
Pumpkin
To create a code comment in Python, what do you need to type in front of your text?
%
#
$
@
Is python a High level programming language
NO
Maybe
Yes
I dont know
What is the process of converting one datatype to another called?
Data conversion.
Type Casting.
Type Conversion.
Concatenation.
I´ve got 8 legs. I´m very small. Who am I?
Witch
Ghost
Spider
Monster
What is an integer?
A number with a decimal point.
A whole number.
An array of characters.
A single character.
What function converts the data in a variable into a 'float'?
int()
flt()
bool()
float()
What would the program display if you ran this code and entered 2 and then 3 when prompted?
The total is 5.
The total is 23.
The total is 6.
An error.
What color cat is a symbol of Halloween?
white
orange
yellow
black
print(Hello world!)
I've got a hat and a big black cat. Who am I?
Witch
Vampire
Ghost
Teacher
What Python Turtle function allows you to change the colour of a shape?
fill_color
fillcolor
shape_fill
shape_color
You put this inside a jack-o-lantern
Candy
Soup
Candle
Sandwich
which is the correct syntax for a function from the option given below?
def myFunction
myFunction()
def myFunction():
def myFunction()
Halloween is celebrated in this month
October
November
September
December
What is the output of the following code:
hello = 100
Print(" I would like to say " + hello)
I would like to say hello
I would like to say 100
Error
I dont know
In this code, how much does an apple cost?
£1
50p
20p
25p
