Tag: programming languages

Questions Related to programming languages

Multiple choice technology programming languages
  1. r, t, t,

  2. r, e, o,

  3. Compilation fails.

  4. An exception is thrown at runtime.

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

  2. r, e, o,

  3. Compilation fails.

  4. An exception is thrown at runtime.

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

  2. B

  3. C

  4. D

  5. E

  6. F

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology programming languages
  1. prints "Clove is nice"

  2. prints "Mint is ok"

  3. prints "Sage is average"

  4. Class cast Exception at runtime.

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

  2. 20

  3. 30

  4. 40

Reveal answer Fill a bubble to check yourself
D Correct answer
Multiple choice technology programming languages
  1. process(bytes);

  2. BitUtils.process(bytes);

  3. app.BitUtils.process(bytes);

  4. util.BitUtils.process(bytes);

  5. import util.BitUtils. *; process(bytes);

  6. SomeApp cannot use the process method in BitUtils.

Reveal answer Fill a bubble to check yourself
F Correct answer
Multiple choice technology programming languages
  1. Error: Non static method intialize cannot accessed from static context main

  2. Error: Method initialize is already defined

  3. i=0 after i=369 j=318

  4. Error: incompatible types

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

  2. An exception is thrown at runtime.

  3. The code executes normally and prints ‘foo”.

  4. The code executes normally, but nothing is printed.

Reveal answer Fill a bubble to check yourself
B Correct answer
Multiple choice technology programming languages
  1. process(bytes);

  2. BitUtils.process(bytes);

  3. util.BitUtils.process(bytes);

  4. SomeApp cannot use methods in BitUtils.

  5. import util.BitUtils.*; process(bytes);

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology programming languages
  1. public class MinMax<?> {

  2. public class MinMax<? extends Number> {

  3. public class MinMax<N extends Object> {

  4. public class MinMax<N extends Number> {

  5. public class MinMax<? extends Object> {

  6. public class MinMax<N extends Integer> {

Reveal answer Fill a bubble to check yourself
D,F Correct answer