| | | | MCQ Tutorial - JAVA->SWING | | | | 1.) What does AWT stands for? | | Options are: | | A.) Abstract Writing Toolkit
| | B.) All Window Tools
| | C.) All Writing Tools
| | D.) Abstract Window Toolkit
| | Correct Option: D | | | | | | | 2.) Which of these methods can be used to know which key is pressed ? | | Options are: | | A.) getActionEvent()
| | B.) getActionKey()
| | C.) getModifier()
| | D.) getKey()
| | Correct Option: C | | | | | | | 3.) Which of these events is generated when a button is pressed? | | Options are: | | A.) WindowEvent
| | B.) ActionEvent
| | C.) WindowEvent
| | D.) KeyEvent
| | Correct Option: B | | | | | | | 4.) Which of the following statements about GUI components is wrong ? | | Options are: | | A.) Swing exists since version 1.2 of the jdk
| | B.) You can not place AWT components on Swing containers
| | C.) AWT stands for Abstract Window Toolkit
| | D.) The AWT classes are deprecated
| | Correct Option: D | | | | | | | 5.) Which of these packages contains all the classes and methods required for even handling in Java? | | Options are: | | A.) java.applet
| | B.) java.awt
| | C.) java.awt.event
| | D.) java.event
| | Correct Option: C | | | | | | | | | | | |