Exam 4: Selection Structures
Exam 1: Preliminaries51 Questions
Exam 2: Problem Solving Using C++52 Questions
Exam 3: Assignment, Formatting, and Interactive52 Questions
Exam 4: Selection Structures51 Questions
Exam 5: Repetition Statements50 Questions
Exam 6: Modularity Using Functions50 Questions
Exam 7: Arrays50 Questions
Exam 8: Io Streams and Data Files50 Questions
Exam 9: Completing the Basics50 Questions
Exam 10: Pointers50 Questions
Exam 11: Introduction to Classes50 Questions
Exam 12: Adding Functionality to Your Classes50 Questions
Exam 13: Structures50 Questions
Exam 14: Numerical Methods50 Questions
Select questions type
Before the current ANSI/ISO C++ standard, C++ didn t have a built-in Boolean data type with its two Boolean values, true and false .
(True/False)
4.9/5
(36)
The if-else statement is written: if (expression) statement1; else statement2; . If the value of expression is non-zero, ____________________ will be executed.
(Short Answer)
4.7/5
(32)
With ____, the program includes code to check for improper data before an attempt is made to process it further.
(Multiple Choice)
4.8/5
(42)
In a relational expression, the value of the expression can be only the integer value 1 or ____.
(Multiple Choice)
4.9/5
(47)
Using the abs() function requires including the ____ header file.
(Multiple Choice)
4.8/5
(37)
Any variable declared within a block of statements has meaning only between its ____________________ and the closing braces defining the block.
(Short Answer)
4.8/5
(39)
Because the NOT operator is used with only one expression, it is a(n) ____________________ operator.
(Short Answer)
4.8/5
(40)
In C++, two string expressions can be compared by using relational operators or the ____ class s comparison methods.
(Multiple Choice)
4.7/5
(40)
One or more if-else statements can be included in either part of an if-else statement.
(True/False)
4.9/5
(33)
The ____ statement identifies the end of a particular case and causes an immediate exit from the switch statement.
(Multiple Choice)
4.8/5
(38)
Showing 41 - 51 of 51
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)