CPP Programming MCQs | Page - 10
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: (A)
Compile-time construct
Q. Which function is used to position back from the end of file object?
β
Correct Answer: (A)
seekg
Q. String class have a concat() function that is used to _____________________
β
Correct Answer: (C)
Append one string at end of another string
Q. Which among the following is/are type(s) of this pointer?
β
Correct Answer: (C)
const or volatile
Q. Which is the pointer which denotes the object calling the member function?
β
Correct Answer: (B)
This pointer
Q. Which property is shown most when upcasting is used?
β
Correct Answer: (C)
Complex code simple syntax
Q. If multiple inheritance is implemented, which upcasting will be correct?
β
Correct Answer: (B)
Upcast to any base class
Q. When are the pointer types known for upcasting the objects?
β
Correct Answer: (A)
Compile time
Q. Which among the following is a mandatory condition for downcasting?
β
Correct Answer: (C)
It must be done explicitly
Q. Which container provides random access iterators?
β
Correct Answer: (D)
both vector & deque
Jump to