do-while vs do loop Quiz
Quiz
•
others
•
9th - 12th Grade
•
Practice Problem
•
Medium
Anna Niewodniczanska
Used 4+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 mins • 3 pts
What is the main difference between a while loop and a do-while loop?
2.
MULTIPLE CHOICE QUESTION
10 mins • 3 pts
How many times will the following loop execute? int x = 5; do { cout << x << endl; x--; } while (x > 0);
3.
MULTIPLE CHOICE QUESTION
10 mins • 3 pts
What is the output of the following code? int num = 0; do { cout << num << " "; num += 2; } while (num < 5);
4.
MULTIPLE CHOICE QUESTION
10 mins • 3 pts
What is the output of the following code? int i = 0; while (i < 5) { cout << i << " "; i--; }
5.
MULTIPLE CHOICE QUESTION
10 mins • 3 pts
Which of the following is a valid syntax for a do-while loop in C++?
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for others
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Meiosis vs mitosis
Quiz
•
9th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
16 questions
Ethos, Pathos, Logos Practice
Quiz
•
9th Grade
15 questions
Two Step Equations
Quiz
•
9th Grade
