Tag: programming languages

Questions Related to programming languages

Multiple choice technology programming languages
  1. import sun.scjp.Color.*;

  2. import static sun.scjp.Color.*;

  3. import sun.scjp.Color; import static sun.scjp.Color.*;

  4. import sun.scjp.; import static sun.scjp.Color.;

  5. import sun.scjp.Color; import static sun.scjp.Color.GREEN;

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

  2. Compilation fails

  3. A ParseException is thrown by the parse method at runtime.

  4. A NumberFormatException is thrown by the parse method at

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

  2. B. Compilation fails because of an error in line 12.

  3. B. Compilation fails because of an error in line 13.

  4. B. Compilation fails because of an error in line 14.

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology programming languages
  1. s.writeInt(x);

  2. s.serialize(x);

  3. s.writeObject(x);

  4. s.defaultWriteObject();

Reveal answer Fill a bubble to check yourself
D Correct answer