Questions Related to technology

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
Multiple choice technology programming languages
  1. Starting of Main block Static block In the Main block Display block

  2. Static block Display block Starting of Main block In the Main block Display block

  3. Error: Non static method cannot accessed from static context

  4. Starting of Main block In the Main block Display block

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology programming languages
  1. The type List is assignable to List<A>.

  2. The type List<Object> is assignable to List<?>.

  3. The type List<D> is assignable to List<? extends B>.

  4. The type List<? extends A> is assignable to List<A>.

  5. The type List<Object> is assignable to any List reference.

  6. The type List<? extends B> is assignable to List<? extends A>.

Reveal answer Fill a bubble to check yourself
B,C,F Correct answer