Worksheetspython libraries
Total questions: 10
Worksheet time: 7mins
Name
Class
Date
1.
any two import libraries
a)
messages,turtles
b)
turtle,random
c)
mathematics,sound
d)
dont know
2.
turtle.setx(random.randint(100,-100))
what is the libraries used
a)
turtle
b)
nothing
c)
random
d)
math
3.
What is a variable?
a)
A box(memory location) where you store values
b)
a type of graphics
c)
Data type
d)
a type of memory
4.
What will be the output?
name = "Dave"
print (name)
a)
Dave
b)
'Dave'
c)
name
d)
(name)
5.
what is the syntax for printing 'good'
(a)
6.
the names of the syntaxses
a)
value error
b)
miss spelt error
c)
syntax error
d)
do not know
7.
how to represent a string
a)
" "(double quotes)
b)
=(equals to)
c)
, ,(comma)
d)
none of the options
8.
What extension must you add to the end of a file when saving?
a)
.xlsx
b)
.pptx
c)
.docx
d)
.py
9.
the two types of python file types
a)
file mode
b)
interactive mode
c)
script mode
d)
do not know
10.
player == Turtle.Turtle
how many mistakes are found in this sentance
(a)
100 %
