Font size
WorksheetsPython Quiz 🐍
Total questions: 10
Worksheet time: 8mins
What is a variable?
Store integers
Store strings
Store data
None of the above
How do we create variables in python?
Var ==1
Var != 1
Var = 1
Var ;= 1
Which of the following is not the correct syntax for a variable?
0Var = 1
/Var = 1
Var = 1
var09 = 1
How do we print a statement in python?
print_(x)
print.x
print.(x)
print(x)
What will be the output for the following program
x = 'apple'
print(x)
X
x
print(X)
apple
In python turtle to make the turtle move forward which command is used?
t.(forward)
t.left
t = forward
t.forward()
Which is the correct option from below
import * turtle
import turtle *
import turtle
IMPORT Turtle
To draw a square, what is the preferred angle?
120
180
90
360
The correct syntax for creating a turtle is
Turtle = turtle
house = tutle.Turtle()
house = turtle-Turtle()
house = turtle.Turtle()
What does t.forward(40) do?
Turns 40 degrees
Turns left 40 degrees
Turn 50 degrees to the right
Moves 40 steps forward
