Basics of AWT and Swing MCQ Set-1

Errorlogger
28
1) Give the abbreviation of AWT?
A) Applet Windowing Toolkit
B) Abstract Windowing Toolkit
C) Absolute Windowing Toolkit
D) None of the above


2) Which is the container that contain title bar and can have MenuBars. It can have other components like button, textfield etc.?
A) Panel
B) Frame
C) Window
D) Container


3) Which is a component in AWT that can contain another components like buttons, textfields, labels etc.?
A) Window
B) Container
C) Panel
D) Frame


4) AWT is used for GUI programming in java?
A) True
B) False


5) The following specifies the advantages of
It is lightweight.
It supports pluggable look and feel.
It follows MVC (Model View Controller) architecture.

A) Swing
B) AWT
C) Both A & B
D) None of the above


6) Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application?
A) True
B) False


7) Which class provides many methods for graphics programming?
A) java.awt
B) java.Graphics
C) java.awt.Graphics
D) None of the above


8) These two ways are used to create a Frame
By creating the object of Frame class (association)
By extending Frame class (inheritance)

A) True
B) False


9) The Following steps are required to perform
1) Implement the Listener interface and overrides its methods
2) Register the component with the Listener

A) Exception Handling
B) String Handling
C) Event Handling
D) None of the above


10) In which places can put the event handling code
A) Same class
B) Other class
C) Annonymous class
D) All mentioned above


11) Which package provides many event classes and Listener interfaces for event handling?
A) java.awt
B) java.awt.Graphics
C) java.awt.event
D) None of the above

12) To use the ActionListener interface it must be implemented by a class there are several ways to do that find in the following?
A) Creating a new class
B) using the class the graphical component
C) an anonymous inner class
D) All mentioned above


13) The ActionListener interface is not used for handling action events?
A) True
B) False


14) The ActionListener interface is used for handling action events,For example,it's used by a
A) JButton
B) JCheckbox
c) JMenuItem
d) All of these

Tags

Post a Comment

28Comments

  1. Can you give me program MCQ's

    ReplyDelete
    Replies
    1. This comment has been removed by a blog administrator.

      Delete
  2. Thank you for sharing this amazing post. Looking forward to reading more.
    Visit us: Java Training
    Visit us: Java Course

    ReplyDelete
  3. Thank You for sharing the valuable information, it is very helpful. cctv camera dealers in Hyderabad Technology is changing and so is our lives because it is somewhat dependent on it. Everywhere we go, we see CCTV cameras. These cameras record each and every movement and believe it or not, they are pretty helpful. We are the cc camera suppliers in hyderabad In this busy world with a fast-growing crime rate, CCTV cameras have become a necessity for everyone. In this article, we will help you find the ten best cameras so that you can choose one from them. Moreover, if you are confused about the cctv camera shops in hyderabad and installation process, we have also shed some light on that.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. This comment has been removed by a blog administrator.

    ReplyDelete
  7. This comment has been removed by a blog administrator.

    ReplyDelete
  8. This comment has been removed by a blog administrator.

    ReplyDelete
  9. This comment has been removed by a blog administrator.

    ReplyDelete
  10. This comment has been removed by a blog administrator.

    ReplyDelete
  11. This comment has been removed by a blog administrator.

    ReplyDelete
  12. This comment has been removed by a blog administrator.

    ReplyDelete
  13. This comment has been removed by a blog administrator.

    ReplyDelete
  14. This comment has been removed by a blog administrator.

    ReplyDelete
  15. This comment has been removed by a blog administrator.

    ReplyDelete
  16. This comment has been removed by a blog administrator.

    ReplyDelete
  17. This comment has been removed by a blog administrator.

    ReplyDelete
  18. This comment has been removed by a blog administrator.

    ReplyDelete
  19. This comment has been removed by a blog administrator.

    ReplyDelete
  20. This comment has been removed by a blog administrator.

    ReplyDelete
  21. This comment has been removed by a blog administrator.

    ReplyDelete
  22. This comment has been removed by a blog administrator.

    ReplyDelete
  23. This comment has been removed by a blog administrator.

    ReplyDelete
  24. This comment has been removed by a blog administrator.

    ReplyDelete
  25. This comment has been removed by a blog administrator.

    ReplyDelete
  26. Hey i'm for the first time here. I came across this board and I find It really useful & it helped me out a lot. I hope to give something back and aid others like you helped me. Feel free to visit my webpage. improving your reaction time

    ReplyDelete
Post a Comment

#buttons=(Accept !) #days=(30)

Our website uses cookies to enhance your experience. Check Now
Accept !