
Flashcard 2 - CC103 - Midterm
Flashcard
•
Other
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following correctly describes a while loop? Options: Executes at least once before checking the condition, Continues executing as long as the condition is true, Always executes exactly 10 times, Executes only if the condition is false
Back
Continues executing as long as the condition is true
2.
FLASHCARD QUESTION
Front
What is the main difference between a while loop and a do while loop?
Back
A while loop checks the condition before executing.
3.
FLASHCARD QUESTION
Front
Which of the following syntax is correct for a while loop in C++? Options: while (condition);, while (condition) { statements; }, do { statements; }, if (condition) { statements; }
Back
while (condition) { statements; }
4.
FLASHCARD QUESTION
Front
What happens if the while loop condition never becomes false?
Back
It results in an infinite loop.
5.
FLASHCARD QUESTION
Front
Which loop is guaranteed to execute at least once? Options: For loop, While loop, Do while loop, None of the above
Back
Do while loop
6.
FLASHCARD QUESTION
Front
What is the correct syntax for a do while loop in C++?
Back
do { statements; } while (condition);
7.
FLASHCARD QUESTION
Front
What is the purpose of using a while loop?
Back
To execute code as long as a condition is true.
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
15 questions
Small Talk in Business Contexts
Flashcard
•
KG - University
15 questions
cars
Flashcard
•
KG - University
10 questions
Interview Skills
Flashcard
•
University
20 questions
A1 high Flashcard (Units 13-14)
Flashcard
•
Professional Development
12 questions
Hazard Profiles and Tectonic Hazards Flashcard
Flashcard
•
11th Grade - University
15 questions
A1 Vocabulary Fun
Flashcard
•
KG
15 questions
Vocabulary Flashcards
Flashcard
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University