Exam 9: Completing the Basics
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
When a string literal is thrown, the catch statement must declare the received argument as a ____.
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
A
The expression getline(cin, message) accepts and stores characters typed at the terminal continuously until the Enter key is pressed.
Free
(True/False)
4.8/5
(46)
Correct Answer:
True
Every key has a(n) ____________________ code, including Enter, the spacebar, Esc, and Ctrl.
Free
(Short Answer)
4.8/5
(43)
Correct Answer:
numerical
The character output function corresponding to get() is ____________________() .
(Short Answer)
4.9/5
(31)
Two string expressions can be compared for equality by using the standard ____________________ operators.
(Short Answer)
4.9/5
(30)
The expression getline(cin, message) will continuously accept and store characters typed at the terminal until the ____ key is pressed.
(Multiple Choice)
4.9/5
(40)
The values the string class permits are referred to as ____.
(Multiple Choice)
4.8/5
(27)
An advantage of object-oriented program design is that you can use thoroughly tested classes without knowing how the class is constructed.
(True/False)
5.0/5
(33)
Strings can be manipulated by using string class functions or the ____ functions.
(Multiple Choice)
4.9/5
(45)
One of the major uses of strings in programs is for user-input validation.
(True/False)
4.8/5
(32)
Storage areas declared for a class are referred to as ___________________.
(Short Answer)
4.8/5
(26)
The length of a string is always one more than the ____________________ number of the last character s position in the string.
(Short Answer)
4.8/5
(31)
The first step in creating a library is to encapsulate all of the specialized functions and classes into one or more ____________________ and then store the complete code into one or more files.
(Short Answer)
4.9/5
(39)
The traditional C++ approach to error handling uses a(n) ____________________ to return a specific value to indicate specific operations.
(Short Answer)
4.8/5
(36)
By convention, the first character in a string is always designated as position __________________.
(Short Answer)
4.7/5
(33)
The ____ function returns the next character on the stream but doesn t remove it from the stream s buffer.
(Multiple Choice)
4.9/5
(29)
In exception handling, a(n) ____ is the section of code that processes the error.
(Multiple Choice)
4.7/5
(42)
Whenever a string literal is thrown, it s a(n) ____, not a string class object, that is thrown.
(Multiple Choice)
4.9/5
(32)
The function declaration (prototype) for each character class function is contained in the header file string or ____.
(Multiple Choice)
4.9/5
(40)
At a fundamental level, all input (as well as output) is done on a character-by-character basis.
(True/False)
4.8/5
(33)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)