Search Header Logo

Python Loops

Authored by Ajay Tech

Other

Professional Development

Used 2K+ times

Python Loops
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 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

30 sec • 1 pt

Media Image

The equivalent of the above for loop using the while syntax would be

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The above program prints

Numbers 1 to 10 in reverse order

Numbers 1 to 11 in reverse order

Numbers 1 to 10

Numbers 1 to 11

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

The program above prints

Numbers between 1 and 100 that are multiples of 5

Numbers between 1 and 100

Numbers between 1 and 100 divisible by 5

Numbers between 1 and 101 that are multiples of 5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The code above prints all numbers between 1 and 30 that are

not divisible by 5

divisible by 5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The program above prints the sum of

all odd numbers less than 100

all even numbers less than 100

all numbers less than 100

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The program above prints the sum of all the numbers between 0 and 101 that are

alternate odd numbers

alternate even numbers

alternate numbers

Access all questions and much more by creating a free account

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?