Questions and Answers
- What do vectors represent?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Vectors are sequence containers representing arrays that can change in size.
- Which are the parameters for the content of the buffer?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The contents of the buffer are initialized using the values from the iterator range supplied to the constructor by the start and finish parameters.
- Which of the following type does the container should define?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Every container must define an iterator type. Iterators allow algorithms to iterate over the container’s contents.
- How can the member functions in the container be accessed?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The container manages the storage space for its elements and provides member functions to access them, either directly or through iterators which reference objects with similar properties to pointers.
- Which is used for manually writing lookup table?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
std:map