Skip to main content

Posts

Showing posts from July, 2021

OOPS MCQ 2000+ QUESTION

1. If the class name is X, what is the type of its “this” pointer (in a monostatic, non-const. member function)? a. const. X* const. b. X* const. c. X* d. X& 2. Which classes allow primitive types to be accessed as objects? a. Storage b. Virtual c. Friend d. Wrapper 3. When is std.::bad-clock exception thrown? a. When new operator cannot allocate memory b. When allot function fails c. When type requested for new operation is considered bad, this exception is thrown d. When delete operator cannot delete the allocated (corrupted) object 4. Which one of the following is not a fundamental data type in C++ a. float b. string c. into d. char 5. Which of the following is a valid destructor of the class name “Country” a. into ~Country() b. void Country() c. into ~Country(Country ob.) d. void ~Country() 6. Which of the following correctly describes C++ language? a. Statically typed language b. Dynamically typed language c. Both Statically and dynamically typed language d. Type-less language...