Question 1 of 25
Hints left: 3
Q1
Which of the following shows multiple inheritances?
Q2
Which access specifier allows members of a class to be accessed only by the derived classes in C++?
Q3
Which keyword is used to declare a member function of a class as constant in C++?
Q4
What is the purpose of the static member variable in C++?
Q5
What is the default access specifier for members of a class in C++?
Q6
Which keyword is used to create an object of a class in C++?
Q7
What is the purpose of a constructor in C++?
Q8
What is the process of combining data and functions into a single unit called in C++?
Q9
Which access specifier allows members of a class to be accessed from outside the class in C++?
Q10
What is the purpose of the destructor in C++?
Q11
Which operator is used to access members of an object in C++?
Q12
What does modularity mean?
Q13
Which operator is used to access members of a class through a pointer in C++?
Q14
How many types of polymorphism are there in C++?
Q15
What is the difference between a constructor and a destructor in C++?
Q16
Which of the following is correct about new and malloc?
Q17
What is an object in C++?
Q18
What does the 'this' pointer refer to in C++?
Q19
Which type of function is used to destroy objects in C++?
Q20
What is a class in C++?
Q21
What is the purpose of the 'static' keyword in C++ class members?
Q22
What is the correct syntax to define a member function outside the class in C++?
Q23
What is the purpose of using friend functions in C++?
Q24
What happens if a pointer is deleted twice in a program as shown in the following C++ statements? int *ptr = new int; delete ptr; delete ptr;
Q25
Which keyword is used to declare a class in C++?