wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PRE-TEST (COMPUTER 9)

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following is wrapper class in java?

a)

Float

b)

Integer

c)

Double

d)

all of above

2.

Which one of the following is true?

a)

runnable interface declares the start method

b)

Thread.start() method is used to move a thread from a new state to the runnable state

c)

Thread.runnable() method is used to move a thread from new state to the runnable state

d)

Thread.run() method is used to move a thread from new state to the runnable state

3.

Which one of the following statement is not true about the collection interface?

a)

all methods defined in set interface are also defined in collection interface

b)

list interface extends collection interface

c)

set interface extends collection interface

d)

all methods defined in list interface are also defined in collection interface

4.

Which one of the following is a legal decelration of a two- dimensional array of integers

a)

int[] a[] = new int[5][];

b)

int[5][5] a = new int[][];

c)

int a = new int[5,5];

d)

int[][] a = new int[][5];

5.

Which interface needs to be implemented in order to make an object seralized

a)

clonnable

b)

remote

c)

seralizable

d)

none of the above

6.

Superclass of all classes representing the output stream of characters is ____________.

a)

OutputStream

b)

Reader

c)

InputStream

d)

Writer

7.

Which of this class is used by character streams for reading data from buffer?

a)

BufferReader

b)

InputStreamReader

c)

FileReader

d)

FileInputStream

8.

Which one this keywords are used to create a class in java?

a)

class

b)

struct

c)

int

d)

none of the avove

9.

Which one of these events will cause the thread to die?

a)

on calling the sleep() method.

b)

when the execution of the run() method ends

c)

when the execution of the start() method ends

d)

on calling the wait() method

10.

Which one of the following have elements in insertion order?

a)

sorted map

b)

hashmap

c)

linkedhashmap

d)

treemap