Quiz On Basic Gui

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Kawiz711
K
Kawiz711
Community Contributor
Quizzes Created: 3 | Total Attempts: 5,679
| Attempts: 2,618
SettingsSettings
Please wait...
  • 1/10 Questions

    What is it called when a program is written to respond to the button clicks, menu selections, and other actions of the user in whatever order the user does them?

    • Event-driven programming.
    • Action-driven programming.
    • User-driven programming
    • Mouse-driven programming
Please wait...
About This Quiz

This quiz deals with basic GUI – or Graphical User Interface – which is a type of user interface that allows users to interact with electronic devices through the usage of graphical icons and visual indicators. What do you know about it?

Quiz On Basic Gui - Quiz

Quiz Preview

  • 2. 

    The fundamental classes for GUI programming are contained in the:

    • GUI toolkit

    • Abstract Windowing Toolkit

    • Graphics Event Toolkit

    • Java Enhancement Toolkit

    Correct Answer
    A. Abstract Windowing Toolkit
    Explanation
    The Abstract Windowing Toolkit (AWT) is the correct answer because it is a set of classes in Java that provide the foundation for creating graphical user interfaces (GUIs). It includes classes for creating windows, buttons, menus, and other GUI components. The AWT is a part of the Java Foundation Classes (JFC) and is platform-independent, meaning it can be used to create GUIs that work on different operating systems. It is often used in conjunction with the Swing toolkit, which provides more advanced GUI components.

    Rate this question:

  • 3. 

    The three main parts of a GUI program are:

    • Windows, Buttons, Mice

    • GUI Components, Graphics, Code

    • GUI Components, Event Methods, Application Methodes

    • Frames, Code, Events

    Correct Answer
    A. Frames, Code, Events
    Explanation
    The correct answer is Frames, Code, Events. In a GUI program, frames are the main windows that contain all the visual components. Code refers to the programming logic and instructions that define the behavior and functionality of the GUI program. Events are actions or occurrences that trigger specific responses or behaviors in the GUI program, such as button clicks or mouse movements. These three components work together to create a functional and interactive GUI program.

    Rate this question:

  • 4. 

    What is the one component that nearly all GUI programs will have?

    • Window

    • Mouse

    • Monitor

    • Button

    Correct Answer
    A. Window
    Explanation
    Nearly all GUI programs will have a window component. The window serves as the main container for the program's user interface, displaying the various elements and allowing users to interact with them. It provides a visual representation of the program and can be resized, minimized, or closed. Without a window, GUI programs would not have a graphical interface for users to interact with.

    Rate this question:

  • 5. 

    What is a container object in GUI programming?

    • A container is another name for an array or vector.

    • A container is any class that is made up of other classes.

    • A container is a primitive variable that contains the actual data.

    • A container is a GUI component that has other GUI components placed inside of it.

    Correct Answer
    A. A container is a GUI component that has other GUI components placed inside of it.
    Explanation
    A container object in GUI programming refers to a GUI component that contains other GUI components within it. It acts as a parent or holder for other components, allowing them to be organized and displayed together. This helps in structuring the user interface and managing the layout of the components.

    Rate this question:

  • 6. 

    When the user clicks on a button, what is generated?

    • An Event.

    • A Button object.

    • A Container.

    • A Listener.

    Correct Answer
    A. An Event.
    Explanation
    When the user clicks on a button, an event is generated. This event is a signal or notification that informs the program that the button has been clicked. The program can then respond to this event by executing a specific action or set of instructions. Events are commonly used in programming to enable interactivity and allow users to interact with the application or website.

    Rate this question:

  • 7. 

    What is the name for a method that responds to events?

    • A container method.

    • A snoop method.

    • A listener method.

    • An application method.

    Correct Answer
    A. A listener method.
    Explanation
    A listener method is the correct answer because it is a method that is designed to respond to events. It is commonly used in programming to handle user interactions or system events, allowing the program to react and perform certain actions based on these events.

    Rate this question:

  • 8. 

    The class that is the ultimate ancestor of all the other classes is the class called...

    • GUI

    • AWT

    • Object

    • Container

    Correct Answer
    A. Object
    Explanation
    The class called "Object" is the ultimate ancestor of all other classes in Java. This means that every class in Java is either directly or indirectly derived from the Object class. The Object class provides a set of common methods and behaviors that are inherited by all other classes, such as toString(), equals(), and hashCode(). Therefore, Object is considered the root of the class hierarchy in Java.

    Rate this question:

  • 9. 

    Which of the following is the class that is derived from Container and is one of the base classes of Swing? 

    • Object

    • Component

    • Swing

    • JComponent

    Correct Answer
    A. JComponent
    Explanation
    JComponent is the correct answer because it is a class that is derived from Container and is one of the base classes of Swing. It provides a lightweight, platform-independent component that can be used to create user interfaces in Java applications. JComponent inherits many useful methods and properties from its parent classes, making it a versatile and commonly used class in Swing development.

    Rate this question:

  • 10. 

    What letter do many Swing class names start with?

    • A

    • J

    • B

    • S

    Correct Answer
    A. J
    Explanation
    Many Swing class names start with the letter "J".

    Rate this question:

Quiz Review Timeline (Updated): May 21, 2024 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • May 21, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Nov 30, 2011
    Quiz Created by
    Kawiz711
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.