getline superstring, 30 );
Is equivalent to which of the following?
A) cin.getline superstring, 30, '\0' );
B) cin.getline superstring, 30, '\n' );
C) cin.getline superstring, 30, '\s' );
D) cin.getline superstring, 30, '\t' );
Which of the following is false for pointer-based strings?
A) A string may include letters, digits and various special characters i.e., +, -, * ).
B) A string in C++ is an array of characters ending in the null character '\0').
C) String literals are written inside of single quotes.
D) A string may be assigned in a declaration to either a character array or a variable of type char *.
A string array:
A) Stores an actual string in each of its elements.
B) Can only provide access to strings of a certain length.
C) Is actually an array of pointers.
D) Is always less memory efficient than an equivalent double-subscripted array.
A string array is commonly used for:
A) Command-line arguments.
B) Storing an extremely long string.
C) Storing multiple copies of the same string.
D) Displaying floating-point numbers to the screen.