Skip to main content

Event Handling In Java — Part 2 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Event Handling In Java — Part 2 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.

Questions
35
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
42 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
35

Verified Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/35 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 35
★ FPSC ★ PPSC

Which of these constant value will change when the button at the end of scroll bar was clicked to increase its value?

Question 2 of 35
★ FPSC ★ PPSC

Which of these methods are used to register a mouse motion listener?

Question 3 of 35
★ FPSC ★ PPSC

Which of these events is generated when the window is closed?

Question 4 of 35
★ FPSC ★ PPSC

Which of these packages contains all the classes and methods required for even handling in Java?

Question 5 of 35
★ FPSC ★ PPSC

Which of these methods can be used to know which key is pressed?

Question 6 of 35
★ FPSC ★ PPSC

Which of these events is generated when a button is pressed?

Question 7 of 35
★ FPSC ★ PPSC

Which of these methods can be used to know the type of focus change?

Question 8 of 35
★ FPSC ★ PPSC

Which of these methods will be invoked if a character is entered?

Question 9 of 35
★ FPSC ★ PPSC

Which of these methods can be used to determine the type of adjustment event?

Question 10 of 35
★ FPSC ★ PPSC

Which of these methods is defined in MouseMotionAdapter class?

Question 11 of 35
★ FPSC ★ PPSC

Which of these events will be generated if we close an applet's window?

Question 12 of 35
★ FPSC ★ PPSC

MouseEvent is subclass of which of these classes?

Question 13 of 35
★ FPSC ★ PPSC

Event class is defined in which of these libraries?

Question 14 of 35
★ FPSC ★ PPSC

Which of these events is generated by scroll bar?

Question 15 of 35
★ FPSC ★ PPSC

Which of these events is generated when the size of an event is changed?

Question 16 of 35
★ FPSC ★ PPSC

Which of these methods can be used to determine the type of event?

Question 17 of 35
★ FPSC ★ PPSC

Which of these methods can be used to change location of an event?

Question 18 of 35
★ FPSC ★ PPSC

Which of these events is generated when computer gains or loses input focus?

Question 19 of 35
★ FPSC ★ PPSC

Which of these methods is used to get x coordinate of the mouse?

Question 20 of 35
★ FPSC ★ PPSC

Which of these interfaces handles the event when a component is added to a container?

Question 21 of 35
★ FPSC ★ PPSC

Which of these methods can be used to obtain the command name for invoking ActionEvent object?

Question 22 of 35
★ FPSC ★ PPSC

Which of these methods can be used to get reference to a component that was removed from a container?

Question 23 of 35
★ FPSC ★ PPSC

Which of these are integer constants defined in ActionEvent class?

Question 24 of 35
★ FPSC ★ PPSC

Which of these interfaces define four methods?

Question 25 of 35
★ FPSC ★ PPSC

FocusEvent is subclass of which of these classes?

Question 26 of 35
★ FPSC ★ PPSC

Which of these methods are used to register a keyboard event listener?

Question 27 of 35
★ FPSC ★ PPSC

Which of these is a superclass of all Adapter classes?

Question 28 of 35
★ FPSC ★ PPSC

Which of these events is generated when the component is added or removed?

Question 29 of 35
★ FPSC ★ PPSC

Which of these methods is used to obtain the object that generated a WindowEvent?

Question 30 of 35
★ FPSC ★ PPSC

Which of these interfaces define a method actionPerformed()?

Question 31 of 35
★ FPSC ★ PPSC

Which of these methods can be used to obtain the coordinates of a mouse?

Question 32 of 35
★ FPSC ★ PPSC

Which of these methods can be used to obtain the reference to the container that generated a ContainerEvent?

Question 33 of 35
★ FPSC ★ PPSC

Which of these events will be notified if scroll bar is manipulated?

Question 34 of 35
★ FPSC ★ PPSC

Which of these methods will respond when you click any button by mouse?

Question 35 of 35
★ FPSC ★ PPSC

Which of these class is super class of all the events?

✓ Link copied to clipboard
Continue Your Practice

Advance Html — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Programming & Software Development

In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.

More Modules in Programming & Software Development

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →