Which of the following correctly pairs an example with event- or sequential-driven programming?(1 point)

Responses

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
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

event-driven programming – an application that displays all the letters for kids to learn

sequential-driven programming – a music application that allows users to create playlists
event-driven programming – an application that displays all the letters for kids to learn sequential-driven programming – a music application that allows users to create playlists

event-driven programming – a music application that allows users to create playlists

sequential-driven programming – a shopping list application that users can add and remove items from
event-driven programming – a music application that allows users to create playlists sequential-driven programming – a shopping list application that users can add and remove items from

event-driven programming – a messaging application that lets users call people

sequential-driven programming – an application that displays all the letters for kids to learn

1 answer

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.