Advance Java: AWT Unit-1 Quiz
5 Questions
3 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which package is used for AWT in Java?

  • java.swing.*
  • java.awt.* (correct)
  • java.awt.event.*
  • java.util.*
  • What is the purpose of a Frame in AWT?

  • Handle user input events
  • Create top-level window with title bar and menu bar (correct)
  • Execute background tasks
  • Manage layout of GUI components
  • Which method is used to set the size of a Frame in AWT?

  • void setDimensions(int width, int height)
  • void setArea(int width, int height)
  • void setScale(int width, int height)
  • void setSize(int width, int height) (correct)
  • What does the method setVisible(true/false) do in AWT?

    <p>Set the visibility of the Frame</p> Signup and view all the answers

    What is the purpose of java.awt.event package in AWT?

    <p>Handle events related to user input</p> Signup and view all the answers

    More Like This

    AWT in Java Quiz
    5 questions

    AWT in Java Quiz

    VisionaryPeridot6562 avatar
    VisionaryPeridot6562
    Java AWT Quiz
    5 questions
    Java AWT vs Swing Comparison
    24 questions

    Java AWT vs Swing Comparison

    TroubleFreeInspiration2837 avatar
    TroubleFreeInspiration2837
    Use Quizgecko on...
    Browser
    Browser