download Mastguru Android App

Question Detail

What is class in c++ ?

  • When you define a class, you define a blueprint for a data type.
  • When you define a class, you make get more funtionality.
  • When you define a class, you define the logic.
  • When you define a class, you make debugging.
Similar Questions :

1. A Variable __ of void type.

  • May be declared
  • Can be initialized
  • Cannot be intialized
  • Cannot be declared

2. int *ptr[5];

  • a pointer of 5 int elements
  • an array of 5 int pointers
  • an array of 5 elements returning an int value
  • none of above

3. Which of following valid option will not return a value in c++ ?

  • free
  • void
  • empty
  • null

4. Which operators can not be overloaded ?

  • Binary operator
  • Ternary operator
  • Unary operator
  • All can be overloaded

5. Which of the following keywords are used to control access to a class member ?

  • protected
  • switch
  • goto
  • for
Read more from - C++ Programming Questions Answers - Set 2
Post a comment