python (loops)

python (loops)

11th Grade

10 Qs

quiz-placeholder

Similar activities

Bài 10-Thực hành khai thác tài nguyên trên Internet

Bài 10-Thực hành khai thác tài nguyên trên Internet

10th - 12th Grade

10 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

Parcial 2 - Robótica

Parcial 2 - Robótica

11th Grade

10 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

Tin học 10 _ Bài 16 _Định dạng văn bản

Tin học 10 _ Bài 16 _Định dạng văn bản

10th - 12th Grade

10 Qs

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

11th Grade

10 Qs

Cos’è la ROM?

Cos’è la ROM?

6th - 12th Grade

10 Qs

python (loops)

python (loops)

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

PRIYANSHU XI-A

Used 35+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?