C++ programming Questions & Answers (Compiled from UPSC, SSC ,PSC ,IBPS previous question papers)

  • What is polymorphism
  • AAbility to take more than one form
  • BAbility to destroy destructor
  • CAbility to create constructor
  • DNone of above
  • What is abstract class
  • AWhose objects cant be created
  • BWhose objects can be created
  • CDepends on class
  • DNone of above
  • Meaning of STL
  • AStandard Tree Library
  • BStandard Term Library
  • CStandard Template Library
  • DNone of above
  • Meaning of PDB
  • APhysical Database File
  • BProgram Database File
  • CProgram Direct File
  • DNone of above
  • What is inheritance
  • AInheritance allows one class to reuse the state and behavior of another class.
  • BIt deals with dangling pointers
  • CIt deals with void pointers
  • DIt is type of class declaration
  • what is a class in c++
  • AClass in a collection of objects
  • BClass has noting to do with object
  • CIt just have declaration of few variables
  • DNone of above
  • is used for
  • Acarriage return
  • Bnew line
  • Cend of the line
  • Dvertical tab
  • ios::ate is used for
  • ASet the initial position at the start of the file
  • BSet the last position at the end of the file
  • CSet the initial position at the end of the file
  • DSet the last position at the start of the file