Deck 1: Java GUI and Beans
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 1: Java GUI and Beans
1
It is lightweight.It supports pluggable look and feel.It follows MVC (Model View Controller) architecture. The following specifies the advantages of
A)Swing
B)AWT
C)Both A & B
D)None of the above
A)Swing
B)AWT
C)Both A & B
D)None of the above
Swing
2
Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application?
A)True
B)False
C)none
D)all
A)True
B)False
C)none
D)all
True
3
Which class provides many methods for graphics programming?
A)java.awt
B)java.Graphics
C)java.awt.Graphics
D)None of the above
A)java.awt
B)java.Graphics
C)java.awt.Graphics
D)None of the above
java.awt.Graphics
4
Implement the Listener interface and overrides its methods. Register the component with the Listener The Following steps are required to perform
A)Exception Handling
B)String Handling
C)Event Handling
D)None of the above
A)Exception Handling
B)String Handling
C)Event Handling
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The ActionListener interface is not used for handling action events?
A)True
B)False
C)none
D)all
A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
The ActionListener interface is used for handling action events,Forexample,it's used by a
A)JButton
B)JCheckbox
C)JMenuItem
D)All of these
A)JButton
B)JCheckbox
C)JMenuItem
D)All of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
JFramemyFrame = new JFrame (); Any command (such as the one listed above) which creates a new object of a specific class (in this case a new JFrame object called myFrame) is generally called a ..
A)Constructor
B)Layout manager
C)Parameter
D)GUI
A)Constructor
B)Layout manager
C)Parameter
D)GUI
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
MVC Architecture stands for
A) Model View Controller
B) Mode View Control
C) Maximum View Control
D) None
A) Model View Controller
B) Mode View Control
C) Maximum View Control
D) None
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Which is the container that doesn't contain title bar and MenuBars but it can have other components like button, textfieldetc?
A)Window
B)Frame
C)Panel
D)all the above
A)Window
B)Frame
C)Panel
D)all the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
Which is the passive control that do not support any interaction with the user?
A)JList
B)JLabel
C)JTable
D)JTree
A)JList
B)JLabel
C)JTable
D)JTree
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Component used for displaying data in tabular
A)JList
B)JTextArea
C)JTable
D)JTree
A)JList
B)JTextArea
C)JTable
D)JTree
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Java Bean is a _____________ technology
A)Component
B)scripting
C)middle tier
D)None
A)Component
B)scripting
C)middle tier
D)None
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
Manifest file is a special file that contains information about the files packed in
A)JAR file
B)(GIF)
C)(JPEG)
D)all the above
A)JAR file
B)(GIF)
C)(JPEG)
D)all the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following is not true about Java beans?
A)Implements java.io.Serializable interface
B)Extends java.io.Serializable class
C)Provides no argument constructor
D)Provides setter and getter methods for its properties
A)Implements java.io.Serializable interface
B)Extends java.io.Serializable class
C)Provides no argument constructor
D)Provides setter and getter methods for its properties
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Which file separator should be used by MANIFEST file?
A)/
B)\
C)-
D)//
A)/
B)\
C)-
D)//
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following is correct error when loading JAR file with duplicate name?
A)java.io.NullPointerException
B)java.lang.ClassNotFound
C)java.lang.ClassFormatError
D)java.lang.DuplicateClassError
A)java.io.NullPointerException
B)java.lang.ClassNotFound
C)java.lang.ClassFormatError
D)java.lang.DuplicateClassError
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
Java Beans are extremely secured?
A)True
B)False
C)none
D)all
A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following is not a feature of Beans?
A)Introspection
B)Events
C)Persistence
D)Serialization
A)Introspection
B)Events
C)Persistence
D)Serialization
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
Which services are provided to EJB components by the EJB container?
A)Transaction support
B)Persistence support
C)Naming support
D)All mentioned above
A)Transaction support
B)Persistence support
C)Naming support
D)All mentioned above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Which case of a session bean obtains the UserTransaction object via the EJBContext using the getUserTransaction() method in EJB transaction management?
A)Bean-managed transactions
B)Container-managed transactions
C)Both A & B
D)None of the above
A)Bean-managed transactions
B)Container-managed transactions
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
EJB QL is a Query Language provided for navigation across a network of enterprise beans and dependent objects defined by means of container managed persistence.
A)True
B)False
C)none
D)all
A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
A message driven bean is like a stateful session bean that encapsulates the business logic and doesn't maintain state.
A)True
B)False
C)none
D)all
A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Abbreviate the term JMS?
A)Java Message Service
B)Java Monitor Service
C)Java Message Session
D)Java Monitor Session
A)Java Message Service
B)Java Monitor Service
C)Java Message Session
D)Java Monitor Session
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
JMS is mainly used to send and receive message from one application to another.
A)True
B)False
C)none
D)all
A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Which session bean maintain their state between client invocations but are not required to maintain their state across server crashes or shutdowns?
A)Stateful Session Bean
B)Stateless Session Bean
C)Singleton Session Bean
D)None of the above
A)Stateful Session Bean
B)Stateless Session Bean
C)Singleton Session Bean
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck