____ returns the maximum number of elements that can be inserted into the vector container vecCont without reallocation.

A. vecCont.size()
B. vecCont.max_size()
C. vecCont.capacity()
D. vecCont.length()


Answer: C

Computer Science & Information Technology

You might also like to view...

( *max )( num1, num2, num3 );:

a. Is the header for function max. b. Is a call to the function pointed to by max. c. Is the prototype for function max. d. Is a declaration of a pointer to a function called max.

Computer Science & Information Technology

What is wrong in the following code?

``` #include #include using namespace std; int main() { vector v; cout << v[0]; return 0; } ``` A. The program has a runtime error on vector v. B. The program has a runtime error on v[0], because the vector is empty. C. The program has a syntax error on vector v. D. The program has a syntax error on v[0].

Computer Science & Information Technology

In order for the computer to execute a program, both the program and the data must be placed in the computer's random access memory (RAM).

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

What is the primary disadvantage of using compressed files and folders?

A. Increased disk space usage B. Increased RAM utilization C. Increased CPU utilization D. Increased backup times

Computer Science & Information Technology