
Python Day 3

Quiz
•
Computers
•
University
•
Medium
ABINAYA 2022-2026
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Weekly Contest #10 - TechXNinjas

Quiz
•
University
20 questions
Week 6 - Programming and App Development

Quiz
•
University
20 questions
C Programming Upto Loops

Quiz
•
University
10 questions
Understanding Pseudocode Basics

Quiz
•
6th Grade - University
10 questions
Java Control Flow statements

Quiz
•
University
10 questions
Mastering Python Fundamentals

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
14 questions
PHP Assessment 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University