Tag: programming languages

Questions Related to programming languages

Multiple choice technology programming languages
  1. for(int y : x) {

  2. for(x : Int y) {

  3. int y = 0; for(y : x) {

  4. for(int y=0, z=0; z<x.length; z++) { y = x[z];

  5. for(int y=0, int z=0, int z=0; z<x.length; z++) { y = x[z];

  6. int y = 0; for(int z=0; z<x.length; z++) { y = x[z];

Reveal answer Fill a bubble to check yourself
A,F Correct answer
Multiple choice technology programming languages
  1. abc

  2. abcde

  3. Compilation fails due only to an error on line 7.

  4. Compilation fails due to errors on multiple lines.

  5. Compilation fails due only to an error on line 10.

  6. Compilation fails due only to an error on line 11.

Reveal answer Fill a bubble to check yourself
F Correct answer
Multiple choice technology programming languages
  1. -ic of

  2. -mf of

  3. Compilation failure

  4. -ic mf of

  5. -ic mc mf of

  6. -ic mc of mf

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

  2. null null

  3. A ClassCastException is thrown.

  4. A NullPointerException is thrown.

  5. A NoClassDefFoundError is thrown.

  6. An ArrayIndexOutOfBoundsException is thrown.

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

  2. Runtime error.

  3. Hello Hi Hi_Hello Hi

  4. Hi_Hello

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology programming languages
  1. OF(11) is: 45

  2. OF(11) is: 56

  3. OF(11) is: 89

  4. OF(11) is: 111

  5. Compilation fails.

  6. Runtime Exception

Reveal answer Fill a bubble to check yourself
E Correct answer