Search Header Logo

Python loop

Authored by Sherif Abdelhamid

Computers

University

Used 15+ times

Python loop
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An infinite loop is :A loop runs infinite times when the condition-------------.

never fails

run one time

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Print i as long as i is less than 6 and i is initiated with the value of 1 :


Which program is correct

Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python while loop if the Boolean condition of a while loop never changes, it could cause the program to run forever or to freeze/crash.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python while loop The loop stops running when the condition ----------------, and the execution will move to the next line of code.

fails (become false)

is True

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python while loop It continually executes the statements(code) as long as the given condition is ----------

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The common concept in all programming languages loops is --------------------that is checked every round and the loop will continue to run until the condition is reached

the stopping condition

syntax

variable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Loops help us remove the redundancy of code when a task has to be repeated several times

True

False

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