Tag: programming languages

Questions Related to programming languages

  1. 10,10,garbage,garbage

  2. error

  3. error because of ambiguty

  4. garbage,10,10,garbage


Correct Option: A
  1. To access derived class objects using base class pointer.

  2. To access base class objects using derived class pointer.

  3. To avoid ambiguity in inheritance.

  4. To create array of objects.


Correct Option: A
  1. Depending upon data members only

  2. Depending upon constructors, destructors, data members, member functions only.

  3. Depending upon data members and non static member functions only.

  4. Depending upon data members and non static member functions, constructors and destructors only.

  5. None of these


Correct Option: C
  1. first >> second >>

  2. first >>

  3. Compile time Error

  4. Runtime Error -- ConcurrentModificationException


Correct Option: B