NEW
Font size
WorksheetsPython Basics
Total questions: 10
Worksheet time: 5mins
What is the output of the following?
a = True
b = False
c = False
if a or (b and c):
print("GEEKSFORGEEKS")
else:
print("geeksforgeeks")
geeksforgeeks
GEEKSFORGEEKS
error
no output
What is the output of the following code :
print(9//2)
4.5
4.0
error
4
Which of these is not a standard data type?
Tuple
Class
Dictionary
List
What data type is the object below ?
L = [1, 23, ‘hello’, 1]
List
Tuple
Dictionary
String
Is Python case sensitive when dealing with identifiers?
Machine Dependent
Yes
No
None of the above
Which of the following is invalid?
_a=1
__a=1
__a__=1
None of the above
In order to store values in terms of key and value we use what core data type.
Dictionary
Tuple
List
None of the above
Which is the correct operator for power?
//
^
**
None of the above
What is the answer to this expression 22 % 3 is?
0
1
5
7
Which of the following is not a keyword?
if
not
global
swap
