The correct pairing of examples with event-driven and sequential-driven programming is:
- event-driven programming – a shopping list application that users can add and remove items from
- sequential-driven programming – a messaging application that lets users call people
Explanation:
-
Event-Driven Programming: This style is focused on responding to events or user inputs. A shopping list application allows users to add and remove items, which relies heavily on user interactions (events).
-
Sequential-Driven Programming: This style follows a linear top-to-bottom execution flow, typical for applications where processes are completed in a specific order. A messaging application can have processes that typically follow a sequence, such as sending a message to a person after selecting their contact.
Thus, the first option is the correct pairing.