CS506-Midterm
1 / 50
An abstract class ---------------instantiated.
2 / 50
Window Listener interface contains _______ methods.
3 / 50
Which of the following package needs to import while interacting with relational database?
4 / 50
Which of the following stream is a filter stream?
5 / 50
Which of the following exception belongs to a category of un-checked exception?
6 / 50
Static methods only access ___
7 / 50
What if the main method is declared as private?
8 / 50
9 / 50
A serializable class must implement the method(s)............
10 / 50
Which of the following are passed as an argument to the paint () method:
11 / 50
Which of the following methods are invoked by the AWT to support paint and repaint operations?
12 / 50
In Java, which of these classes implement the LayoutManager interface?
13 / 50
JPanel and Applet use ________ as their default layout.
14 / 50
Which of the following method is used to execute SELECT SQL statements?
15 / 50
Which of these are valid declarations for the main method?
16 / 50
A top level class may have only the following access modifier.
17 / 50
CREATE, ALTER, DROP are _________ SQL statements.
18 / 50
Exceptions must be handled while handling files otherwise it may lead to _____
19 / 50
Java program code is compiled into form called
20 / 50
A ................defines the way and method of communication between two parties
21 / 50
BorderLayout is the default layout manager for a JFrame’s content pane
22 / 50
HahMap takes key as a/an _________
23 / 50
Window frame and dialog use ________ as their default layout.
24 / 50
25 / 50
An abstract class --------------- instantiated.
26 / 50
You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?
27 / 50
Which of the following syntax is used to attach an input stream to console?
28 / 50
Which of the following is called ' pure abstract class ' ?
29 / 50
Which of following can be thrown using the throw statement?
30 / 50
Which of the following is true about AWT and SWING components?
31 / 50
If we remove static from main then program __________
32 / 50
The classes which contain the word _____ are byte oriented streams.
33 / 50
34 / 50
What if the static modifier is removed from the signature of the main method?
35 / 50
Given a one dimensional array arr, what is the correct way of getting the number of elements in arr
36 / 50
A top level class without any modifier is accessible to
37 / 50
38 / 50
Aside from the Scanner class, which of the following classes can be used for text-file file input?
39 / 50
Which of the following function will be used to register event handler with events generator (button)?
40 / 50
DSN stands for _________
41 / 50
Event source can have --------- listeners registered on it.
42 / 50
Which of the following is used for inheritance in java?
43 / 50
44 / 50
45 / 50
If a super class method is protected then overriding method _________
46 / 50
In Java garbage collection is done by_______________
47 / 50
Which of the following feature provide facility for multiple inheritances:-
48 / 50
Which of the following method is used to execute INSERT, UPDATE and Delete SQL statements?
49 / 50
50 / 50
Aside from the Scanner class, which of the following class/es can be used for text file file input
Your score is
The average score is 32%
Restart quiz