CS506-Midterm
1 / 50
A ___________ defines the way and method of communication between two parties.
2 / 50
Which of the following syntax is used to attach an input stream to console?
3 / 50
Which of the following function will be used to register event handler with events generator (button)?
4 / 50
In Java a final class must be sub-classed before it.
5 / 50
Exceptions must be handled while handling files otherwise it may lead to _____
6 / 50
Aside from the Scanner class, which of the following class/es can be used for text file file input
7 / 50
ServletConfig defines a set of methods that a servlet uses to communicate with its servlet container.
8 / 50
The classes which contain the word _____ are byte oriented streams.
9 / 50
Which of the following is true about abstract class?
10 / 50
An abstract class ---------------instantiated.
11 / 50
An abstract class --------------- instantiated.
12 / 50
A top level class may have only the following access modifier.
13 / 50
Aside from the Scanner class, which of the following classes can be used for text-file file input?
14 / 50
Which of the following feature provide facility for multiple inheritances:-
15 / 50
If we remove static from main then program __________
16 / 50
Java program code is compiled into form called
17 / 50
DSN stands for _________
18 / 50
Event source can have --------- listeners registered on it.
19 / 50
Which of the following is true about AWT and SWING components?
20 / 50
21 / 50
Which of the following statement object is used to execute stored procedures?
22 / 50
The relationship between class and interface is called ________
23 / 50
In Java garbage collection is done by_______________
24 / 50
Which of the following method is used to execute SELECT SQL statements?
25 / 50
A serializable class must implement the method(s)............
26 / 50
What if the main method is declared as private?
27 / 50
28 / 50
Exceptions must be handled while handling files otherwise it may lead to____?
29 / 50
In Java, which of these classes implement the LayoutManager interface?
30 / 50
31 / 50
Which of the following exception belongs to a category of un-checked exception?
32 / 50
Which of the following methods are invoked by the AWT to support paint and repaint operations?
33 / 50
Overloading is _______ whereas overriding is _____
34 / 50
BorderLayout is the default layout manager for a JFrame’s content pane
35 / 50
Which of the following belongs to a category of checked exception?
36 / 50
37 / 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).
38 / 50
39 / 50
Which of the following are passed as an argument to the paint ( ) method?
40 / 50
JavaBeans are?
41 / 50
____________is/are the JSP Implicit Object(s).
42 / 50
A top level class without any modifier is accessible to
43 / 50
44 / 50
In Java an abstract class cannot be sub-classed
45 / 50
Given a one dimensional array arr, what is the correct way of getting the number of elements in arr
46 / 50
A ................defines the way and method of communication between two parties
47 / 50
A serializable class must implement the method(s) _________.
48 / 50
HahMap takes key as a/an _________
49 / 50
50 / 50
Border layout divides the area into _______ regions
Your score is
The average score is 32%
Restart quiz