0 of 5 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 5 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Average score |
|
Your score |
|
What is the value of the following code snippet?
y = 10
a = 20
b = 51
if a > 19:
if b < 0:
if y == 10:
y = y + 111
elif a > 5:
y = y + 41
else:
y = y + 30
else:
y = y + 22
print(y)
What is the value of this code snippet:
num = 0
for i in range(5):
for j in range(0, -100, -1):
num += 1
print(num)
How many times the print statement would be executed?
x = 0
while (x < 100):
x+=2
if x % 33 == 0:
print(‘This is an awkward loop!’)
Will the following code compile?
for i in range(1001, 2001, 202):
for j in range(-15, -150, -2):
for k in range(1, 10):
print(i,j,k, end=’,’)
What does the third parameter mean in a range() function in python?