python loop 7th

python loop 7th

7th Grade

25 Qs

quiz-placeholder

Similar activities

BÀI THI THỬ MÔN TIN HỌC LỚP 4

BÀI THI THỬ MÔN TIN HỌC LỚP 4

1st - 8th Grade

20 Qs

Google Classroom

Google Classroom

5th - 8th Grade

22 Qs

KIỂM TRA 15 PHÚT MÔN TIN 12

KIỂM TRA 15 PHÚT MÔN TIN 12

12th Grade - University

20 Qs

ICT Unit-2

ICT Unit-2

University

20 Qs

2.3.1 Graph Traversal & Path Finding Algorithms

2.3.1 Graph Traversal & Path Finding Algorithms

12th Grade - University

20 Qs

MEDIDAS DE TENDENCIA CENTRAL

MEDIDAS DE TENDENCIA CENTRAL

University

20 Qs

BIMBINGAN TIK VIII

BIMBINGAN TIK VIII

8th Grade

20 Qs

3.8  Mengevaluasi Perangkat Eksternal / Peripheral (SisKom)

3.8 Mengevaluasi Perangkat Eksternal / Peripheral (SisKom)

10th Grade

20 Qs

python loop 7th

python loop 7th

Assessment

Quiz

Computers

7th Grade

Hard

Created by

Ержан Ауезов

Used 1+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 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

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

i = 1

while True:

if i%7 == 0:

break

print(i)

i += 1

123456

1234567

error

none

4.

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

5.

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

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

x = 'abcd'

for i in range(len(x)):

x = 'a'

print(x)

a

abcd abcd abcd

a a a a

none

7.

MULTIPLE CHOICE QUESTION

2 mins • 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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?