What Is The Output of The Following Snippet?: Applied Programming AETN2302 Python Essentials 1
What Is The Output of The Following Snippet?: Applied Programming AETN2302 Python Essentials 1
Python Essentials 1
Assignment
a) True
b) False
c) Yes
d) Var==0
a) True
b) False
c) Yes
d) Var !=0
a) False
b) No
c) True
d) a>=b
1
4. What is the output of the following snippet if the user enters two lines
containing 8 and 1 respectively?
number1 = int(input("first number: "))
number2 = int(input("second number: "))
a) 8
b) 4
c) number2
d) number1
a) one
b) two
c) Done
d) three
print(x > z)
print((y - 5) == x)
a) False
True
b) False
False
c) True
True
d) True
False
2
7. What is the output of the following snippet?
x, y, z = 1, 2,3
print(x + y + z)
a) 123
b) 6
c) 0
d) Error
a) 12
b) 246
c) 0
d) Error
End of Assignment