freetests4u.com

Online knowledge sharing platform

CDAC-CCEE Java Mock test 1 (15 questions, time 15 minutes)

1.
Which of the follow. method to clear all the data present in output buffers only?

clear()
flush()
flushall()
None
flush()
2.
Which of the following collection maintain its elements in Natural Sorted order ?

LinkedMap
LinkedHashMap
TreeMap
HashMap
TreeMap
3.
Which class or interface defines the wait(), notify(),and notifyAll() methods?

Object
Thread
Runnable
Class
Object
4.
which of these method is used to find out that a thread is still running or not?

run ( )
Alive ( )
isAlive( )
checkRun ( )
isAlive( )
5.
When a class extends the Thread class ,it should override ............ method of Thread class to start that thread.

start()
run()
init()
go()
run()
6.
When a class extends the Thread class ,it should override ............ method of Thread class to start that thread.

start()
run()
init()
go()
run()
7.
Which of these method waits for the thread to treminate?

sleep()
isAlive()
join()
stop()
join()
8.
In java, by default every thread is given a___

MIN_PRIORITY(0)
NORM_PRIORITY(5)
MAX_PRIORITY(10)
HIGH_PRIORITY(7)
NORM_PRIORITY(5)
9.
Which of these method wakes up all the threads?

wakeAll()
notify()
start()
notifyAll()
notifyAll()
10.
When a class extends the Thread class ,it should override ............ method of Thread class to start that thread.

start()
run()
init()
.go()
run()
11.
Which of the following constructor of class Thread is valid one?

Thread(Runnable threadOb, int priority)
Thread(int priority)
hread(Runnable threadOb, String threadName)
Thread(String threadName, int priority)
hread(Runnable threadOb, String threadName)
12.
What will happen if two thread of same priority are called to be processed simultaneously?

Any one will be executed first lexographically
Both of them will be executed simultaneously
None of them will be executed
It is dependent on the operating system.
It is dependent on the operating system.
13.
What is synchronization in reference to a thread?

It’s a process of handling situations when two or more threads need access to a shared resource.
Its a process by which many thread are able to access same shared resource simultaneously.
Its a process by which a method is able to access many different threads simultaneously.
Its a method that allow to many threads to access any information require.
It’s a process of handling situations when two or more threads need access to a shared resource.
14.
What is the default value of priority variable MIN_PRIORITY AND MAX_PRIORITY?

0 & 256
0 & 1
1 & 10
1 & 256
1 & 10
15.
Which of these class is used to create servers that listen for either local or remote client programs?

httpServer
ServerSockets
MimeHeader
HttpResponse
ServerSockets


CDAC CCAT Mock Tests

CDAC CCEE java mock test 1 (15 questions, 15 minutes)

CDAC CCEE java mock test 2 (15 questions, 15 minutes)

CDAC CCEE java mock test 3 (15 questions, 15 minutes)

CDAC CCEE java mock test 4 (15 questions, 15 minutes)

CDAC CCEE java mock test 5 (15 questions, 15 minutes)

CDAC CCEE c++ mock test 1 (15 questions, 15 minutes)

CDAC CCEE c++ mock test 2 (15 questions, 15 minutes)

CDAC CCEE c++ mock test 3 (15 questions, 15 minutes)

CDAC CCEE OS mock test 1 (15 questions, 15 minutes)

CDAC CCEE OS mock test 2 (15 questions, 15 minutes)

CDAC CCEE OS mock test 3 (15 questions, 15 minutes)

CDAC CCEE database systems mock test 1 (15 questions, 15 minutes)

CDAC CCEE database systems mock test 2 (15 questions, 15 minutes)