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...]
Download C++ MCQ Questions [PDF]
Download this pdf file containing multiple choice questions (MCQs) from C++ Programming language. The pdf file contains ten printed pages including the cover page and answer sheet. Each questions are listed at the beginning in two column format and correct answers are presented on the last … [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 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