C interview questions – page 65

2,130 questions. Tap “Show answer” to check yourself.

Advertisement
  1. Define encapsulation?

  2. Mention the storage classes names in C++ ?

  3. What is a reference variable in C++?

  4. Explain an abstract class in C++?

  5. What is the role of mutable storage class specifier?

  6. What is the difference between shallow copy and deep copy?

  7. Define the static member function?

  8. Name the data type which can be used to store wide characters in C++.?

  9. What is the function of static keyword on class member variable?

  10. Define a pure virtual function?

  11. What are/is the operator/operators used to access the class members?

  12. Define operator overloading?

  13. Advertisement
  14. Can we initialize a class/structure member variable as soon as the same is defined?

  15. Which access specifier/s can help to achive data hiding in C++?

  16. Name the default standard streams in C++.?

  17. Do we have a String primitive data type in C++?

  18. Define a destructor?

  19. When a class member is defined outside the class, which operator can be used to associate the function definition to a particular class?

  20. Define the data type to store the Boolean value?

  21. Can it be overloaded? What is a constructor?

  22. What do you mean by function overloading?

  23. Can I use malloc() function of C language to allocate dynamic memory in C++?

  24. What do you mean by a default constructor?

  25. Distinguish between the keywords struct and class in C++?

  26. Advertisement
  27. Can we implement all the concepts of OOPS using the keyword struct?

  28. Does C++ supports exception handling?

  29. Which operator can be used in C++ to allocate dynamic memory?

  30. Tell the purpose of 'delete' operator?

  31. Can I use 'delete' operator to release the memory which was allocated using malloc() function of C language?

  32. Define a friend function?

Advertisement