CS506 Midterm Online Quiz

0%

CS506-Midterm

1 / 50

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

2 / 50

What if the main method is declared as private?

3 / 50

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

4 / 50

In Java a final class must be sub-classed before it.

5 / 50

Which of the following is true about abstract class?

6 / 50

In Java garbage collection is done by_______________

7 / 50

BorderLayout is the default layout manager for a JFrame content pane

8 / 50

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

9 / 50

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

10 / 50

A top level class without any modifier is accessible to

11 / 50

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

12 / 50

If a super class method is protected then overriding method _________

13 / 50

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

14 / 50

____________is/are the JSP Implicit Object(s).

15 / 50

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

16 / 50

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

17 / 50

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

18 / 50

Java developed in __________

19 / 50

CREATE, ALTER, DROP are _________ SQL statements.

20 / 50

The relationship between class and interface is called ________

21 / 50

If we remove String array from main then program____________

22 / 50

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

23 / 50

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

24 / 50

Which of the following is a general purpose container?

25 / 50

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

26 / 50

Which of the following is true about abstract class?

27 / 50

Java program code is compiled into form called

28 / 50

CREATE, ALTER, DROP are _________ SQL statements.

29 / 50

HahMap takes key as a/an _________

30 / 50

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

31 / 50

Which of the following stream is a filter stream?

32 / 50

What if the main method is declared as private?

33 / 50

Which of these are valid declarations for the main method?

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

35 / 50

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

36 / 50

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

37 / 50

Which of the following is used for inheritance in java?

38 / 50

Overloading is _______ whereas overriding is _____

39 / 50

Which of the following stream is a filter stream?

40 / 50

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

41 / 50

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

42 / 50

A top level class without any modifier is accessible to

43 / 50

There are _________ types of exceptions in Java

44 / 50

____________is/are the JSP Implicit Object(s).

45 / 50

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

46 / 50

Static methods only access ___

47 / 50

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

48 / 50

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

49 / 50

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

50 / 50

DSN stands for _________

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