QuestionPapersHub.com

C++ QUIZ

Q:    Which one is not a valid identifier?

  • A:  rdd2
  • B:  x (5)
  • C:  _DATE_
  • D:  A3O

Q:    For using maths functions in code which file is necessary to include?

  • A:  mathematics
  • B:  mathfile
  • C:  cmath
  • D:  math

Q:    Sequence of characters delimited by quotation marks is called ____.

  • A:  Array
  • B:  String literals
  • C:  Linked lists
  • D:  None of them

Q:    C++ requires every statement to end with a ____.

  • A:  Colon :
  • B:  Question mark ?
  • C:  Comma ,
  • D:  Semi-colon ;

Q:    \n symbol is used for ____.

  • A:  New line
  • B:  Return type
  • C:  Used with Cout
  • D:  None of them

Q:    Total number of keywords in C++ is ____.

  • A:  20
  • B:  35
  • C:  48
  • D:  52

Q:    Data type int short consists of all integers in range of ____.

  • A:  (-128 to +128)
  • B:  (-32,768 to +32,767)
  • C:  (-6,536 to +6,536)
  • D:  None of them

Q:    Variable1= expression; which one is evaluated first?

  • A:  Variable1
  • B:  Expression
  • C:  Both are evaluated equally
  • D:  None of them

Q:    Int has a range of ____.

  • A:  1 byte
  • B:  2 bytes
  • C:  4 bytes
  • D:  8 bytes

Q:    Empty string is denoted by ____.

  • A:  "0"
  • B:  " "
  • C:  0;
  • D:  0
« « 3 4 5