download Mastguru Android App

Question Detail

Which among following has invalid syntax ?

  • #include
  • #include file
  • #include "file"
  • None of above
Similar Questions :

1. Constructor is

  • A class automatically called whenever a new object of this class is created
  • A class automatically called whenever a new object of this class is destroyed
  • A function automatically called whenever a new object of this class is created
  • A function automatically called whenever a new object of this class is destroyed

2. \r is used for

  • carriage return
  • new line
  • end of the line
  • vertical tab

3. Which is not a correct variable type

  • float
  • int
  • double
  • real

4. C++ programs must contain

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

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

  • True
  • False
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment