programming languages Online Quiz - 340

Description: programming languages Online Quiz - 340
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. The object itself

  2. a copy of reference

  3. the original reference

  4. a reference to a copy

Correct Option: B

In Java if an arithmetic operation is performed then , In case the operands are of different types the resulting type is always the widest of two types

  1. True

  2. False

Correct Option: B

consider the following scenarioint i = 0;if ( i ) {System.out.println("This won't print");}else{System.out.println("This prints");}

  1. This won't print

  2. This prints

  3. There's a runtime exception

  4. scenario is not legal

Correct Option: D

A constructor can be declared abstract

  1. True

  2. False

Correct Option: B

The legal values for a boolean in java are choose all that applies

  1. 1,0


  3. true , false , TRUE,FALSE

  4. true , false

Correct Option: D

In the following code variable test would be created on? static int test;

  1. Heap

  2. Stack

  3. Code Segment

  4. Data Segment

Correct Option: D
  1. Compilation Error

  2. Arithmetic Exception

  3. Compiles with no errors

  4. None of the above

Correct Option: C
- Hide questions