
whileLoop
Authored by Umit Akdag
Education
9th - 12th Grade
Used 5+ times

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
1 min • 1 pt
If a loop does not have a way of stopping, it is called an infinite loop.
Of the following which one is NOT infinite loop?
while (number < 5) ;
{ cout << "Hello" ;
number++; }
int number = 0 ;
while (number < 5)
{ cout < "Hello"; }
while (number < 5)
cout < "Hello";
number++;
while (number < 5)
{ cout < "Hello";
number++; }
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of this while loop ?
int number = 0;
while (number < 5)
{ cout << "Hello\n";
number++ ; }
Hello
Hello
Hello
Hello
Hello
Hello
Hello
HelloHelloHelloHello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
While loop will never iterate, if the test expression is false to start with.
T / F ?
TRUE
FALSE
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
in the test expression(condition), any NONZERO value is evaluated as true.
T / F ?
FALSE
TRUE
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The while loop is especially useful for validating input. If an invalid value is entered, a loop can require that the user reenter it as many times as necessary.
Which one is a while Loop for Input Validation?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Food Waste
Quiz
•
6th - 9th Grade
10 questions
PTS ITL Genap
Quiz
•
11th Grade
10 questions
TEKPER KD 3.4
Quiz
•
10th Grade
10 questions
And the lucky number is ...........
Quiz
•
12th Grade
10 questions
การจัดหมวดหมู่หนังสือ
Quiz
•
10th Grade
10 questions
Sectors of Indian Economy
Quiz
•
8th - 12th Grade
10 questions
Conjuntos
Quiz
•
12th Grade - University
10 questions
NCPA Cup 2022
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Education
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade