CS506 Midterm Online Quiz

0%

CS506-Midterm

1 / 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?

2 / 50

A top level class without any modifier is accessible to

3 / 50

DSN stands for _________

4 / 50

ServletConfig defines a set of methods that a servlet uses to communicate with its servlet container.

5 / 50

Which of the following method is used to execute SELECT SQL statements?

6 / 50

When defining a method you must include a ___________ to declare any exception that might be thrown but is not caught in the method.

7 / 50

To create DataBaseMetaData object we write following line of code

8 / 50

Window frame and dialog use ________ as their default layout.

9 / 50

You can ---------to a network using sockets.

10 / 50

A top level class may have only the following access modifier.

11 / 50

BorderLayout is the default layout manager for a JFrame content pane

12 / 50

A collection can store..........

13 / 50

A serializable class must implement the method(s)............

14 / 50

You can ---------to a network using sockets.

15 / 50

Which of the following is true about AWT and SWING components?

16 / 50

A ___________ defines the way and method of communication between two parties.

17 / 50

JavaBeans are?

18 / 50

____________is/are the JSP Implicit Object(s).

19 / 50

Which of the following stream read/write data in the form of bytes?

20 / 50

Overloading is _______ whereas overriding is _____

21 / 50

To create DataBaseMetaData object we write following line of code

22 / 50

Java program code is compiled into form called

23 / 50

Which of the following is true about abstract class?

24 / 50

JPanel and Applet use ________ as their default layout.

25 / 50

A final class can't be extended.

26 / 50

Aside from the Scanner class, which of the following class/es can be used for text file file input

27 / 50

What if the main method is declared as private?

28 / 50

If we remove String array from main then program____________

29 / 50

Which of the following stream is a filter stream?

30 / 50

____________is/are the JSP Implicit Object(s).

31 / 50

There are _________ types of exceptions in Java

32 / 50

The collections API are defined in ______ package?

33 / 50

Which of the following exception belongs to a category of un-checked exception?

34 / 50

Map interface is derived from the Collection interface.

35 / 50

Static methods only access ___

36 / 50

The relationship between class and interface is called ________

37 / 50

Which of the following is a general purpose container?

38 / 50

Which of the following function will be used to register event handler with events generator (button)?

39 / 50

Border layout divides the area into _______ regions

40 / 50

What if the static modifier is removed from the signature of the main method?

41 / 50

Socket is a --------------communication channel between hosts.

42 / 50

Java developed in __________

43 / 50

HahMap takes key as a/an _________

44 / 50

In Java garbage collection is done by_______________

45 / 50

Socket is a --------------communication channel between hosts.

46 / 50

Which of the following package needs to import while interacting with relational database?

47 / 50

What if the main method is declared as private?

48 / 50

All the exceptions and errors in java are inherited from _____ class.

49 / 50

Which of the following statement object is used to execute stored procedures?

50 / 50

Which of the following statements is true regarding Vectors with no specified base type?

Your score is

The average score is 32%

0%

Qunoot e Nazilah
Dua e Hajat
4 Qul
6 Kalma
Dua-e-Akasha
Darood Akbar
Surah Fatiha
Dua-e-Ganj Ul Arsh
Dua-e-Jamilah
Ayat-ul-Kursi