0

programming languages Online Quiz - 63

Description: programming languages Online Quiz - 63
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

What modifiers may be used with an interface declaration

  1. Public

  2. Private

  3. Abstract

  4. Protected


Correct Option: A,C
  1. Preconditions

  2. Postconditions

  3. Exceptions

  4. Class invariants


Correct Option: C

At first JAVA was named as______ .

  1. Fusion

  2. Gabriel

  3. Oak

  4. Globe


Correct Option: C
  1. To provide access to the Java runtime system.

  2. To avoid run time exception.

  3. To provide the capability to execute code no matter whether or not an exception is thrown or caught.

  4. Both 2 & 3


Correct Option: A

A class inherit the constructors of its superclass?

  1. True

  2. False


Correct Option: B
  1. all sub-classes of Throwable

  2. not the sub classes of RuntimeException

  3. all sub-classes of Error

  4. None of these


Correct Option: B

public class Fun { public static void main(String[] args){ int x=0; boolean b=true; String str; str=(b)?"success": (x=0)?"Failure":"Neither"; System.out.println(str); } }

  1. Failure

  2. success

  3. Exception will be thrown

  4. Compilation error

  5. Neither


Correct Option: D
- Hide questions