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 yup
  1. In C++, the exception handler is invoked with a-
  2. Data objects can be initialized when allocating memory using 'new'.
  3. We can make function inline by using the keyword 'inline'.
  4. cc ___________ option is used only to create object file
  5. Which of the following relationship is known as inheritancerelationship?
  6. By using protected, one can create class members that are private to their class but
  7. The members of a class can be made private by
  8. The binding that binds a function call at run time is called
  9. iostream is inheried from istream, ostream and ios class.
  10. Static data member can be declared as const too.
  11. Reference to an object behaves like a constant pointer.
  12. What is the value of Friday in the following - enum days { Monday, Tuesday, Wednesday = -1, Thursday,…
  13. Friend function have access to the
  14. Protected members cannot be inherited.
  15. Member function cannot be called from within a constructor.
  16. The member of a structure can be accessed through a pointer by
  17. this' pointer has to be used while accessing data members in a member function.
  18. _____________ operator must have one class object
  19. A direct access file is:
  20. When one object initializes another object the following function is invoked
  21. Objects get destroyed in the reverse order as they are created.
  22. main() returns a value of type
  23. Private data members can be accessed
  24. In a for loop with a multi-statement loop body, semicolons should appear following
  25. Which of the following is not a component of file system
  26. A function that is called automatically when an object is destroyed is known as
  27. Constructor returns void type value.
  28. Public data members can be accessed
  29. Inline function specifier reduces the overheads associated with a normal function call.
  30. new operator is used