
Python loops

Quiz
•
Computers
•
8th Grade
•
Medium
Ержан Ауезов
Used 8+ times
FREE Resource
43 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The program above:
prints all the odd numbers between 1 and 20
prints all even numbers between 1 and 20
print all the odd numbers between 1 and 21
prints all the even numbers between 1 and 21
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How many times the following loop will execute:
i = 1
while True:
print(i)
i += 2
0
2,4,6,8,..................
1,3,5,7,9,.............
1,2,4,6,8......................
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
for loop in python works on:
1.range
2.iteration
3.Both of the above
4.None of the above
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
i = 1
while True:
if i%7 == 0:
break
print(i)
i += 1
123456
1234567
error
none
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
i = 1
while False:
if i%2 == 0:
break
print(i)
i += 2
1
1357......
1234......
none of the mentioned
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
x = 123
for i in x:
print(i)
1 2 3
123
error
none of the above
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
for i in range(10):
if i == 5:
break
else:
print(i)
else:
print("Here")
01234 Here
012345 Here
01234
12345
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Python Unit 01 - Introduction to Python

Quiz
•
7th - 9th Grade
42 questions
App inventor

Quiz
•
7th Grade - University
43 questions
History of computer 1st

Quiz
•
8th Grade
39 questions
2.3 - Robust Programs

Quiz
•
KG - University
40 questions
Python Data Types

Quiz
•
8th - 12th Grade
43 questions
Year 8 KCS 2024 Microbit And computing Asessment

Quiz
•
8th Grade
44 questions
Python Test 2

Quiz
•
7th - 12th Grade
40 questions
Introduction to Microsoft Word

Quiz
•
8th - 12th Grade
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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
10 questions
Networking Devices and Their Functions

Interactive video
•
5th - 8th Grade
20 questions
Binary Numbers Quiz

Quiz
•
6th - 8th Grade