WorksheetsPython L2 Quiz 1
Total questions: 7
Worksheet time: 4mins
Name
Class
Date
1.
Which is the correct file extension for saving Python files?
a)
.txt
b)
.scr
c)
.py
d)
No Extension
2.
True or False: When using Thonny, your code saves automatically like it does with Repl.it.
a)
True
b)
False
3.
What are the benefits of running code locally versus on the internet?
a)
No dependence on internet connection
b)
Smoother execution of code
c)
Faster execution of code
d)
All of the above
4.
In python, three basic data types are:
a)
str, int, float
b)
if, elif, else
c)
word, number, decimal number
d)
input, output, event
5.
What is the output of the following:
X = ‘59’
Y = ‘87’
Z = X + Y
print(Z)
a)
146
b)
145
c)
'5987'
d)
'8759'
6.
What is 4**2?
a)
4
b)
8
c)
16
d)
Error
7.
In order to use the Pygame library, at the beginning of our code we must type:
a)
import game
b)
Nothing
c)
import pygame
d)
import pygame's module
100 %
