CS172 Final Exam York College
Flashcard
•
Computers
•
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

49 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following C++ loop structures always runs at least once? while, do-while, for, none of the loop types is guaranteed to run once
Back
do-while
2.
FLASHCARD QUESTION
Front
How many iterations does a loop with the following header make (assume the loop body makes no changes to i)?
for (int i = 1; i < 5; i++)
Back
4
3.
FLASHCARD QUESTION
Front
What is the output of the following code?
int count = 0;
do {
cout << count << " ";
count++;
} while (count < 5);
Back
0 1 2 3 4
4.
FLASHCARD QUESTION
Front
What output is produced by the following segment of code:
for (int x = 10; x > 0; x++)
cout << x << " ";
Back
Infinite Loop
5.
FLASHCARD QUESTION
Front
How many loop types are there in C++?
Back
3
6.
FLASHCARD QUESTION
Front
Fill in the blank to make this code print Go Heat! 3 times
int loop = 0;
while(__________) {
cout<<“Go Heat”<
}
Back
loop < 3
7.
FLASHCARD QUESTION
Front
What is the purpose of loops in programming?
Back
To execute a block of code multiple times
Create a free account and access millions of resources
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
49 questions
03_ObliCon
Flashcard
•
12th Grade
50 questions
Expanding Your Vocabulary
Flashcard
•
11th Grade
43 questions
ACCOUNTING FOR REVENUE AND EXPENSES
Flashcard
•
University
45 questions
Blue Line Unit 1 Paket 1
Flashcard
•
7th Grade - University
50 questions
Earth and its Habitat
Flashcard
•
8th Grade
45 questions
Legal Terminology Flashcards
Flashcard
•
12th Grade
48 questions
science exam notes 2-4, zonation and habitat
Flashcard
•
9th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade