
XI-A1 FLOW OF CONTROL G6
Authored by Pulkit 1292
Information Technology (IT)
11th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. What is the purpose of an elif clause in Python?
1. What is the purpose of an elif clause in Python?
To comment code
To make an alternate branch if the if condition is false
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. L = "45" → datatype of L?
2. L = "45" → datatype of L?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function converts a string "123" into integer?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. x = 5
4. x = 5
if x > 10:
print("A")
elif x > 3:
print("B")
else:
print("C")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. What’s the difference between elif and else?
5. What’s the difference between elif and else?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. Which of these keywords marks a null operation?
6. Which of these keywords marks a null operation?
PASS
CONTINUE
BREAK
ELSE
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. x = float(input())
if (x == 1):
print("Yes")
elif (x >= 2):
print("Maybe")
else:
print("No")
IF USER INPUT 1.5 THEN WHAT WILL BE OUTPUT
7. x = float(input())
if (x == 1):
print("Yes")
elif (x >= 2):
print("Maybe")
else:
print("No")
IF USER INPUT 1.5 THEN WHAT WILL BE OUTPUT
YES
NO
MAYBE
NOTHING PRINTED
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?