Suppose str = "ABCDEFGHI". The output of the statementcout << str.length() << endl; is ____.

A. 7
B. 8
C. 9
D. 10

Answer: C

Computer Science & Information Technology

You might also like to view...

The vector class has a ________ member function which can be used to request an increase in the vector's capacity and a __________ member function to decrease a vector's capacity.

a. size(), max_size() b. capacity(), reserve() c. max_size(), shrink() d. reserve(), shrink_to_fit() e. None of these

Computer Science & Information Technology

In OOP, each ________ contains both the data and processing operations necessary to perform a task.

A. structured program B. object C. unstructured program D. content component

Computer Science & Information Technology