0% found this document useful (0 votes)
1 views2 pages

ASSIGNMENT Java1

We

Uploaded by

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

ASSIGNMENT Java1

We

Uploaded by

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

ASSIGNMENT : 1

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

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

3) The constructor which the Text Event class defines.

a) TextEvent(Object source, int event_type)

b) textevent (Object source, int event_type)

c) textevent (object Source, float event_type)

d) textevent (Object source, string event_type)

4) In Java an event is an _______which specifies the change of state in the source.

a) Class

b) Object

c) Int

d) String

5) The classes and interfaces defined in AWT are contained within the ______ package.

a) java.awt.*

b) java.sql.*

c) java.io.*

d) java.int
6) 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

7) Java applets are used to create _______________ applications

a) Graphical

b) User interactive

c) Both a & b

d) None of these

8) AWT means

a) Abstract Window Toolkit

b) Abstract Window Toollayout

c) Abstract Withdraw Tools

d) Abstract Window Title

9) Positions the components into five regions: east, west, north, south, center

a) BorderLayout

b) CardLayout

c) GridLayout

d) FlowLayout

10)Arranges the components as a deck of cards such that only one component is visible at a time

a) BorderLayout

b) CardLayout

c) GridLayout

d) FlowLayout

You might also like