Python loop

Python loop

University

8 Qs

quiz-placeholder

Similar activities

CSC1243 - Introduction to Computer Programs (Programming Langua)

CSC1243 - Introduction to Computer Programs (Programming Langua)

University

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

Revision Gr2-2025

Revision Gr2-2025

3rd Grade - University

12 Qs

PDSB 210622

PDSB 210622

University - Professional Development

10 Qs

Adobe Photoshop

Adobe Photoshop

University

10 Qs

HEAP TREE

HEAP TREE

University

11 Qs

Introduction to Mobile Commerce

Introduction to Mobile Commerce

University

10 Qs

VR and AR in multimedia applications

VR and AR in multimedia applications

University

10 Qs

Python loop

Python loop

Assessment

Quiz

Computers

University

Easy

Created by

Sherif Abdelhamid

Used 13+ times

FREE Resource

AI

Enhance your content

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

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

---------------is a sequence of instruction s that is continually repeated until a certain condition is reached.

Loops ( iteration)

Boolean conditions