Loops & Iteration

Loops & Iteration

Professional Development

10 Qs

quiz-placeholder

Similar activities

Interpersonal Skills

Interpersonal Skills

Professional Development

11 Qs

Repair Quiz

Repair Quiz

Professional Development

15 Qs

SCS-Day 2019 Quiz Contest

SCS-Day 2019 Quiz Contest

Professional Development

15 Qs

FUN QUIZ - NOV (Series 5)

FUN QUIZ - NOV (Series 5)

Professional Development

15 Qs

Business Networking Care 3 Topic 3.1

Business Networking Care 3 Topic 3.1

Professional Development

10 Qs

HFTSK-Disbursements_Jul2024_Part2

HFTSK-Disbursements_Jul2024_Part2

Professional Development

8 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

Term 1 Reflection

Term 1 Reflection

KG - Professional Development

11 Qs

Loops & Iteration

Loops & Iteration

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Hard

Created by

Elankayer Sithirasenan

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A loop that iterates for a specific number of times is called a

while loop

if - then - else

for loop

no loop

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A while loop will continue to iterate as long as the condition remains

true

false

true or false

true and false

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

when will this while loop terminate ?

number = 100

number = 1

number = 0

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

what will be the value of count at the print statement ?

number of lines in the document

number of words in the document

number of characters in the document

zero

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

what will be the value of count at the last statement ?

count = 100

count = 50

count = 10

count = 0

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

if

dayName = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']

what will be dayName[2] ?

Mon

Tue

Wed

Thu

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

For a while loop to function correctly, what has to be true from the following statements (select one) ?

parameters in the loop condition should be always true

parameters in the loop condition should be always false

parameters in the loop condition should change within the loop

parameters in the loop condition should not change within the loop

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?