AJP Question Bank
AJP Question Bank
Answer: b
Q. 2 Which is the container that contain title bar and can have MenuBars. It can have other
components like button, textfield etc.?
Answer: b
Q. 3 Which is a component in AWT that can contain another components like buttons, textfields,
labels etc.?
Answer:b
Answer:a
Answer:c
Q. 6 These two ways are used to create a Frame By creating the object of Frame class (association)
By extending Frame class (inheritance)
Answer:a
Q. 7 Which is the container that doesn't contain titlebar and MenuBars. It can have other
components like button, textfield etc?
Answer:c
Q. 8 How many types of controls does AWT supports these controls are subclasses of component?
(a) 7 (b) 6
(c) 5 (d) 8
Answer:a
Q. 9 Which are passive controls that do not support any interaction with the user?
Answer:c
Answer:a
Q. 11 Which class is used to create a pop‐up list of items from which the user may choose?
Answer:b
Q. 12 Which object can be constructed to show any number of choices in the visible window?
Answer:c
Q. 13 Which is used to store data and partial results, as well as to perform dynamic linking, return
values for methods, and dispatch exceptions?
Answer:c
Q. 14 The following way is used to create a frame is by creating the object of Frame class?
Answer: c
Q. 15 AWT more powerful components like tables, lists, scroll panes, color chooser, tabbed pane
etc.?
Answer: a
Q. 16 The following specifies the advantages of It is lightweight. It supports pluggable look and feel.
It follows MVC (Model View Controller) architecture.
(a) Swing (b) AWT
Answer: a
Q. 17 Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application?
Answer:b
Q. 18 The Swing Component classes that are used in Encapsulates a mutually exclusive set of
buttons?
Answer: b
Q. 19 The Java Foundation Classes (JF(c) is a set of GUI components which simplify the development
of desktop applications?
Answer: a
Answer: c
(a) tell which region to put the JButton in. (b) tells the color of the JButton.
(c) tells what text will appear on JButton. (d) tells what should happen when JButton is pressed.
Answer: c
Q. 22 MVC architecture is
Answer: b
Answer: a
Answer: a
Answer: d
Answer: b
Answer: c
Answer: c
Answer: d
(a) To show data in form of parent and child nodes. (b) To show data in list view.
Answer: a
Q. 31. The Following steps are required to perform Implement the Listener interface and overrides
its methods Register the component with the Listener
Answer: c
Answer: d
Q. 33 Which package provides many event classes and Listener interfaces for event handling?
Answer: c
Q. 34 To use the ActionListener interface it must be implemented by a class there are several ways
to do that find in the following?
(a) Creating a new class (b) using the class the graphical component
Answer: d
Answer: b
Q.3 6 The ActionListener interface is used for handling action events, For example, it's used by a
Answer: c
Answer: a
Q. 38 In Graphics class Which method is used to set the graphics current color to the specified
color?
(a) public abstract void setFont(Font font) (b) public abstract void setColor(Color c)
(c) public abstract void drawString(String str, int x, int y) (d) None of the above
Answer: b
Q. 39 Which of the following method is used to determine the type of adjustment event?
(a) getType( ) (b) getEventType( )
Answer: c
Answer: b