freetests4u.com

Online knowledge sharing platform

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

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

httpServer
ServerSockets
MimeHeader
HttpResponse
ServerSockets
2.
Which methods are utilize to control the access to an object in multithreaded programming?

Asynchronize methods
Synchronize methods
Serialize method
None of above
Synchronize methods
3.
when the event for which a thread is blocked occurs?

thread moves to the ready queue
thread remains blocked
thread completes
a new thread is provided
thread moves to the ready queue
4.
What is a transient variable

A transient variable is a variable which is serialized during Serialization.
A transient variable is a variable that may not be serialized during Serialization.
A transient variable is a variable which is to be marked as serializable.
None of the above.
A transient variable is a variable that may not be serialized during Serialization.
5.
Which of these class is used for operating on request from the client to the server?

http
httpDecoder
httpConnection
httpd
httpd
6.
Which of these data type is returned by every method of OutputStream?

int
float
byte
None of the mentioned
None of the mentioned
7.
Which of these classes provide implementation of map interface?

ArrayList
HashMap
LinkedList
DynamicList
HashMap
8.
Which of these class extends inputStream class?

ObjectStream
ObjectInputStream
ObjectOutput
ObjectInput
ObjectInputStream
9.
Which of the following is not true about serialization?

If we want to convert state of object to binary data it is known as serialization
For serialization we should implement seralizable interface to class of object to serialize
If serializable is not implemented JVM gives NonSerializableException
All of the above are true
If serializable is not implemented JVM gives NonSerializableException
10.
Which of these stream contains the classes which can work on character stream?

InputStream
OutputStream
CharacterStream
All of these
CharacterStream
11.
Which of the follow. method to clear all the data present in output buffers only?

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

LinkedMap
LinkedHashMap
TreeMap
HashMap
TreeMap
13.
Which statement is true about a static nested class?

You must have a reference to an instance of the enclosing class in order to instantiate it.
it does not have access to non static members of the enclosing class.
its variables and method must be static
it must extend the enclosing class
it does not have access to non static members of the enclosing class.
14.
Which of these is method for testing whether the specified element is a file or a directory?

IsFile()
isFile()
Isfile()
isfile()
isFile()
15.
Which of the following allows us to call generic methods as a normal method?

Type Interface
Interface
Inner class
All of the mentioned
Type Interface
16.
If we add Enum constants to a sorted collection ( Treemap , TreeSet ), What will be the order in which they will be maintained ?

Sorted Collection wont maintain them in any order.
Insertion Order
Order in which constants are declared.
Natural Sorting Order.
Order in which constants are declared.


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)