Ajp 1
Ajp 1
Assignment 1
The concept of
the menu bar
can be
implemented by
using three java
classes—
a) MenuBar
b) Menu
c) MenuItem
d) All of these
2. The concept of the menu bar can be implemented by using three java classes—
a) MenuBar b) Menu c) MenuItem d) All of these
4. The AWT container is an instance of the ___________ class which holds various
components and other containers
a) Graphics b) Container c) Eventobj d) None of these
The AWT
classes can be
roughly
categorized into
the following
groups:
a) GUI
Components
b) Layouts
c) Graphics
Tools
d) Event
Handlers
e) All of these
8. The AWT classes can be roughly categorized into the following groups:
a) GUI Components b) Layouts c) Graphics Tools d) Event Handlers e) All of these
14) Regular menus are placed at the __________ of the application window within a menu
bar
a) Top
b) Bottom
c) Top-down
d) Bottom
15) The text field and text area controls create a _________________ area respectively
a) Single-line text
b) Multi-line text
c) Both a & b
d) None of these
27) _____________ is a superclass of TextField and TextArea classes that is used to create
single-line or multiline textfields respectively:
a)TextBox
b)CheckBox
c)TextComponent
d)Choice
a) Text(non-editable)
b) Text(editable)
c) Both a & b
d) None of these
19) ______________ is an abstract class that encapsulates all of the attributes of a visual
component.
a)Component
b)Window
c)Frame
d) Panel
20) A _______ object is responsible for remembering the current foreground and
background colors
a)Window
b)Component
c)None