Answer the following questions true (T) or false (F)
1. size and capacity of a vector are two names for the same thing.
2. Assignment behaves essentially the same for vectors as for arrays.
1. false
Explanation: the size member function returns the number of elements inserted in the vector. The capacity member function returns the number of elements that a vector can hold without requiring reallocation.
2. false
Explanation: There is no assignment for arrays. The programmer must carry out the copy member by member.
You might also like to view...
An advantage of using inheritance with exceptions is:
a. The ability to catch related errors easily. b. Allowing catch statements to be imported into classes. c. The ability to explicitly test for derived class objects individually. d. The simplification of destructor calls for objects.
An instance of _________ are unchecked exceptions.
a. RuntimeException b. Exception c. Error d. Throwable e. NumberFormatException
Which ls command option lists all files including hidden files?
A. -F B. -A C. -f D. -a
Explain the link between digital certificates and asymmetric cryptography.
What will be an ideal response?