download Mastguru Android App

Question Detail

Which among following is correct way of declaring object of a class ?

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;
Similar Questions :

1. An explicitly defined destructor function

  • may be virtual
  • may not be virtual
  • will always be virtual
  • will never be virtual

2. The major goal of inheritance in C++ is ?

  • To facilitate the reusability of code
  • To help modular programming
  • To facilitate the conversion of data types
  • To extend the capabilities of a class

3. What is actual syntax of destructor in c++ ?

  • !Classname( )
  • @Classname( )
  • $Classname( )
  • ~Classname( )

4. The members of a class are ?

b) by default are private
c) are made private by declaring as private
d) none of the above]

  • have no visibility by default
  • public by default
  • private by default
  • protected by default

5. & operator is ?

  • address operator
  • indirection operator
  • logical and
  • logical or
Read more from - C++ Programming Questions Answers - Set 2
Post a comment