Python Loop Statements

Quiz
•
Other
•
Professional Development
•
Hard
btechsmartclass .com
Used 178+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The loop statements are used to ____________.
Make a decision
execute the same code repeatedly
to jump from one line to another
to perform IO operations
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code?
Hello
Error
Hello for infinite times
prints nothing
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select the iterative statements in python.
while
if
for
do-while
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for loop in python works on _____________.
range
iterable data
both range and iterable data
any data
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select the statements that check condition in python
while
for
do-while
if
elif
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
1 2 3 4
1 2 3 4 5
1
5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to comeout come out of a loop?
exit
continue
break
all the bove
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
PST-UNIT-3.1

Quiz
•
Professional Development
14 questions
Knots

Quiz
•
5th Grade - Professio...
11 questions
M11.5.2 Autoflight Category A V4.2.2

Quiz
•
Professional Development
6 questions
Python String

Quiz
•
Professional Development
10 questions
Plant Automation System

Quiz
•
KG - Professional Dev...
10 questions
Snakes

Quiz
•
3rd Grade - Professio...
12 questions
British film, tv and leisure

Quiz
•
Professional Development
15 questions
AI Trivia

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade