Home / Engineering / CPP Programming MCQs / Page 10

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.

M

Mr. Dubey • 51.43K Points
Coach

Q. 91) At which time does the static_cast can be applied?

(A) Compile-time construct
(B) Runtime construct
(C) Both Compile-time & Runtime construct
(D) None
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 92) Which function is used to position back from the end of file object?

(A) seekg
(B) seekp
(C) both seekg & seekp
(D) None
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 93) String class have a concat() function that is used to _____________________

(A) Replace old string by new string
(B) Add two strings
(C) Append one string at end of another string
(D) Remove a string from end of one string
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 94) Which among the following is/are type(s) of this pointer?

(A) const
(B) volatile
(C) const or volatile
(D) int
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 95) Which is the pointer which denotes the object calling the member function?

(A) Variable pointer
(B) This pointer
(C) Null pointer
(D) Zero pointer
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 96) Which property is shown most when upcasting is used?

(A) Code reusability
(B) Code efficiency
(C) Complex code simple syntax
(D) Encapsulation
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 97) If multiple inheritance is implemented, which upcasting will be correct?

(A) Upcast to first base class listed in inheritance
(B) Upcast to any base class
(C) Upcast to send base class listed in inheritance
(D) Upcast is not possible
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 98) When are the pointer types known for upcasting the objects?

(A) Compile time
(B) Runtime
(C) Source code build time
(D) Doesn’t apply to pointer types
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 99) Which among the following is a mandatory condition for downcasting?

(A) It must not be done explicitly
(B) It must be done implicitly
(C) It must be done explicitly
(D) It can’t be done explicitly
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 100) Which container provides random access iterators?

(A) vector
(B) deque
(C) sort
(D) both vector & deque
View Answer Discuss Share