CS506-Midterm
1 / 50
Which of the following is called ' pure abstract class ' ?
2 / 50
Which of the following stream is a filter stream?
3 / 50
Which of the following are passed as an argument to the paint ( ) method?
4 / 50
Socket is a --------------communication channel between hosts.
5 / 50
If we remove static from main then program __________
6 / 50
In Java an abstract class cannot be sub-classed
7 / 50
In Java a final class must be sub-classed before it.
8 / 50
An expression tag contains a scripting language expression that is evaluated.
9 / 50
Java developed in __________
10 / 50
The classes which contain the word _____ are byte oriented streams.
11 / 50
Which of the following stream read/write data in the form of bytes?
12 / 50
What if the main method is declared as private?
13 / 50
Map interface is derived from the Collection interface.
14 / 50
BorderLayout is the default layout manager for a JFrame content pane
15 / 50
The collections API are defined in ______ package?
16 / 50
A top level class without any modifier is accessible to
17 / 50
Which of the following package needs to import while interacting with relational database?
18 / 50
A ................defines the way and method of communication between two parties
19 / 50
A ___________ defines the way and method of communication between two parties.
20 / 50
In Java garbage collection is done by_______________
21 / 50
Which of the following is true about abstract class?
22 / 50
Window frame and dialog use ________ as their default layout.
23 / 50
Which of the following function will be used to register event handler with events generator (button)?
24 / 50
Which of the following is a general purpose container?
25 / 50
Event source can have --------- listeners registered on it.
26 / 50
Which of the following methods are invoked by the AWT to support paint and repaint operations?
27 / 50
28 / 50
Which of the following statements is true regarding Vectors with no specified base type?
29 / 50
You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?
30 / 50
____________is/are the JSP Implicit Object(s).
31 / 50
An abstract class ---------------instantiated.
32 / 50
33 / 50
You can ---------to a network using sockets.
34 / 50
CREATE, ALTER, DROP are _________ SQL statements.
35 / 50
To create DataBaseMetaData object we write following line of code
36 / 50
37 / 50
38 / 50
Window Listener interface contains _______ methods.
39 / 50
Which of the following is true about AWT and SWING components?
40 / 50
A top level class may have only the following access modifier.
41 / 50
An abstract class --------------- instantiated.
42 / 50
Exceptions must be handled while handling files otherwise it may lead to _____
43 / 50
Aside from the Scanner class, which of the following class/es can be used for text file file input
44 / 50
Border layout divides the area into _______ regions
45 / 50
A final class can't be extended.
46 / 50
47 / 50
48 / 50
A serializable class must implement the method(s) _________.
49 / 50
There are _________ types of exceptions in Java
50 / 50
Mouse events can be trapped for ________ GUI component.
Your score is
The average score is 32%
Restart quiz