Home

Which of the following is true about const member functions?

A. const members can be invoked on both const as well as nonconst objects

B. const members can be invoked only on const objects and not on nonconst objects

C. nonconst members can be invoked on const objects as well as nonconst objects

D. none of the above

You can do it
  1. In C++, the stream base class is
  2. An object is an allocated space in memory.
  3. In case of nested class, enclosing class can directly access the private data member of nested class.
  4. Delete operator is used
  5. By using protected, one can create class members that are private to their class but
  6. If a friend function is declared inside a class it can access all data members of the class.
  7. The characteristic that data can be manipulated only through member functions that are part of the class…
  8. Constructor returns void type value.
  9. In a class, only the member function can access data, which is not accessible to outside. This feature…
  10. Inline functions_____________ call overload.
  11. A constructor cannot be explicitly called.
  12. The break statement causes an exit
  13. Pick out the most appropriate statement from the following
  14. Static data member occurs in only class scope.
  15. The && and || operators
  16. Protected data members can be accessed
  17. The member of a structure can be directly accessed by
  18. Organizing data with methods that operate on the data and creating a new data type is called encapsulation.
  19. The members of a class can be made private by
  20. When you overload an arithmetic assignment operator, the result
  21. In C++, the keyword auto can be used for
  22. Sharing of common information are achieved by the concept of
  23. When accessing a structure member, the identifier to the left of the dot operator is the name of
  24. The declaration int **var1; shows that
  25. _____________ operator must have one class object
  26. Which of the following is not a component of file system
  27. We cannot have the address of a constructor.
  28. A destructor can have a return type.
  29. Private members of a structure can be accessed directly from the outside of the structure.
  30. The scope resolution operator is -