Search Header Logo

Iteration - 9CS

Authored by Hadia Riaz

Computers

12th Grade

Used 4+ times

Iteration - 9CS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct syntax for "FOR" loop

for i = range (0,5)

for i in range (6)

print (x)

for i in range (6):

print (x)

None of above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose correct syntax for "While" loop

while i < 6:  

print(i) 

 i += 1

while i < 6:  

print(i)  

i = i+ 1

while i <> 6:

input (i)

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the output for the code:

for x in range(2, 6):

print(x)

2345

1234

234567

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the value of count when user entered 5,3,4,2,8

Count = 0

Input (i)

while i < 6:  

print(i)

Count = Count + 1

Print(count)

5

4

0

6

5.

OPEN ENDED QUESTION

3 mins • 1 pt

Write the code for while loop, systems keep entering the data until user enters 6.

Evaluate responses using AI:

OFF

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?