guess you better read the directions and just read the book yourself and find the answer.
In what language? Most languages have iterator functions like map in JavaScript that will loop through the elements, making this almost a one liner
sum = 0
arr.map( elem => sum += elem )
When associating an event handler with a button click which event occurs the user hits the right mouse button, the outcome, if any, is That hurt.
How can the result be established?
The flow of the programme indicates that:
When the user presses the button, the application prints "That hurt" without any quotation marks.
This operation may be found in the third line of the programme.
Therefore, the outcome is (b) That hurt if the user clicks the right mouse button.
Details on the programme are available at:
brainly.com/question/16397886
#SPJ4
Answer is A, Action query