CPP Programming MCQs | Page - 9
Dear candidates you will find MCQ questions of CPP Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
β
Correct Answer: (B)
Declared parameter
Q. What kind of error can arise when there is a problem with memory?
β
Correct Answer: (A)
Segmentation fault
Q. Which operations don’t throw anything?
β
Correct Answer: (B)
Operations which are irreversible
Q. What operation can be performed by destructor?
β
Correct Answer: (B)
Resource cleanup
Q. Which interface in the container is required for storage management?
β
Correct Answer: (B)
Allocator interface
Q. How can the member functions in the container be accessed?
β
Correct Answer: (A)
Iterator
Q. In which type of storage location are the vector members stored?
β
Correct Answer: (A)
Contiguous storage locations
Q. What do container adapter provide to interface?
β
Correct Answer: (A)
Restricted interface
Q. What does the sequence adaptor provide?
β
Correct Answer: (C)
Interface to sequence container
Q. Which operators is part of RTTI?
β
Correct Answer: (C)
Both dynamic_cast() & typeid
Jump to