Image

Anyone Can Code.





Image


Tutorial 3: Quiz 2



Kriish Mehta




Question 1: What is the output of the following?


print(100/25)



Question 2: What is the output of the following?


print(2%6)



Question 3: What is the output of the following?


print(not(4>3) or not(1==1))



Question 4: What is the output of the following?


print(2**3**2)



Question 5:What is the output of the following?


print(-5**2)



Question 6: What is the output of the following? (PS: Break the problem down into pieces)


print(12+3*4-6/2**2//1)



Question 7: What is the output of the following?


print('a' or 'z')



Question 8: What is the output of the following code?


print('a' and ('z' and ('y' or 'b')))



Question 9: What is the output of the following code?

a = 'll'
b = 'Hello'
print(a in b)



Question 10: What is the output of the following code?

a = 10.00
b = 10.0
print(a is not b)



Question 11: What is the output of the following code??


print(0 and 'a')



Question 12: What is the output of the following code?

a = b = 5
a*=5/5
print(a is b)



Question 13: What is the output of the following code?

print(0 or 1)
print(1 or 2)



Question 14: What is the output of the following?


print((100>100) or (99<=100))



Question 15: What is the output of the following?(Hint: Break the problem down into pieces)


print((1+5**3+29-26*4/10//2%2)*(100//5/2))







Score =




Copyright © 2020, Q-Programming | Created by Arjun Sodhi, Balpreet Juneja and Sammarth Kumar | Developed and Designed by Sammarth Kumar