A) It uses a string to store output data.
B) A stream insertion operation cannot be used to append additional data to it.
C) The string data it stores is dynamically allocated.
D) The data it stores can be accessed using the function str.
Correct Answer
verified
Multiple Choice
A) length
B) empty
C) capacity
D) resize
Correct Answer
verified
Multiple Choice
A) Return a copy of string1 minus the character that occupied position 5.
B) Erase all characters up to and including the character in position 5 from string1.
C) Erase all characters starting from and including the character in position 5 to the end of string1.
D) Return a copy of string1 minus every fifth character.
Correct Answer
verified
Multiple Choice
A) s.find_first_not_of("crackling") ;
B) s.find_first_not_of("packrat") ;
C) s.rfind("car") ;
D) s.find("ack") ;
Correct Answer
verified
Multiple Choice
A) find
B) find_first_of
C) find_last_of
D) find_first_not_of
Correct Answer
verified
Multiple Choice
A) -=
B) >>
C) +=
D) getline()
Correct Answer
verified
Multiple Choice
A) Data is stored in the object as characters.
B) Input from the object works identically to input from any file stream.
C) Data in a string can be appended to it.
D) It is used to inputs data from a string in memory to program variables.
Correct Answer
verified
Multiple Choice
A) exchange
B) switch
C) swap
D) copyto
Correct Answer
verified
Showing 21 - 28 of 28
Related Exams