1. Which keyword is used to define a class in C++? A. class B. struct C. typedef D. interface Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
2. What is the process of creating an instance of a class called in C++? A. Encapsulation B. Polymorphism C. Inheritance D. Instantiation Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
3. What is inheritance in C++? A. The process of creating multiple instances of a class B. The process of hiding the implementation details of a class C. The process of deriving a new class from an existing class D. The process of defining functions within a class Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
4. What is the access specifier that allows members to be accessed from outside the class in C++? A. protected B. public C. friend D. protected Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
5. Which concept in C++ allows a class to have multiple functions with the same name but different parameter lists? A. Polymorphism B. Encapsulation C. Overloading D. Inheritance Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
6. What is encapsulation in C++? A. The process of creating multiple instances of a class B. The process of hiding the implementation details of a class C. The process of defining functions within a class D. The bundling of data with the methods that operate on that data Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
7. Which keyword is used to inherit a class in C++? A. public B. private C. protected D. extends Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
8. What is polymorphism in C++? A. The ability of a function to perform different tasks based on the object that it is acting upon B. The process of creating multiple instances of a class C. The process of hiding the implementation details of a class D. The process of defining functions within a class Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
9. Which of the following is true about constructors in C++? A. They can be overloaded B. They are used to destroy objects C. They are called explicitly by the programmer D. They are automatically called when an object is created Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
10. What is the process of wrapping data and functions into a single unit called in C++? A. Inheritance B. Polymorphism C. Encapsulation D. Abstraction Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board