NEW
Font size
WorksheetsLesson 7 - Test 1
Total questions: 15
Worksheet time: 8mins
How many keywords are there in python 3.7?
30
31
32
33
All keyword in python are in
lowercase
uppercase
mix up both
none
Which of the following statement is False?
Variable names can be arbitrarily long.
They can contain both letters and numbers.
Variable name can begin with underscore.
Variable name can begin with number.
Which of the following is a valid variable?
var@
32var
class
abc_a_c
Which of these are keyword?
in
is
assert
all of the above
What is the output of the following code : print 5//2
2
2.5
2.0
none
Which is the correct operator for power(xy)?
X^y
X**y
X^^y
None of the mentioned
What is the answer to this expression, 22 % 3 is?
7
1
0
5
Can we change the background color of output window in turtle graphics ?
no
yes
can't say
none
What is the output of this expression, 3*1**3?
27
9
3
1
Which function is used for changing pointer shape ?
shape()
design()
turtle()
size()
What does ~~~~~~5 evaluate to?
+5
-5
+11
-11
What does 3 ^ 4 evaluate to?
81
12
0.75
7
Which of the following Boolean expressions is not logically equivalent to the other three?
not(-6<0 or-6>10)
-6>=0 and -6<=10
not(-6<10 or-6==10)
not(-6>10 or-6==10)
What will be the output of the following Python code snippet?
not(10<20) and not(10>30)
True
False
Error
no output
