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
Answer: Option C
Explanation:
---
2. Which of the following is not a type of constructor?
A. Copy constructor
B. Friend constructor
C. Default constructor
D. Parameterized constructor
Answer: Option B
Explanation:
---
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.
Answer: Option B
Explanation:
---
4. Which of the following is not the member of class?
A. Static function
B. Friend function
C. Const function
D. Virtual function
Answer: Option B
Explanation:
---
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
Answer: Option C
Explanation:
---
No comments:
Post a Comment
Note: only a member of this blog may post a comment.