Tag: programming languages

Questions Related to programming languages

Static variables are implicitly final.

  1. True

  2. False


Correct Option: B

In a Switch construct ,the default statement must be placed after all the case statements.

  1. True

  2. False


Correct Option: B

This is a legal way to create an instance of an inner class: OuterClass.InnerClass x=new OuterClass().InnerClass();

  1. True

  2. False


Correct Option: A

When an array is constructed,are its elements automatically initialized?

  1. True

  2. False


Correct Option: A
  1. Compiler Error

  2. Compiles and runs

  3. Runtime Error

  4. None of these


Correct Option: B
  1. a) FP

  2. b) FPC

  3. c) Both (a) & (b)

  4. d) None of the above


Correct Option: B