Filters
Question type

Study Flashcards

The expression getline(cin, message) will continuously accept and store characters typed at the terminal until the ____ key is pressed.


A) Shift
B) Enter
C) ESC
D) Ctrl

Correct Answer

verifed

verified

The function declaration (prototype) for each character class function is contained in the header file string or ____.


A) ctype
B) c_type
C) cctype
D) C-type

Correct Answer

verifed

verified

The values the string class permits are referred to as ____.


A) string objects
B) string literals
C) C-strings
D) istream strings

Correct Answer

verifed

verified

In exception handling, a(n) ____ is the section of code that processes the error.


A) exception handler
B) exception
C) catch clause
D) thrown exception

Correct Answer

verifed

verified

The traditional C++ approach to error handling uses a(n) ____________________ to return a specific value to indicate specific operations.

Correct Answer

verifed

verified

The expression getline(cin, message) accepts and stores characters typed at the terminal continuously until the Enter key is pressed.

Correct Answer

verifed

verified

True

Every key has a(n) ____________________ code, including Enter, the spacebar, Esc, and Ctrl.

Correct Answer

verifed

verified

numerical

At a fundamental level, all input (as well as output) is done on a character-by-character basis.

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

Two string expressions can be compared for equality by using the standard ____________________ operators.

Correct Answer

verifed

verified

Strings can be manipulated by using string class functions or the ____ functions.


A) character-at-a-time
B) C-string
C) c_str
D) cin

Correct Answer

verifed

verified

When a string literal is thrown, the catch statement must declare the received argument as a ____.


A) C-string
B) Z-string
C) C-variable
D) string variable

Correct Answer

verifed

verified

A

The ____ function returns the next character on the stream but doesn t remove it from the stream s buffer.


A) put()
B) check()
C) peek()
D) get()

Correct Answer

verifed

verified

The length of a string is always one more than the ____________________ number of the last character s position in the string.

Correct Answer

verifed

verified

The character output function corresponding to get() is ____________________() .

Correct Answer

verifed

verified

Storage areas declared for a class are referred to as ___________________.

Correct Answer

verifed

verified

One of the major uses of strings in programs is for user-input validation.

Correct Answer

verifed

verified

Whenever a string literal is thrown, it s a(n) ____, not a string class object, that is thrown.


A) C-string
B) array of integers
C) numeric value
D) character

Correct Answer

verifed

verified

An advantage of object-oriented program design is that you can use thoroughly tested classes without knowing how the class is constructed.

Correct Answer

verifed

verified

By convention, the first character in a string is always designated as position __________________.

Correct Answer

verifed

verified

Showing 1 - 20 of 50

Related Exams

Show Answer