C++ Programming Quiz
C++ Programming Quiz contain set of 10 MCQ questions for C++ Programming MCQ which will help you to clear beginner level quiz.
1. Which of the following type of class allows only one object of it to be created?
A. Virtual class
B. Abstract class
C. Singleton class
D. Friend class
2. Which of the following is not a type of constructor?
A. Copy constructor
B. Friend constructor
C. Default constructor
D. Parameterized constructor
3. Which of the following statements is correct?
A. Base class pointer cannot point to derived class.
B. Derived class pointer cannot point to base class.
C. Pointer to derived class cannot be created.
D. Pointer to base class cannot be created.
4. Which of the following is not the member of class?
A. Static function
B. Friend function
C. Const function
D. Virtual function
5. Which of the following concepts means determining at runtime what method to invoke?
A. Data hiding
B. Dynamic Typing
C. Dynamic binding
D. Dynamic loading
6. Which of the following two entities (reading from Left to Right) can be connected by the dot operator?
A. A class member and a class object.
B. A class object and a class.
C. A class and a member of that class.
D. A class object and a member of that class.
7. A constructor that accepts __________ parameters is called the default constructor.
A. one
B. two
C. no
D. three
8. Can a class have virtual destructor?
A. Yes
B. No
9. Destructor has the same name as the constructor and it is preceded by ______ .
A. !
B. ?
C. ~
D. $
10. Which of the following statement is correct?
A. C++ enables to define functions that take constants as an argument.
B. We cannot change the argument of the function that that are declared as constant.
C. Both A and B.
D. We cannot use the constant while defining the function.