Categories
Computer

A ___________ defines the way and method of communication between two parties.

► Compiler
► Protocol (Page 242)
► Tool
► Technique

Categories
Computer

An abstract class ————— instantiated.

► Can’t be (Page 96)
► Can be
► Must
► None of these

Categories
Computer

Event source can have ——— listeners registered on it.

► Single
► Double
► Triple
► Multiple (Page 125)

Categories
Computer

To create DataBaseMetaData object we write following line of code

► DataBaseMetaData db = con.getMeataData(); (Page 177)
► ResultSetMetaData rsmd = rs.getMetaData();
► ResultSetMetaData rsmd = rs.setMetaData();
► DataBaseMetaData db = con.setMeataData()

Categories
Computer

The code below draws a line. What color is the line? g.setColor(Color.red.green.yellow.red); g.drawLine(0, 0, 100,100)

► Red
► Green
► Yellow
► Black

Categories
Computer

Which of the following are passed as an argument to the paint ( ) method?

► A Canvas object
► A Graphics object Click here for detail
► An Image object
► A paint object

Categories
Computer

Socket is a ————–communication channel between hosts.

► Uni-directional
► Bi-directional (Page 211)
► Multi-directional
► None of these

Categories
Computer

You can ———to a network using sockets.

► Read
► Write
► Read/Write (Page 222)
► None of these

Categories
Computer

A serializable class must implement the method(s) _________

► readObject and writeObject
► Either readObject or writeObject, or both, depending upon the desired behavior
► No need to implement any method Click here for Detail
► None of the given option

Categories
Computer

Which of the following statements is true regarding Vectors with no specified base type?

► A base type is needed, because Java needs to know how to allocate memory.
No base type is needed, because Java will use the Object class as a base type. Click here for detail
► If a base type is not specified the code will not compile.
► No base type is needed because Vectors default to storing String objects