Programming - C++ Language
You Are Here :: Home > C++ Language > Interfaces - General Questions
13.
Which is used for manually writing lookup table?
A.
std:map
B.
std:lookup
C.
std:find
D.
None of the mentioned
Answer: Option A
Explanation:
14.
How the member functions in the container can be accessed?
A.
Iterator
B.
Indirect
C.
Both a & b
D.
None of the mentioned
Answer: Option A
Explanation:
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.
15.
Which of the following type does the container should define?
A.
Iterator type
B.
Vector type
C.
Storage type
D.
None of the mentioned
Answer: Option A
Explanation:
Every container must define an iterator type. Iterators allow algorithms to iterate over the container’s contents.
« prev