python (loops)

Quiz
•
Computers
•
11th Grade
•
Hard
PRIYANSHU XI-A
Used 34+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 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
20 sec • 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
20 sec • 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
20 sec • 1 pt
i = 1
while True:
if i%7 == 0:
break
print(i)
i += 1
123456
1234567
error
none
5.
MULTIPLE CHOICE QUESTION
20 sec • 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
20 sec • 1 pt
x = 123
for i in x:
print(i)
1 2 3
123
error
none of the above
7.
MULTIPLE CHOICE QUESTION
20 sec • 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
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
10 questions
Java: repetition control structure for & while

Quiz
•
10th - 12th Grade
10 questions
ONG LẤY MẬT

Quiz
•
9th - 12th Grade
15 questions
AP Computer Science A Review 1

Quiz
•
10th - 12th Grade
10 questions
Quiz1_HPB2021_2010t1

Quiz
•
1st - 12th Grade
14 questions
Kiểu dữ liệu xâu kí tự - xử lí xâu kí tự

Quiz
•
9th - 12th Grade
10 questions
Python - kl. 8

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade