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. Objects get destroyed in the reverse order as they are created.
  2. Sharing of common information are achieved by the concept of
  3. The members of a class can be made private by
  4. Pick out the most appropriate statement from the following
  5. Protected data members can be accessed
  6. The value of 'this' pointer can be changed.
  7. Class is similar to a variable.
  8. The binding that binds a function call at run time is called
  9. Data objects can be initialized when allocating memory using 'new'.
  10. ios containes a pointer to streambuf.
  11. What is the output of the following program segment - for(i = 1, j = 0; i < 10; i++) j += i; cout…
  12. The exception is processed using
  13. The declaration int **var1; shows that
  14. The ?: can be used to replace
  15. _______ argument(s) are passed in case of binary overloaded operators.
  16. In C++, the exception handler is invoked with a-
  17. this' is an implicit pointer.
  18. We cannot have the address of a constructor.
  19. cc ___________ option is used only to create object file
  20. The && and || operators
  21. An object is an allocated space in memory.
  22. A constructor cannot be explicitly called.
  23. Reference to an object behaves like a constant pointer.
  24. The library function exit() causes an exit from
  25. The template function declaration specifies
  26. Organizing data with methods that operate on the data and creating a new data type is called encapsulation.
  27. By default, C++ uses the following method of passing arguments
  28. The break statement causes an exit
  29. Class members are _______________ by default
  30. _______ argument(s) are passed in case of unary overloaded operators.