Java

 

Question No

Question

Answer options

1

This keyword halts the execution of the current loop and forces control out of the loop.

 

a.    continue

b.    hold

c.    break

d.    stop

 

2

Which cast must be used to cast an object to another class

a.    Specific cast

b.    target cast

c.    catual cast

d.    Formal cast

 

3

 ODBC is used in which JDBC Type driver

a.    Type 1

b.    Type 2

c.    Type 3

d.    Type 4

 

4

Which of the following is the document comment

a.    begin with !* and end with *! .

b.    Begin with /** and end with */.

c.    begin with /* and end with */.

d.    begin with /** and end with **/.

 

5

Identify the concept used for writing a code to play games.

a.    Dynamic

b.    Multitasking

c.    High performance

d.   Multithreaded

 

6

 For which data type, modulus operator can be applied?

a.    Floating point

b.    Integer

c.    Double

d.   All of these

 

7

Which of the following statement/s does not accurately describe the use of access modifiers within a class definition?

a.    They can be applied to both data & methods

b.    They must precede a class's data variables or methods

c.    They can follow a class's data variables or methods

d.    They can appear in any order

 

8

Which keyword is used to incorporate the definition of one class into another?

a.    Super

b.    This

c.    Extends

d.    New

 

9

Which method that is declared without an implementation?

a.    Virtual

b.    Abstract

c.    Constructor

d.    None of these

 

10

Which is an API for the Java Programming Language that is related to database?

a.    JDBC

b.    POSIX

c.    ODBC

d.    None of these