Font size
WorksheetsPython Variables
Total questions: 11
Worksheet time: 4mins
What will it print
(a)
What will it print
Error
15
'15'
Can we use reserved names as variable name
True
False
I don't know
What will it print
Make a variable named var and assign value as value
(a)
Why the following variable name invalid for python:
1st_Name = 153156456456415
No special characters other than underscore
The variable name starts with a number
Keep names meaningful
There is nothing wrong with this variable name
x = str(3)
y = int(3)
z = float(3)
x = 3
y = 3
x = 3.00
x = '3'
y = 3
z = 3.0
x = '3
y = 3
z = 3.0
x = 3
y = 3
z = 3.0
.P = 5
print(.P)
5
5.0
'5'
Error
int(5)
Which one is/are variables
x = 5
x = str(5)
x = int(5)
x = float(5)
x = [5]
x = (5)
x = {5:5}
x = 5
x = str(5)
x = int(5)
x = floata(5)
x = [5]
x = (5)
x = 5
x = str(5)
x = int(5)
x = float(5)
x = [5]
x = (5)
x = {0:5}
x = '5'
x = 5
x = int((5)
x = float(5)
x = [5]
x = (5)
x = {5:5}
None of the above
5
Error
10
'10'
How is/was the quiz
Hard
Easy
Medium
