
Python Day 3
Authored by ABINAYA 2022-2026
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? x = 5 if x < 10: print("Less than 10")
Less than 10
No output
Syntax error
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? x = 15 if x < 10: print("Less than 10") else: print("10 or more")
Less than 10
10 or more
Syntax error
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? x = 20 if x < 10: print("Less than 10") elif x < 20: print("Less than 20") else: print("20 or more")
Less than 10
. Less than 20
20 or more
. Syntax error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? for i in range(3): print(i)
0 1 2
1 2 3
0 1 2 3
1 2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? i = 0 while i < 3: print(i) i += 1
1 2 3
0 1 2
0 1 2 3
1 2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When is the else block executed in an if-else statement?
Always
Only when the if condition is true
Only when the if condition is false
Only when there is an error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an if statement in programming?
To repeat a block of code multiple times
To execute a block of code only if a specified condition is true
To exit a loop immediately
To define a function
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?
Similar Resources on Wayground
20 questions
COA_QUIZ_UNIT I
Quiz
•
University
16 questions
Algo Quiz
Quiz
•
University
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
11 questions
Computer Science (1-9) - Identifying & Preventing Threats
Quiz
•
University
18 questions
Quiz on Misinformation and Bias
Quiz
•
10th Grade - University
20 questions
DI (EM24) - Diseño de Contenidos (T8)
Quiz
•
University - Professi...
20 questions
IT 101 - Quiz 3
Quiz
•
University
20 questions
NACOS Kahoot Session II
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade