Question Detail

what is a class in c++

  • Class in a collection of objects
  • Class has noting to do with object
  • It just have declaration of few variables
  • None of above
Similar Questions :

1. C++ programs must contain

  • start()
  • system()
  • main()
  • program()

2. Which class has only one unique value for all the objects of class

  • this
  • friend
  • static
  • none of above

3. Which among following has invalid syntax ?

  • #include
  • #include file
  • #include "file"
  • None of above

4. If no constructor is there, then compiler assumes the class to have a default constructor with no arguments

  • True
  • False

5. What is the value of sizeof(char)

  • 1
  • 2
  • 4
  • 8
Read more from - C++ Programming Questions Answers - Chapter 1