0 of 3 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 3 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)
What will the following code print:
birthday = “19-10-2005”
likesCake = False
if(birthday = “19-10-2005”):
print(“Happy Birthday”)
if(likesCake == True):
print(“Here have some cake”)
else:
if(likeCake == False):
print(“Here, have some tasty vegetables!”)
else:
likesCake = True
print(“Hope you have a nice day!”)
What will the following code print:
for i in range(20):
if( i == 5):
print(“Lucky number 5!”)
if(i == 10):
print(“Number 10 is the best.”)
if(i == 15):
print(“3×5 = 15”)
if(i == 20):
print(“Twenty is just two tens.”)
if(i == 25):
print(“It’s good to be alive for 25.”)
How will code handle:
while(True):
[OTHER CODE INSIDE THE WHILE LOOP]
Hint: If you’re unsure try testing it out!