0
Alien head

programming languages Online Quiz - 232

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

Static variables are implicitly final.

  1. True

  2. False


Correct Option: B

This is legal. float f = 2;

  1. Yes

  2. No

  3. Compile error

  4. Don't know


Correct Option: A

If method A declares that it throws an exception and method B calls method A,then method B must ALWAYS declare the same exception.

  1. True

  2. False


Correct Option: B

It is not possible to have an instance of a non-static inner class before any instances of the outer class have been created.

  1. True

  2. False


Correct Option: A

EJB stands for ....

  1. Enterprise Java Bean

  2. Enter Java Bean

  3. Exceptional Java Bean

  4. Event Java Bean


Correct Option: A

assuming all variables are declared and initialized properly this will compile. for(i=l; k< 5; j++){};

  1. True

  2. False


Correct Option: A

It is legal to access a static method using an instance of the class?

  1. True

  2. False


Correct Option: A

an abstract class can have a constructor?

  1. True

  2. False


Correct Option: A

can you have a final abstract class?

  1. True

  2. False


Correct Option: B

a method cannot be declared as throwing more than one exception.

  1. True

  2. False


Correct Option: B

An exception can be caught by a catch block with an argument type that is a superclass of the thrown exception.

  1. True

  2. False


Correct Option: A

The ARITH(COMPAT) compiler option allows you to control the maximum number of digits is-----?

  1. (1) 40

  2. (2) 45

  3. (3) 31

  4. (4) 18


Correct Option: D

The ARITH(EXTEND) compiler option allows you to control the maximum number of digits is ----?

  1. (1) 40

  2. (2) 45

  3. (3) 31

  4. (4) 18


Correct Option: C

In terms of Performance considerations for PACKED-DECIMAL,the following statement is true.....

  1. (1) Using an odd number of digits is 10% to 30% slower than using an even number of digits

  2. (2) Using an even number of digits is 10% to 30% faster than using an odd number of digits

  3. (3) Using an odd number of digits is 5% to 20% slower than using an even number of digits

  4. (4) Using an odd number of digits is 5% to 20% faster than using an even number of digits


Correct Option: D

On the average, ARITH(EXTEND) was ---------ARITH(COMPAT), with a range of equivalent to ------.

  1. (1) 1% slower than,38% slower

  2. (2) 10% slower than,4% slower

  3. (3) 1% faster than,38% faster

  4. (4) 10% faster than,4% faster


Correct Option: A

When using binary (COMP) data items, the use of the SYNCHRONIZED clause specifies that

  1. (1) The binary data items will be properly aligned only on halfword boundaries.

  2. (2) The binary data items will be properly aligned only on fullword boundaries.

  3. (3) The binary data items will be properly aligned only on doubleword boundaries.

  4. (4) The binary data items will be properly aligned on halfword, fullword, or doubleword boundaries.


Correct Option: D

In general which of following type of access is least efficient in VSAM

  1. (1) Sequential Access

  2. (2) Random Access

  3. (3) Dynamic Access

  4. (4) Depends on the datat in the file


Correct Option: B

Which one of the following is false about CISZ

  1. (1) Smaller CISZ results in faster retrieval for random processing

  2. (2) Larger CISZ results in faster retrieval for sequential processing

  3. (3) CISZ stands for Control interval size

  4. (4) CISZ should be constant for sequential files


Correct Option: D

What does ELPA stands for

  1. (1) Extensive Line Processing Area

  2. (2) Extensive Link Pack Area

  3. (3) Extended Link Pack Area

  4. (4) Elusive Line Processing Area


Correct Option: C

Which of the option is correct regarding two statements mentioned below :(a) ARITH(EXTEND) is slower than ARITH(COMPAT)(b) AWO is slower than NOAWO

  1. (1) only a is correct

  2. (2) only b is correct

  3. (3) Both a and b are correct

  4. (4) None of them are correct


Correct Option: A
+ View questions