Protected data members can be accessed

A. Only from the base class itself

B. Both form the base class and from its derived classes

C. From the class which is friend of the base class

D. None of the above are correct

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. The member of a structure can be directly accessed by
  2. new operator is used
  3. The scope resolution operator is -
  4. The new operator always returns a void pointer.
  5. A destructor can have a return type.
  6. A function that is called automatically when an object is destroyed is known as
  7. One of the important features of an abstract class is
  8. Member function cannot be called from within a constructor.
  9. A variable defined within a block is visible
  10. In C++, an identifier must be initialized using constant expression.
  11. The signature of a function is
  12. The following syntax is valid. void inline gram_ panchayat :: show_gram_ panchayat_info().
  13. A constructor cannot be explicitly called.
  14. this' pointer has to be used while accessing data members in a member function.
  15. :: is known as
  16. We can make function inline by using the keyword 'inline'.
  17. Which of the following is true about const member functions?
  18. Reference to an object behaves like a constant pointer.
  19. The members of a class by default are private.
  20. The getch() library function
  21. Constructor returns void type value.
  22. It is possible to allow non member function access to private members of a class by declaring it as
  23. The members of a class can be made private by
  24. Organizing data with methods that operate on the data and creating a new data type is called encapsulation.
  25. iostream is inheried from istream, ostream and ios class.
  26. Which of the following can legitimately be passed to a function?
  27. The template function declaration specifies
  28. Which of the following is not a component of file system
  29. Pick out the most appropriate statement from the following
  30. We cannot have the address of a constructor.