CS172 Final Exam York College

Flashcard
•
Computers
•
•
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
Similar Resources on Wayground
39 questions
Python Semester 2 flashcard -1

Flashcard
•
12th Grade
44 questions
Computer Science Units 1-3 Final Exam Review Part 2

Flashcard
•
7th - 8th Grade
50 questions
Python Module 1 Flashcard

Flashcard
•
12th Grade
44 questions
Final Exam 9

Flashcard
•
9th Grade
40 questions
AP Computer Science Principles - Fall Semester Exam

Flashcard
•
10th Grade
42 questions
CompSci1 2024 Fall Review

Flashcard
•
11th Grade
48 questions
Python 3 Review Part 1

Flashcard
•
9th - 12th Grade
45 questions
Gaming Essentials (ICT) Vocabulary Flashcard

Flashcard
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
12 questions
3-5 Digital Citizenship: Appropriate Use

Quiz
•
3rd - 5th Grade
23 questions
Lab 4: Quizziz Questions

Quiz
•
University
20 questions
logo quiz

Quiz
•
3rd Grade