C++ Chapter 5

Quiz
•
Computers
•
University
•
Medium
Albert Gorup
Used 19+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A while loop's body can contain multiple statements, as long as they are enclosed in braces.
True
False
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The scope of a variable declared in a for loop's initialization expression always extends beyond the body of the loop.
True
False
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The condition that is tested by a while loop must be enclosed in parentheses and terminated with a semicolon.
True
False
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The update expression of a for loop can contain more than one statement, for example:
for(i = 5; i <= 10; i++, total+= sales)
True
False
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You may nest while and do-while loops but you may not nest for loops.
True
False
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
These are operators that add and subtract one from their operands.
plus and minus
++ and --
binary and unary
conditional and relational
binary and ternary
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Something within a while loop must eventually cause the condition to become false or a(n) __________ results.
null value
infinite loop
unexpected exit
compiler error
None of these
Create a free account and access millions of resources
Similar Resources on Wayground
22 questions
2TEC_AVALIAÇÃO_FRONT END_ 3º TRI_AV5

Quiz
•
12th Grade - University
20 questions
TECHFEST QUALIFYING ROUND

Quiz
•
University
12 questions
UTS Semester 1 Informatika 2024/2025

Quiz
•
8th Grade - University
19 questions
Capsule session 1

Quiz
•
University
15 questions
AITT LAB QUIZ 1

Quiz
•
University
20 questions
LEC 04 - QUIZ 04: Embedded Media

Quiz
•
University
15 questions
Python-loops, branches, functions

Quiz
•
University
20 questions
Mastering Python Loops and Functions

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University