QuestionPapersHub.com

C++ QUIZ

Q:    Member functions are also called ____.

  • A:  Methods
  • B:  Rational members
  • C:  Services
  • D:  Both A and C

Q:    C++ allows objects of different types to respond differently to same function call, is called ____.

  • A:  Inheritance
  • B:  Encapsulation
  • C:  Polymorphism
  • D:  None of them

Q:    In object oriented programming there are two distinct views, one is consumer and second is manufacturer view, that manufacturer's action are called ____.

  • A:  Functions
  • B:  Operations
  • C:  Methods
  • D:  Both A and B

Q:    Syntax errors are called ____.

  • A:  Run time error
  • B:  Compilation error
  • C:  Compile time error
  • D:  Both B and C

Q:    Errors like dividing a number by zero, is called as ____.

  • A:  Run time error
  • B:  Execution time error
  • C:  Fatal error
  • D:  All of them

Q:    Whenever a new value is placed in variable's location, it ____.

  • A:  Replaces the old value
  • B:  It is stored in a new location
  • C:  Previous contents are saved
  • D:  None of them

Q:    Cin stands for ____.

  • A:  Console input
  • B:  Console output
  • C:  Console stream
  • D:  None of them

Q:    Input stream Cin reads items form ____.

  • A:  Right to left
  • B:  Left to right
  • C:  Middle to end
  • D:  None of them

Q:    All keywords bool, catch, private, public, this and throw, were introduced in ____.

  • A:  C language
  • B:  C++ language
  • C:  Both C and C++
  • D:  None of them

Q:    How many different types of control structures are used for constructing a C++ program?

  • A:  5
  • B:  6
  • C:  7
  • D:  8
« « 3 4 5 » »