Tag: programming languages

Questions Related to programming languages

Multiple choice technology programming languages
  1. Line 26 prints “a” to System.out

  2. Line 26 prints ‘b” to System.out

  3. An exception is thrown at line 26 at runtime.

  4. Compilation of class A will fail due to an error in line 6

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology programming languages
  1. An exception is thrown at runtime

  2. Compilation fails because of an error in line 7

  3. Compilation fails because of an error in line 4.

  4. Compilation succeeds and no runtime errors with class A occur

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology programming languages
  1. Point p = Line.getPoint();

  2. Line.Point p = Line.getPoint();

  3. Point p = (new Line()).getPoint();

  4. Line.Point p = (new Line()).getPoint();

Reveal answer Fill a bubble to check yourself
D Correct answer
Multiple choice technology programming languages
  1. 1

  2. 3

  3. 123

  4. 321

Reveal answer Fill a bubble to check yourself
C Correct answer