CS506-Midterm
1 / 50
Which of the following is true about abstract class?
2 / 50
Which of the following exception belongs to a category of un-checked exception?
3 / 50
Which of the following stream is a filter stream?
4 / 50
You can ---------to a network using sockets.
5 / 50
Overloading is _______ whereas overriding is _____
6 / 50
Window frame and dialog use ________ as their default layout.
7 / 50
Event source can have --------- listeners registered on it.
8 / 50
Which of the following is called ' pure abstract class ' ?
9 / 50
In Java an abstract class cannot be sub-classed
10 / 50
If we remove static from main then program __________
11 / 50
JPanel and Applet use ________ as their default layout.
12 / 50
The relationship between class and interface is called ________
13 / 50
What if the main method is declared as private?
14 / 50
Which of the following method is used to execute INSERT, UPDATE and Delete SQL statements?
15 / 50
A serializable class must implement the method(s) _________.
16 / 50
Border layout divides the area into _______ regions
17 / 50
A ___________ defines the way and method of communication between two parties.
18 / 50
Which of the following method is used to execute SELECT SQL statements?
19 / 50
There are _________ types of exceptions in Java
20 / 50
21 / 50
All the exceptions and errors in java are inherited from _____ class.
22 / 50
Map interface is derived from the Collection interface.
23 / 50
CREATE, ALTER, DROP are _________ SQL statements.
24 / 50
25 / 50
Exceptions must be handled while handling files otherwise it may lead to _____
26 / 50
27 / 50
28 / 50
29 / 50
An expression tag contains a scripting language expression that is evaluated.
30 / 50
Which of the following statements is true regarding Vectors with no specified base type?
31 / 50
Which of the following syntax is used to attach an input stream to console?
32 / 50
To create DataBaseMetaData object we write following line of code
33 / 50
Mouse events can be trapped for ________ GUI component.
34 / 50
Socket is a --------------communication channel between hosts.
35 / 50
36 / 50
Which of the following statement object is used to execute stored procedures?
37 / 50
BorderLayout is the default layout manager for a JFrame’s content pane
38 / 50
Which of the following is a general purpose container?
39 / 50
Which of the following package needs to be import while handling files?
40 / 50
Which of the following function will be used to register event handler with events generator (button)?
41 / 50
42 / 50
Which of the following package needs to import while interacting with relational database?
43 / 50
If a super class method is protected then overriding method _________
44 / 50
A top level class may have only the following access modifier.
45 / 50
A final class can't be extended.
46 / 50
Which of the following belongs to a category of checked exception?
47 / 50
Given a one dimensional array arr, what is the correct way of getting the number of elements in arr
48 / 50
49 / 50
In Java, which of these classes implement the LayoutManager interface?
50 / 50
Your score is
The average score is 32%
Restart quiz