Search Header Logo

Python Loops 2

Authored by Elaine Cortez

Computers

University

Used 18+ times

Python Loops 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

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

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The program above prints each number between 1 and 10

as many times as the number itself

10 times

11 times

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The program above prints each number between 1 and 10

as many times as the number itself

10 times

11 times

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in 100 :

print ( i )

Syntax error

prints numbers 0 to 100

prints numbers 1 to 100

prints numbers 0 to 99

prints numbers 1 to 99

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

A while loop equivalent of the for loop above is

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What will print to the screen in this code?

18
-25
-10
-15

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In programming, what is iteration?

The repetition of steps within a program
The order in which instructions are carried out
A decision point in a program
Testing a program to make sure it works

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?

Discover more resources for Computers