Iteration - 9CS

Quiz
•
Computers
•
12th Grade
•
Medium
Hadia Riaz
Used 4+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Język Programowania Python

Quiz
•
1st - 12th Grade
10 questions
ONG LẤY MẬT

Quiz
•
9th - 12th Grade
10 questions
Programming - Iteration, Basic Programming Constructs & Loop

Quiz
•
2nd - 12th Grade
10 questions
Quiz1_HPB2021_2010t1

Quiz
•
1st - 12th Grade
10 questions
Python - kl. 8

Quiz
•
7th - 12th Grade
10 questions
CODEHS Looping Unit 5 Review

Quiz
•
9th - 12th Grade
10 questions
XÂU KÍ TỰ

Quiz
•
9th - 12th Grade
10 questions
MOAC Excel 2016 Lesson 01

Quiz
•
8th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade