CS506-Midterm
1 / 50
BorderLayout is the default layout manager for a JFrame’s content pane
2 / 50
In Java an abstract class cannot be sub-classed
3 / 50
BorderLayout is the default layout manager for a JFrame content pane
4 / 50
Exceptions must be handled while handling files otherwise it may lead to _____
5 / 50
A top level class may have only the following access modifier.
6 / 50
HahMap takes key as a/an _________
7 / 50
Window Listener interface contains _______ methods.
8 / 50
Which of the following statement object is used to execute stored procedures?
9 / 50
Border layout divides the area into _______ regions
10 / 50
Mouse events can be trapped for ________ GUI component.
11 / 50
Which of the following belongs to a category of checked exception?
12 / 50
The collections API are defined in ______ package?
13 / 50
Java program code is compiled into form called
14 / 50
Which of the following stream is a filter stream?
15 / 50
What if the main method is declared as private?
16 / 50
You can ---------to a network using sockets.
17 / 50
All the exceptions and errors in java are inherited from _____ class.
18 / 50
Map interface is derived from the Collection interface.
19 / 50
Window frame and dialog use ________ as their default layout.
20 / 50
Which of the following stream read/write data in the form of bytes?
21 / 50
Which of the following method is used to execute SELECT SQL statements?
22 / 50
A serializable class must implement the method(s)............
23 / 50
24 / 50
25 / 50
Which of the following method is used to execute INSERT, UPDATE and Delete SQL statements?
26 / 50
Which of the following exception belongs to a category of un-checked exception?
27 / 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).
28 / 50
Given a one dimensional array arr, what is the correct way of getting the number of elements in arr
29 / 50
A final class can't be extended.
30 / 50
A top level class without any modifier is accessible to
31 / 50
If we remove String array from main then program____________
32 / 50
An abstract class --------------- instantiated.
33 / 50
34 / 50
Which of following can be thrown using the throw statement?
35 / 50
36 / 50
Aside from the Scanner class, which of the following class/es can be used for text file file input
37 / 50
38 / 50
CREATE, ALTER, DROP are _________ SQL statements.
39 / 50
An expression tag contains a scripting language expression that is evaluated.
40 / 50
Socket is a --------------communication channel between hosts.
41 / 50
Overloading is _______ whereas overriding is _____
42 / 50
43 / 50
44 / 50
Which of the following is called ' pure abstract class ' ?
45 / 50
____________is/are the JSP Implicit Object(s).
46 / 50
47 / 50
There are _________ types of exceptions in Java
48 / 50
Which of the following methods are invoked by the AWT to support paint and repaint operations?
49 / 50
Which of these are valid declarations for the main method?
50 / 50
Which of the following package needs to be import while handling files?
Your score is
The average score is 32%
Restart quiz