
CompProg2 CP3
Quiz by Maria Lolita Masangcap
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Which java package provides many event classes and Listeners interfaces for event handling?
Which of the following is not a component in AWT?
This provides user interaction via some graphical components.
All are Java APIs for graphical user interface, except _______________.
The tools provided by the AWT are implemented using each platform's native GUI; hence, preserving the look and feel of each platform.
What characteristic of Java AWT is described in the given statement?
Which java package contains the core AWT classes such as components, containers, layout managers and custom graphic classes?
________________ is a top level container of an AWT program.
A container can also hold sub-containers.
In the image, how many components are created?

Using the creation of objects in the given image, identify the correct syntax of placing the label with the text "Second" into the container frame.

It is a "pop-up window" used for interacting with the users.
Which of the following methods is used to change the visibility of the component or container?
In the given image, what is the frame size set by the programmer?

Given the source code in the image, how is frame created?

An AWT component that is used to display text description of another component and cannot be modified by the user.
An AWT component that is used to display a single line text or limited text information.
When checkboxes are not grouped; then, it allows the users to check or select only one box.
When checkboxes are grouped; then, only one box can be checked at a time. It is called ______________.
It is a method used to manually set the size and position of a component.
In the image, the label l1 is positioned in what x and y coordinates?

One of the layout managers that is used to arrange the components in a line, one after another.
It is generated as a result of user interaction with the graphical user interface component.
The following are examples of events, except ______________.
Also known event handler
A layout generates an event.
Is the given statement TRUE? If yes, choose TRUE; otherwise, choose an answer that will replace the underlined word and will make the statement correct.
An event class that is generated when mouse is dragged, moved, clicked, pressed or released.
Which method in the given source code returns the number of items in the lstChosenScore?

What does the following line of code do?
txtAve.SetText(String.valueOf(ave));
Which component in AWT can contain another components like buttons, textfields, labels, etc.?
The following steps are required to perform ______________:
a. Implement the Listener interface and overrides its methods; and
b. Register the component with the Listener.