CS506 Midterm Online Quiz

0%

CS506-Midterm

1 / 50

JPanel and Applet use ________ as their default layout.

2 / 50

Border layout divides the area into _______ regions

3 / 50

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

4 / 50

CREATE, ALTER, DROP are _________ SQL statements.

5 / 50

In Java an abstract class cannot be sub-classed

6 / 50

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

7 / 50

What if the main method is declared as private?

8 / 50

BorderLayout is the default layout manager for a JFrame’s content pane

9 / 50

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

10 / 50

Which of the following stream is a filter stream?

11 / 50

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

12 / 50

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

13 / 50

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

14 / 50

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

15 / 50

In Java garbage collection is done by_______________

16 / 50

There are _________ types of exceptions in Java

17 / 50

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

18 / 50

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

19 / 50

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

20 / 50

Which of the following stream is a filter stream?

21 / 50

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

22 / 50

The relationship between class and interface is called ________

23 / 50

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

24 / 50

Exceptions must be handled while handling files otherwise it may lead to _____

25 / 50

Which of the following is true about abstract class?

26 / 50

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

27 / 50

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

28 / 50

BorderLayout is the default layout manager for a JFrame content pane

29 / 50

CREATE, ALTER, DROP are _________ SQL statements.

30 / 50

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

31 / 50

Exceptions must be handled while handling files otherwise it may lead to____?

32 / 50

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

33 / 50

To create DataBaseMetaData object we write following line of code

34 / 50

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

35 / 50

DSN stands for _________

36 / 50

Static methods only access ___

37 / 50

Window frame and dialog use ________ as their default layout.

38 / 50

In Java, which of these classes implement the LayoutManager interface?

39 / 50

Map interface is derived from the Collection interface.

40 / 50

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

41 / 50

Java program code is compiled into form called

42 / 50

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

43 / 50

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

44 / 50

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

45 / 50

If a super class method is protected then overriding method _________

46 / 50

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

47 / 50

The collections API are defined in ______ package?

48 / 50

What if the main method is declared as private?

49 / 50

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

50 / 50

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

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