Tag: programming languages

Questions Related to programming languages

Multiple choice technology programming languages
  1. Compilation Error

  2. Prints : Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes and so on.

  3. Prints : No No No No No No No No No No and so on.

  4. Prints : Yes No Yes No Yes No Yes No Yes No and so on.

  5. The Output cannot be determined.

Reveal answer Fill a bubble to check yourself
E Correct answer
Multiple choice technology programming languages
  1. The program will not stop and it will run recursively upon execution

  2. The program will output '0 2 5 5'.

  3. The program will output '0 2 4 4'.

  4. The program will output '02 4 5'.

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology programming languages
  1. The program will output 'scjp5_0.chap07.Ques01 1'.

  2. The program will output 1.

  3. The program will output '1' and then will raise an ArrayIndexOutOfBoundsException.

  4. The program won't print anything but will raise an ArrayIndexOutOfBoundsException at run-time.

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

  2. Compilation fails due to error at line 2.

  3. Compilation fails due to error at line 4.

  4. Compilation fails due to error at both line 1 and line 4.

Reveal answer Fill a bubble to check yourself
A Correct answer