Questions Related to technology

Multiple choice technology programming languages
  1. a. An interface can only contain method and not variables

  2. b. Interfaces cannot have constructors

  3. c. A class may extend only one other class and implement only one interface

  4. d. Interfaces are the Java approach to addressing its lack of multiple inheritance, but require implementing classes to create the functionality of the Interfaces.

Reveal answer Fill a bubble to check yourself
B Correct answer
Multiple choice technology programming languages
  1. a. Compile time error, main is not correctly defined

  2. b. Run time error, main is not correctly defined

  3. c. Compilation and output of java

  4. d. Compilation and output of hello

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

  2. Exception

  3. Compilation fails.

  4. NullPointerException

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

  2. The code runs with no output.

  3. An exception is thrown at runtime.

  4. Compilation fails because of an error in line 15.

  5. Compilation fails because of an error in line 18.

  6. Compilation fails because of an error in line 19.

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

  2. 1, 2, 3,

  3. Compilation fails.

  4. The code runs with no output.

  5. An exception is thrown at runtime.

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology programming languages
  1. snootchy 420 third second first

  2. snootchy 420 first second third

  3. first second third snootchy 420

  4. third second first siiootchy 420

  5. third first second snootchy 420

  6. first second first third snootchy 420

Reveal answer Fill a bubble to check yourself
D Correct answer