QuestionPapersHub.com

C++ QUIZ

Q:   For defining their own types programmer's uses ____.

  • A:  Enumerations
  • B:  Operators
  • C:  Algorithms
  • D:  None of them

Q:    Position number contained within a square brackets e.g. my_array [5], is referred as ____.

  • A:  Post-scripts
  • B:  Sub-scripts
  • C:  Elements of an array
  • D:  None of them

Q:   A one dimensional array is always considered as ____.

  • A:  Linear
  • B:  Sequential
  • C:  Complex
  • D:  Both A and B

Q:    Array that are declared static are initialized when ____.

  • A:  Program is loaded into the memory
  • B:  Program is about to end
  • C:  The first element is zero
  • D:  None of them

Q:    Why #define directive is used?

  • A:  It defines array in C program
  • B:  It defines constructors in C program
  • C:  It defines constants in C program
  • D:  Both A and B

Q:    A stream header has ____.

  • A:  5 header files
  • B:  9 header files
  • C:  10 header files
  • D:  20 header files

Q:    ANSI/ISO standard offers how many header files?

  • A:  56
  • B:  60
  • C:  80
  • D:  86

Q:    A constructor that can be invoked with no arguments, is called as ____.

  • A:  Empty constructor
  • B:  Default constructor
  • C:  Inline constructor
  • D:  None of them

Q:    Assignment operator can be used to assign an object to another object of same type, this assignment by default performed by ____.

  • A:  Functions
  • B:  Constructors
  • C:  Memberwise copy
  • D:  Bitwise operator

Q:    Which operator is combined with a pointer to an object to access that object's member?

  • A:  Dot member selection operator
  • B:  Scope resolution operator
  • C:  Arrow member selection operator
  • D:  All of them
« « 3 4 5 » »