In a vector, which of the following statements is true?

a) Indexing vector access is range checked.
b) The range of legal index values for a vector is 0 to the value of v.size()-1
c) To add a value use the member function v.push_front( )
d) To manage size of reserve use v.reserve(newReserve)
e) To increase or decrease a vector’s size v.new_size(newSize);

b) The range of legal index values for a vector is 0 to the value of v.size()-1 , and d) To manage size of reserve use v.reserve(newReserve)

a) indexing is not range checked.
b) index values run from 0 to one less than the number of elements
c) use v.push_back( ) to add elements at the back. The mentioned function is not available on the vector. In e) to increase or decrease a vector, use v.resize(newSize);

Computer Science & Information Technology

You might also like to view...

________ characters in Word include small dots for spaces, paragraph marks at the end of paragraphs, and tab marks

A) San serif B) Nonprinting C) Bulleted D) Serif

Computer Science & Information Technology

You can enter data into records using a form that includes fields from one or more tables.

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

Computer Science & Information Technology