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. The binding that binds a function call at run time is called
  2. Which of the following relationship is known as inheritancerelationship?
  3. Private data members can be accessed
  4. Pick out the most appropriate statement from the following
  5. Delete operator is used
  6. A variable defined within a block is visible
  7. The library function exit() causes an exit from
  8. Which of the following are good reasons to use an object oriented language?
  9. A destructor can have arguments like constructor.
  10. Member function cannot be called from within a constructor.
  11. Class members are _______________ by default
  12. Static data member can be declared as const too.
  13. You can read input that consists of multiple lines of text using
  14. In C++, an identifier must be initialized using constant expression.
  15. In case of nested class, enclosing class can directly access the private data member of nested class.
  16. We cannot have the address of a constructor.
  17. Which of the following is true about const member functions?
  18. The getch() library function
  19. One of the major disadvantage with late binding is
  20. The members of a class by default are private.
  21. The member of a structure can be accessed through a pointer by
  22. "[]" Operator is a unary operator.
  23. It is possible to allow non member function access to private members of a class by declaring it as
  24. We can make function inline by using the keyword 'inline'.
  25. Public data members can be accessed
  26. Protected data members can be accessed
  27. Operator overloading is
  28. By using protected, one can create class members that are private to their class but
  29. The following syntax is valid. void inline gram_ panchayat :: show_gram_ panchayat_info().
  30. An object is an allocated space in memory.