Exam 8: Strings and Vectors

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The following declares a c-string variable that will hold 10 letters. char str[10];

(True/False)
5.0/5
(35)

To use the string class, you must include which library?

(Short Answer)
4.8/5
(48)

To change the size of a vector, one uses the ______________ member function.

(Short Answer)
4.9/5
(32)

Using the == operator on a string variable results in the same value as using strcmp on two c-strings.

(True/False)
4.8/5
(41)

The following code declares a vector of characters. vector characters<char>

(True/False)
4.8/5
(37)

The c-string to number conversion functions are in the _________ library.

(Short Answer)
4.8/5
(33)

The following declares a c-string and initializes it to "speaker" char str[]="speaker";

(True/False)
4.9/5
(39)

The ________ class lets you treat string values and variables like other pre-defined data types such as int).

(Short Answer)
5.0/5
(30)

____________ can be thought of as an array that can grow and shrink as needed.

(Short Answer)
4.8/5
(42)
Showing 61 - 69 of 69
close modal

Filters

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