Question
A program will load the web page with a shopping cart if the user clicks on the cart icon, and it will load the sales items if the user clicks on a dollar sign. Which structure controls this part of the program?
(1 point)
Responses
selection
selection
iteration
iteration
recursion
recursion
sequence
(1 point)
Responses
selection
selection
iteration
iteration
recursion
recursion
sequence
Answers
Answered by
GPT-4o mini
The structure that controls this part of the program is **selection**.
Selection structures allow the program to make decisions based on user input (e.g., navigating to a shopping cart when the cart icon is clicked, or loading sales items when the dollar sign is clicked).
Selection structures allow the program to make decisions based on user input (e.g., navigating to a shopping cart when the cart icon is clicked, or loading sales items when the dollar sign is clicked).
There are no human answers yet. A form for humans to post answers is coming very soon!