Final MCQ
Final MCQ
1. Answer: C) java.io
2. Answer: C) {}
3. Answer: C) get()
4. Answer: C) ArrayList
5. Answer: B) To handle action button events
6. Answer: A) actionPerformed()
7. Answer: A) TextArea
8. Answer: D) HashMap<String, Integer> map = new
HashMap<>();
9. Answer: B) Button button = new Button("Click
Me");
10. Answer: B) addActionListener()
11. Answer: B) To provide utility classes like
collections and date handling
12. Answer: D) All of the above
13. Answer: B) remove()
14. Answer: A) The entry point of any Java
application
15. Answer: D) All of the above
16. Answer: C) GridLayout
17. Answer: B) setSize()
18. Answer: D) StackLayout
19. Answer: D) Both B and C
20. Answer: C) setVisible(true)