0% found this document useful (0 votes)
5 views16 pages

Ajp 1

Uploaded by

Omkar Kotkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views16 pages

Ajp 1

Uploaded by

Omkar Kotkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

AJP

Assignment 1

) The various controls supported


by AWT are
a) Labels, push buttons
b) Checkboxes, choice, list
c) Scroll bars, text area, text
field
d) All of these
) The various controls supported
by AWT are
a) Labels, push buttons
b) Checkboxes, choice, list
c) Scroll bars, text area, text
field
d) All of these
) The various controls supported
by AWT are
a) Labels, push buttons
b) Checkboxes, choice, list
c) Scroll bars, text area, text
field
d) All of these
) The various controls supported
by AWT are
a) Labels, push buttons
b) Checkboxes, choice, list
c) Scroll bars, text area, text
field
d) All of these
1. The various controls supported by AWT are
a) Labels, push buttons
b) Checkboxes, choice, list
c) Scroll bars, text area, text field
d) All of these

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

The classes and


interfaces
defined in
AWT are
contained
within the
______
package.
a) java.awt.*
b) java.sql.*
c) java.io.*
d) java.int*
3. The classes and interfaces defined in AWT are contained within the ______ package.
a) java.awt.* b) java.sql.* c) java.io.* d) java.int*

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

5. A checkbox is a control that consists of a


a) Combination of a small box b) A label c) Combination of a large box and a label d) Both a & b

Java applets are


used to create
_____________
__ applications
a) Graphical
b) User
interactive
c) Both a & b
d) None of
these
6. Java applets are used to create _______________ applications.
a) Graphical b) User interactive c) Both a & b d) None of these
creates a
dropdown list
of textual
entries
a) Choice
b) Checkbox
c) Textbox
d)
TextComponent
7. Creates a dropdown list of textual entries
a) Choice b) Checkbox c) Textbox d) TextComponent

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

9. An Applet is a ________ of Panel:


a) Subclass
b) Superclass
c) Both a & b d) None of these

10) The subclasses of Window are


a) Dialog
b) Frame
c) Both a & b
An Applet is a
________ of
Panel:
a) Subclass
b) Superclass
c) Both a & b
d) None of
these
20) The
subclasses of
Window are
a) Dialog
b) Frame
c) Both a & b
11) A menu bar represents
a) A list of menus which can be added to the top of a top-level window
b) A list of menus which can be deleted to the top of a top-level window
c) A list of menus which can be added to the bottom of a bottom-level window
d) None of these

12) Each menu is associated with a _________ list of menu items:


a) Checkbox
b) Drop-down
c) Choice
d) None of these

13) The two types of menus which are given as follows:


a) Pop-up menus
b) Regular menus
c) Both a & b
d) None 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

16) A push button is an active control that has a _____________ appearance


a) One dimensional
b) Two dimensional
c) Three dimensional
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

28) A label is a simple control which is used to display_____________ on the window:

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

You might also like