Tag: programming languages

Questions Related to programming languages

  1. A final method in class X can be abstract if and only if X is abstract.

  2. A private static method can be called only within other static methods in class X.

  3. A protected method in class X can be overridden by any subclass of X.

  4. A non-static public final method in class X can be overridden in any subclass of X.


Correct Option: C
  1. Encapuslation

  2. Abstraction

  3. Information Hiding

  4. Polymorphism


Correct Option: B
  1. Virtual functions

  2. Inline functions

  3. Static functions

  4. Friend functions


Correct Option: B
  1. Automatic

  2. Global

  3. Static

  4. External


Correct Option: A,C,D