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

What is the equation of the line that is perpendicular to the given line and passes through the point (3, 0)?
What is the meaning of the phrase “ I run before my horse to market”?
What attorney represents you if are not offered a job because you’re pregnant
Difference between bulb and bulbil? In 2point​
Prose never makes use of figurative language. True False
Which of these are most characteristic of literary nonfiction? A. Facts, with little description B. Dry, straightforward writing C. Made-up characters D. Descri
The time required to finish a test in normally distributed with a mean of 40 minutes and a standard deviation of 8 minutes. What is the probability that a stude
Plz answer my question quickly!!!!!!!
Which is not a major reason for the decline of feudalism A innovation in farming B the Magna Carta C the Black Plague D the crusades
623 + 433 + 56 = ? show your work