Exam 21: Class String and String Stream Processing

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

Which of the following cannot be used to concatenate strings?

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

D

Which of the following statements about C++11's functions for converting string objects to numeric values is false?

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

A

If string s1 is lexicographically greater than string s2, then the value returned by s2.compare(0, s2.size(), s1) must be?

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

C

The arguments passed to replace do not include:

(Multiple Choice)
5.0/5
(37)

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.9/5
(37)

If string s1 has the value "computer" and string s2 has the value "promise", which call to insert will produce the string "compromise"?

(Multiple Choice)
4.9/5
(36)

String iterators:

(Multiple Choice)
4.8/5
(31)

Which of the following provides bounds checking?

(Multiple Choice)
5.0/5
(33)

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

(Multiple Choice)
4.8/5
(33)

Which of the following is an invalid definition?

(Multiple Choice)
4.9/5
(40)

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

(Multiple Choice)
4.9/5
(28)

Which of the statements a), b) and c) is false?

(Multiple Choice)
4.7/5
(31)

Strings:

(Multiple Choice)
4.8/5
(40)

Which of the following is false?

(Multiple Choice)
4.8/5
(39)

Iterators do not:

(Multiple Choice)
4.8/5
(37)

Which of the following returns a bool?

(Multiple Choice)
4.8/5
(24)

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

(Multiple Choice)
4.9/5
(34)

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

(Multiple Choice)
4.7/5
(33)

If string s contains "antidisestablishmentarianism", then s.substr(7, 13) would be:

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.9/5
(28)
Showing 1 - 20 of 28
close modal

Filters

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