CS506-Midterm
1 / 50
A top level class may have only the following access modifier.
2 / 50
Which of the following is true about AWT and SWING components?
3 / 50
Exceptions must be handled while handling files otherwise it may lead to _____
4 / 50
You can ---------to a network using sockets.
5 / 50
Static methods only access ___
6 / 50
Aside from the Scanner class, which of the following class/es can be used for text file file input
7 / 50
The collections API are defined in ______ package?
8 / 50
Which of the following methods are invoked by the AWT to support paint and repaint operations?
9 / 50
Which of the following are passed as an argument to the paint () method:
10 / 50
Which of the following statement object is used to execute stored procedures?
11 / 50
In Java an abstract class cannot be sub-classed
12 / 50
Socket is a --------------communication channel between hosts.
13 / 50
HahMap takes key as a/an _________
14 / 50
Which of following can be thrown using the throw statement?
15 / 50
JPanel and Applet use ________ as their default layout.
16 / 50
A top level class without any modifier is accessible to
17 / 50
Which of the following function will be used to register event handler with events generator (button)?
18 / 50
Which of the following method is used to execute SELECT 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
Which of the following exception belongs to a category of un-checked exception?
22 / 50
23 / 50
An expression tag contains a scripting language expression that is evaluated.
24 / 50
If a super class method is protected then overriding method _________
25 / 50
If we remove static from main then program __________
26 / 50
27 / 50
28 / 50
29 / 50
An abstract class --------------- instantiated.
30 / 50
Java program code is compiled into form called
31 / 50
Which of the following is called ' pure abstract class ' ?
32 / 50
33 / 50
Which of the following feature provide facility for multiple inheritances:-
34 / 50
Which of the following belongs to a category of checked exception?
35 / 50
Which of the following is true about abstract class?
36 / 50
Which of the following statements is true regarding Vectors with no specified base type?
37 / 50
An abstract class ---------------instantiated.
38 / 50
39 / 50
In Java a final class must be sub-classed before it.
40 / 50
CREATE, ALTER, DROP are _________ SQL statements.
41 / 50
42 / 50
Overloading is _______ whereas overriding is _____
43 / 50
What if the main method is declared as private?
44 / 50
A collection can store..........
45 / 50
A serializable class must implement the method(s) _________.
46 / 50
Which of the following syntax is used to attach an input stream to console?
47 / 50
Given a one dimensional array arr, what is the correct way of getting the number of elements in arr
48 / 50
DSN stands for _________
49 / 50
The classes which contain the word _____ are byte oriented streams.
50 / 50
Window Listener interface contains _______ methods.
Your score is
The average score is 32%
Restart quiz