1.

What do container adapter provide to interface?(a) Restricted interface(b) More interface(c) No interface(d) Memory interfaceThe question was asked during a job interview.This is a very interesting question from Sequence Adapters in section Class Hierarchies, Library & Containers of C++

Answer» RIGHT option is (a) Restricted interface

To EXPLAIN: A container adapter PROVIDES a restricted interface to a container.In PARTICULAR, adapters do not provide iterators; they are intended to be used only through their SPECIALIZED interfaces.


Discussion

No Comment Found

Related InterviewSolutions