CS506 Midterm Online Quiz

0%

CS506-Midterm

1 / 50

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

2 / 50

What if the main method is declared as private?

3 / 50

If a super class method is protected then overriding method _________

4 / 50

Which of the following is a general purpose container?

5 / 50

The collections API are defined in ______ package?

6 / 50

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

7 / 50

Which of the following method is used to execute INSERT, UPDATE and Delete SQL statements?

8 / 50

Which of the following is true about abstract class?

9 / 50

A top level class without any modifier is accessible to

10 / 50

Java developed in __________

11 / 50

Which of the following is true about abstract class?

12 / 50

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

13 / 50

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

14 / 50

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

15 / 50

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

16 / 50

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

17 / 50

Given a one dimensional array arr, what is the correct way of getting the number of elements in arr

18 / 50

In Java an abstract class cannot be sub-classed

19 / 50

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

20 / 50

Which of the following stream is a filter stream?

21 / 50

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

22 / 50

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

23 / 50

Which of following can be thrown using the throw statement?

24 / 50

Which of these are valid declarations for the main method?

25 / 50

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

26 / 50

A top level class without any modifier is accessible to

27 / 50

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

28 / 50

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

29 / 50

JPanel and Applet use ________ as their default layout.

30 / 50

____________is/are the JSP Implicit Object(s).

31 / 50

____________is/are the JSP Implicit Object(s).

32 / 50

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

33 / 50

CREATE, ALTER, DROP are _________ SQL statements.

34 / 50

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

35 / 50

There are _________ types of exceptions in Java

36 / 50

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

37 / 50

To create DataBaseMetaData object we write following line of code

38 / 50

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

39 / 50

Overloading is _______ whereas overriding is _____

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

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

43 / 50

JavaBeans are?

44 / 50

Map interface is derived from the Collection interface.

45 / 50

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

46 / 50

BorderLayout is the default layout manager for a JFrame content pane

47 / 50

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

48 / 50

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

49 / 50

Window frame and dialog use ________ as their default layout.

50 / 50

HahMap takes key as a/an _________

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