C++ Chapter 5

Quiz
•
Computers
•
University
•
Medium
Albert Gorup
Used 18+ 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
20 questions
Python Files

Quiz
•
University
15 questions
CSE 102 Exam 2 Practice

Quiz
•
University
20 questions
C++ Quiz

Quiz
•
University
20 questions
Python Programming

Quiz
•
University
16 questions
A "C" Event-the backbone of modern coding.

Quiz
•
University
20 questions
Review JavaScript

Quiz
•
11th Grade - University
17 questions
Flow of Control in C++ ( Conditional statements)

Quiz
•
9th Grade - University
20 questions
Web Systems and Technologies

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade