vegasviman vegasviman
  • 02-04-2022
  • Computers and Technology
contestada

How could the following line of code be shortened?

average = average + 1

Group of answer choices:

1.average + a

2.average += 1

3.average = + 1

4.average = 1 + average

Respuesta :

markmeadows67
markmeadows67 markmeadows67
  • 02-04-2022

Answer:

2

Explanation:

The second option is the only one that will work. The last would work but doesn't make the code any shorter.

Answer Link

Otras preguntas

Explain how you use the bar model to solve 14-7 equal seven
Can u help me from 1-3 SHOWING all the work also please
Women are more likely than men to show emotional disturbances in ________ and ________.
What is the sum of the first ten non-zero multiples of twenty
A bus makes 28 stop every 2 hours. how many stops does it make 3 hour? in 4 hours?
Which line in the excerpt from The Scarlet Letter by Nathaniel Hawthorne is an example of metaphor? A) It may be that my remedies, so long administered in vain,
what is the answer to 6 – 4r = -3r
what is the angular velocity of a 6-foot pendulum that takes 3 seconds to complete an arc of 14.13 feet?
South America's most populous city is located in which country?
sediments form from the process of ___________ fill in the blanks