CS506-Midterm
1 / 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).
2 / 50
Overloading is _______ whereas overriding is _____
3 / 50
Given a one dimensional array arr, what is the correct way of getting the number of elements in arr
4 / 50
Which of the following is called ' pure abstract class ' ?
5 / 50
A serializable class must implement the method(s) _________.
6 / 50
If a super class method is protected then overriding method _________
7 / 50
A top level class may have only the following access modifier.
8 / 50
Map interface is derived from the Collection interface.
9 / 50
BorderLayout is the default layout manager for a JFrame content pane
10 / 50
Which of the following statements is true regarding Vectors with no specified base type?
11 / 50
Which of following can be thrown using the throw statement?
12 / 50
Which of the following feature provide facility for multiple inheritances:-
13 / 50
Event source can have --------- listeners registered on it.
14 / 50
Border layout divides the area into _______ regions
15 / 50
16 / 50
Which of the following package needs to be import while handling files?
17 / 50
In Java an abstract class cannot be sub-classed
18 / 50
In Java a final class must be sub-classed before it.
19 / 50
What if the main method is declared as private?
20 / 50
Which of the following function will be used to register event handler with events generator (button)?
21 / 50
22 / 50
Which of the following package needs to import while interacting with relational database?
23 / 50
Static methods only access ___
24 / 50
Which of the following methods are invoked by the AWT to support paint and repaint operations?
25 / 50
Window Listener interface contains _______ methods.
26 / 50
A ___________ defines the way and method of communication between two parties.
27 / 50
Which of the following is true about abstract class?
28 / 50
You can ---------to a network using sockets.
29 / 50
An abstract class ---------------instantiated.
30 / 50
If we remove String array from main then program____________
31 / 50
32 / 50
Java program code is compiled into form called
33 / 50
34 / 50
____________is/are the JSP Implicit Object(s).
35 / 50
Which of the following syntax is used to attach an input stream to console?
36 / 50
The relationship between class and interface is called ________
37 / 50
An abstract class --------------- instantiated.
38 / 50
Which of the following is a general purpose container?
39 / 50
Socket is a --------------communication channel between hosts.
40 / 50
Which of the following statement object is used to execute stored procedures?
41 / 50
Exceptions must be handled while handling files otherwise it may lead to _____
42 / 50
Exceptions must be handled while handling files otherwise it may lead to____?
43 / 50
44 / 50
To create DataBaseMetaData object we write following line of code
45 / 50
CREATE, ALTER, DROP are _________ SQL statements.
46 / 50
47 / 50
Which of the following belongs to a category of checked exception?
48 / 50
Aside from the Scanner class, which of the following classes can be used for text-file file input?
49 / 50
Based on functionality, the streams can be categorized as________
50 / 50
Your score is
The average score is 32%
Restart quiz