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

An abstract class --------------- instantiated.

3 / 50

Based on functionality, the streams can be categorized as________

4 / 50

CREATE, ALTER, DROP are _________ SQL statements.

5 / 50

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

6 / 50

Which of the following syntax is used to attach an input stream to console?

7 / 50

Which of the following feature provide facility for multiple inheritances:-

8 / 50

Event source can have --------- listeners registered on it.

9 / 50

The relationship between class and interface is called ________

10 / 50

JPanel and Applet use ________ as their default layout.

11 / 50

Aside from the Scanner class, which of the following classes can be used for text-file file input?

12 / 50

HahMap takes key as a/an _________

13 / 50

Which of the following are passed as an argument to the paint ( ) method?

14 / 50

What if the main method is declared as private?

15 / 50

Mouse events can be trapped for ________ GUI component.

16 / 50

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

17 / 50

A top level class without any modifier is accessible to

18 / 50

Which of these are valid declarations for the main method?

19 / 50

In Java garbage collection is done by_______________

20 / 50

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

21 / 50

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

22 / 50

____________is/are the JSP Implicit Object(s).

23 / 50

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

24 / 50

A final class can't be extended.

25 / 50

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

26 / 50

Static methods only access ___

27 / 50

Which of the following is called ' pure abstract class ' ?

28 / 50

Which of the following stream is a filter stream?

29 / 50

Map interface is derived from the Collection interface.

30 / 50

Window frame and dialog use ________ as their default layout.

31 / 50

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

32 / 50

What if the main method is declared as private?

33 / 50

Which of the following methods are invoked by the AWT to support paint and repaint operations?

34 / 50

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

35 / 50

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

36 / 50

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

37 / 50

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

38 / 50

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

39 / 50

Which of the following is used for inheritance in java?

40 / 50

Which of the following is a general purpose container?

41 / 50

Which of the following is true about abstract class?

42 / 50

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

43 / 50

Event source can have --------- listeners registered on it.

44 / 50

Overloading is _______ whereas overriding is _____

45 / 50

An abstract class --------------- instantiated.

46 / 50

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

47 / 50

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

48 / 50

Java developed in __________

49 / 50

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

50 / 50

Which of the following package needs to be import while handling files?

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