Exam 18: Class String and String Stream Processing

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following would not return string::npos when used on the string s which contains "rack":

Free
(Multiple Choice)
4.9/5
(29)
Correct Answer:
Verified

D

Which of the following is not an argument of the assign member function?

Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
Verified

C

Which of the following does not apply to an istringstream object?

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
Verified

C

The function call string1.erase 5 ) will:

(Multiple Choice)
4.9/5
(38)

The total number of elements that can be stored in a string without increasing its current amount of allocated memory is called its:

(Multiple Choice)
4.8/5
(34)

Class string has member function __________ to interchange the data stored in two string objects

(Multiple Choice)
4.8/5
(34)

Which of the following returns a bool?

(Multiple Choice)
4.8/5
(36)

Which of the following is not overloaded for strings?

(Multiple Choice)
4.8/5
(27)

Which of the following is false?

(Multiple Choice)
4.7/5
(42)

Iterators do not:

(Multiple Choice)
4.8/5
(38)

Which function changes the actual string stored in the string object i.e., is not a const member function)?

(Multiple Choice)
4.8/5
(34)

Which of the following is an invalid definition?

(Multiple Choice)
4.8/5
(39)

What type of value is returned by the overloaded equality and relational operators for strings?

(Multiple Choice)
4.9/5
(37)

All of the following are true of an ostringstream object except that:

(Multiple Choice)
4.9/5
(36)

What is the code for a loop that iterates from the end of a string toward the beginning?

(Multiple Choice)
4.8/5
(37)

The capabilities of inputting and outputting strings in memory are known as:

(Multiple Choice)
4.8/5
(36)

Which of the following cannot be used to concatenate strings?

(Multiple Choice)
4.9/5
(38)

Strings:

(Multiple Choice)
4.7/5
(32)

The arguments passed to replace do not include:

(Multiple Choice)
4.8/5
(39)

Given the strings defined below, which statement will not return 0? String s1 = "Mighty Mouse"; String s2 = "Mickey Mouse";

(Multiple Choice)
4.7/5
(29)
Showing 1 - 20 of 26
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)