CS506-Midterm
1 / 50
Which of the following statement object is used to execute stored procedures?
2 / 50
The classes which contain the word _____ are byte oriented streams.
3 / 50
Exceptions must be handled while handling files otherwise it may lead to _____
4 / 50
Java program code is compiled into form called
5 / 50
A top level class without any modifier is accessible to
6 / 50
Socket is a --------------communication channel between hosts.
7 / 50
If a super class method is protected then overriding method _________
8 / 50
In Java garbage collection is done by_______________
9 / 50
Which of the following is true about abstract class?
10 / 50
11 / 50
To create DataBaseMetaData object we write following line of code
12 / 50
Which of the following stream is a filter stream?
13 / 50
Which of the following function will be used to register event handler with events generator (button)?
14 / 50
An abstract class --------------- instantiated.
15 / 50
Based on functionality, the streams can be categorized as________
16 / 50
A serializable class must implement the method(s) _________.
17 / 50
Which of the following are passed as an argument to the paint () method:
18 / 50
____________is/are the JSP Implicit Object(s).
19 / 50
20 / 50
Which of following can be thrown using the throw statement?
21 / 50
Window frame and dialog use ________ as their default layout.
22 / 50
Aside from the Scanner class, which of the following class/es can be used for text file file input
23 / 50
The collections API are defined in ______ package?
24 / 50
You can ---------to a network using sockets.
25 / 50
Java developed in __________
26 / 50
If we remove String array from main then program____________
27 / 50
An abstract class ---------------instantiated.
28 / 50
29 / 50
There are _________ types of exceptions in Java
30 / 50
JPanel and Applet use ________ as their default layout.
31 / 50
A serializable class must implement the method(s)............
32 / 50
33 / 50
If we remove static from main then program __________
34 / 50
An expression tag contains a scripting language expression that is evaluated.
35 / 50
Static methods only access ___
36 / 50
37 / 50
Which of the following feature provide facility for multiple inheritances:-
38 / 50
39 / 50
BorderLayout is the default layout manager for a JFrame’s content pane
40 / 50
When defining a method you must include a ___________ to declare any exception that might be thrown but is not caught in the method.
41 / 50
What if the main method is declared as private?
42 / 50
A ___________ defines the way and method of communication between two parties.
43 / 50
Given a one dimensional array arr, what is the correct way of getting the number of elements in arr
44 / 50
In Java, which of these classes implement the LayoutManager interface?
45 / 50
Which of the following statements is true regarding Vectors with no specified base type?
46 / 50
Exceptions must be handled while handling files otherwise it may lead to____?
47 / 50
HahMap takes key as a/an _________
48 / 50
49 / 50
Which of the following syntax is used to attach an input stream to console?
50 / 50
CREATE, ALTER, DROP are _________ SQL statements.
Your score is
The average score is 32%
Restart quiz