Home » C++ » MCQs for Experts
Showing 1 - 25 of 50
Question: 1
Question: 2
Question: 3
(A) Every Class has VTable
(B) Class inherited from other Class
(C) When a Class Overrides the function of Base class
(D) Class has atleast one Virtual Function
Question: 4
Question: 5
(A) Compilation Time
(B) Run Time
(C) Linking Time
(D) No
Question: 6
Question: 7
Question: 8
Question: 9
Question: 10
Question: 11
Question: 12
Question: 13
(A) std::exception
(B) std::bad_alloc
(C) std::runtime_error
(D) std::out_of_range
Question: 14
(A) Heap
(B) Stack
(C) Address Space
(D) Depends on Compiler
Question: 15
Question: 16
Question: 17
(A) static_cast
(B) const_cast
(C) reinterpret_cast
(D) dynamic_cast
Question: 18
Question: 19
Question: 20
(A) char *intStr = itoa(a); string str = string(intStr);
(B) std::string s = std::to_string(42);
(C) char stringNum[20]; int num=100; sprintf(stringNum,"%d",num);
(D) None of the above
Question: 21
(A) Arguments are placed in registers
(B) Arguments are placed in stack
(C) Arguments are placed in Heap
(D) None of the above
Question: 22
Question: 23
Question: 24
(A) [capture](parameters)->return-type {body}
(B) [parameters](capture)->return-type {body}
(C) [capture][parameters]->return-type {body}
(D) (capture)(parameters)->return-type {body}
Question: 25