Advance Pro - Model
Advance Pro - Model
1. Which package holds a class and interface that related to Event handling?
A. Java.awt B. java.swing C. javax.swing D. java.awt.event
2. one of the following libraries is not used to design GUI.
A. Java.io B.javax.swing C.java.awt D.javaFX
3. Which model is need to be followed to handle events?
A. Delegation Event model C. model view controller
B. 3-layer architecture model D. all
4. ____is the direction or path that is taken while a program is being executed
A. java process B. java thread C. Java IO D.swing
5. which one of the flowing is true about thread in java?
A. java programs have at least on thread
B. It can be created by extending the Thread class and overriding its run() method
C. thread is can be create by implement the Runnable interface
D.all
6. Which package in java that has class and interface to handle Files?
A.Java.io B. java.swing C. javax.swing D. java.awt.event
7. Java API to connect and execute the query with the database.
A. sql B. mysql C. JDBC D. oracle
8. which one of the following is not true about AWT?
A. AWT components are platform-dependent.
B. AWT components are heavyweight.
C. AWT supports pluggable look and feel.
D. AWT does follows MVC model
E. All
F. A and B
9. ________ is a built-in method in JFrame class that used to give size to frame.
A. setSize(boolean) B. setVisible(boolean) C.setSize(int , int ) D. setText();
10.which one of the following is default layout manager for Frame and Panel respectively?
A. FlowLayout and BorderLayout B. FlowLayout and GridLayout
C. FlowLayout and FlowLayout D. BorderLayout and BorderLayout
11. which layout manager is arranging components in matrix formation?
A. flowlayout B. GridLayout C. BorderLayout D. BoxLayuout
12. which Listener is used to handle when you clicked a button?
A. ActionListener B. MouseListner C. ButtonListener D.all
13.which event could be trigged when you clicked keyboard?
A.keyReleasedEvent B.keyPresedEvent C. keyboardEvent D. all E. A and B
14. _______________is extension servlet that used to develop applet.
A.JSP B.appache C.javaFX D. JDBC
15. _________ special type of program that is embedded in the webpage to generate the
dynamic content. It runs inside the browser and works at client side.
A. Applet B. Application C. JDBC D. none
16. ________is an API that provides a mechanism to create distributed application in java.
A. RMI B.Swing C.AWT D.JDBC