
Loops & Iteration

Quiz
•
Professional Development
•
Professional Development
•
Hard
Elankayer Sithirasenan
Used 3+ times
FREE Resource
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
when will this while loop terminate ?
number = 100
number = 1
number = 0
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
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
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Intro to Robotics

Quiz
•
Professional Development
10 questions
NDP Training - Quiz 1

Quiz
•
Professional Development
10 questions
Post Test: Introduction to Hematology Solutions

Quiz
•
Professional Development
15 questions
TOEIC A - 4

Quiz
•
University - Professi...
15 questions
BJT - BASICS

Quiz
•
Professional Development
10 questions
FUNDAMENTOS DE SQL & BI (07.10)

Quiz
•
Professional Development
10 questions
Functions

Quiz
•
Professional Development
13 questions
Python Quiz : Loop

Quiz
•
Professional Development
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