easyMultiple Choice
FC0-U71 Practice Question: A developer is creating a program that must…
A developer is creating a program that must respond to user actions such as button clicks and mouse movements. Which programming paradigm is most suitable?
⚠ Common exam trap
A common mix-up: candidates confuse 'object-oriented programming' with the ability to handle events because many GUI frameworks use OOP to implement event listeners, but the paradigm itself is event-driven, not OOP.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Event-driven programming
Event-driven programming is the most suitable paradigm because it is designed to handle asynchronous user actions like button clicks and mouse movements. In this paradigm, the program's flow is determined by events (e.g., user inputs), and callback functions or event handlers are triggered in response. This aligns directly with the requirement to respond to unpredictable, external stimuli.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Event-driven programming
Why this is correct
Event-driven programming suits this scenario because execution is triggered by user actions rather than sequential flow. Button clicks and mouse movements raise events, and registered handlers run in response, satisfying the stem's requirement to react to those actions. Other paradigms, such as procedural or object-oriented alone, lack this inherent event-loop and callback mechanism.
- ✗
Object-oriented programming
Why it's wrong here
Object-oriented programming models state and behaviour in classes, but event-driven programming is the paradigm that registers callbacks and runs a loop dispatching user actions to handlers. It is tempting because GUI toolkits are class-based, and it would be correct for modelling entities such as accounts or orders.
- ✗
Functional programming
Why it's wrong here
Functional programming composes pure functions and avoids mutable state, providing no event loop or callback registration for user actions. It is tempting because it suits data transformation and concurrency, and it would be correct for stateless pipelines such as parsing or aggregating datasets.
- ✗
Procedural programming
Why it's wrong here
Procedural programming executes statements in a defined sequence with functions, so it has no built-in mechanism for dispatching button-click or mouse-movement events to handlers. It is tempting for small scripts, and it would be correct for batch calculations or command-line utilities with linear flow.
Visual reference
About these practice questions
Courseiva writes every FC0-U71 question from scratch — 988 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This FC0-U71 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the FC0-U71 exam.