CS506-Midterm
1 / 50
If we remove static from main then program __________
2 / 50
Map interface is derived from the Collection interface.
3 / 50
HahMap takes key as a/an _________
4 / 50
All the exceptions and errors in java are inherited from _____ class.
5 / 50
Exceptions must be handled while handling files otherwise it may lead to____?
6 / 50
Which of the following is used for inheritance in java?
7 / 50
Which of the following method is used to execute SELECT SQL statements?
8 / 50
To create DataBaseMetaData object we write following line of code
9 / 50
A ___________ defines the way and method of communication between two parties.
10 / 50
Socket is a --------------communication channel between hosts.
11 / 50
The relationship between class and interface is called ________
12 / 50
Aside from the Scanner class, which of the following class/es can be used for text file file input
13 / 50
A top level class without any modifier is accessible to
14 / 50
In Java a final class must be sub-classed before it.
15 / 50
Which of the following stream is a filter stream?
16 / 50
An abstract class --------------- instantiated.
17 / 50
Which of the following syntax is used to attach an input stream to console?
18 / 50
CREATE, ALTER, DROP are _________ SQL statements.
19 / 50
When recursive method is called to solve a problem, the method actually is capable of solving only the simpler case(s), or base case(s).
20 / 50
21 / 50
You can ---------to a network using sockets.
22 / 50
An expression tag contains a scripting language expression that is evaluated.
23 / 50
Overloading is _______ whereas overriding is _____
24 / 50
Exceptions must be handled while handling files otherwise it may lead to _____
25 / 50
Which of the following function will be used to register event handler with events generator (button)?
26 / 50
Which of these are valid declarations for the main method?
27 / 50
Which of the following package needs to be import while handling files?
28 / 50
Event source can have --------- listeners registered on it.
29 / 50
Which of the following is true about abstract class?
30 / 50
The classes which contain the word _____ are byte oriented streams.
31 / 50
If a super class method is protected then overriding method _________
32 / 50
Java developed in __________
33 / 50
JPanel and Applet use ________ as their default layout.
34 / 50
Which of the following method is used to execute INSERT, UPDATE and Delete SQL statements?
35 / 50
JavaBeans are?
36 / 50
Which of the following belongs to a category of checked exception?
37 / 50
Which of the following exception belongs to a category of un-checked exception?
38 / 50
39 / 50
There are _________ types of exceptions in Java
40 / 50
DSN stands for _________
41 / 50
In Java, which of these classes implement the LayoutManager interface?
42 / 50
43 / 50
44 / 50
Based on functionality, the streams can be categorized as________
45 / 50
A serializable class must implement the method(s) _________.
46 / 50
____________is/are the JSP Implicit Object(s).
47 / 50
What if the main method is declared as private?
48 / 50
49 / 50
50 / 50
A final class can't be extended.
Your score is
The average score is 32%
Restart quiz