Topic 5-2: do while loop

Quiz
•
Computers
•
University
•
Hard
Adila Nordin
Used 12+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct format of a do while loop?
do-while(condition);
{
//statement
}
do{
//statement
}while(condition);
do-while(condition)
{
//statement
}
do{
//statement
}while(condition)
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is the main difference between a while and a do while loop in Java? (can select more than 1 answer)
while loop executes the statements inside of it at least once even if the condition is false.
do while loop executes the statements inside of it at least once even if the condition is false.
while loop will not executes the statements inside of it if the condition is false.
do while loop will not executes the statements inside of it if the condition is false.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about do while loop is true?
do while statement is an alternative to multiple if else statement.
do while statement only executes if the condition/expression is false.
do while statement is written as do (condition) while.
do while statement will execute at least once before testing its condition/expression.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a do while loop, the condition is evaluated at the _____ of the statement.
start
end
middle
never
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times a do while loop is guaranteed to loop?
0
1
Infinitely
Can't say, need to check when the condition becomes false.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the code?
5
5 2
5 2 0
Error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the code?
11
5
11 16
Error
Similar Resources on Wayground
10 questions
Mastering Python Fundamentals

Quiz
•
University
10 questions
Java Control Flow statements

Quiz
•
University
12 questions
Ex - Python Control Statements

Quiz
•
University
10 questions
DECISION MAKING IN C

Quiz
•
University
10 questions
Understanding Pseudocode Basics

Quiz
•
6th Grade - University
10 questions
LOOPS IN C++

Quiz
•
10th Grade - University
10 questions
FOP - CHAPTER 6

Quiz
•
University
10 questions
Unit 2 Python

Quiz
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University