C++ Multiple Choice Questions 21. Which of the following is true about const member functions? a. const members can be invoked on both const as well as nonconst objects b. const members can be invoked only on const objects and not on nonconst objects c. nonconst members can be invoked on const … [Read more...]
Solved C++ MCQs Set 05
C++ Multiple Choice Questions 81. What is the implicit pointer that is passed as the first argument for nonstatic member functions? a. 'self' pointer b. std::auto_ptr pointer c. 'Myself' pointer d. 'this' pointer82. Which of the following operators can be overloaded? a. . (dot or member … [Read more...]
Solved C++ MCQs Set 04
C++ Multiple Choice Questions 61. Which of the following is the most general exception handler that catches exception of ‘any type’? a. catch(std::exception) b. catch(std::any_exception) c. catch(…) d. catch()62. In a group of nested loops, which loop is executed the most number of … [Read more...]
Solved C++ MCQs Set 01
C++ Multiple Choice Questions1. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const member function)?a. const X* constb. X* constc. X*d. X&2. Which classes allow primitive types to be accessed as objects?a. Storageb. Virtualc. Friendd. Wrapper3. When is … [Read more...]
Solved C++ MCQs Set 06
C++ Multiple Choice Questions 101. What is the size of wchar_t in C++? a) 2 b) 4 c) 2 or 4 d) depends on the number of bits in the system102. Pick the odd one out a) array type b) character type c) boolean type d) integer type 103. Which datatype is used to represent … [Read more...]
Solved C++ MCQs Set 03
C++ Multiple Choice Questions41. Which of the following correctly describes the meaning of ‘namespace’ feature in C++? a. Namespaces refer to the memory space allocated for names used in a program b. Namespaces refer to space between teh names in a program c. Namespaces refer to space between the … [Read more...]
Recent Comments