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 does hemostasis mean?
The length of a rectangle is 4 times its width and the perimeter is 150 feet. What is the width of the rectangle? A. 75 feet B. 30 feet C. 15 feet D. 60 fe
What is the range of function of y-1=(x+3)^2
what is the geometric mean between 6 and 20?
How many combinations of 5 students can a teacher choose from 24 students? A. 5,100,480 B. 42,504 C. 7,962,624 D. 120
4x-2y=14 y=1/2x-1 Solve the system of linear equations by substitution. Check your answer.
20 points People disagree whether the United States should have gone to war against Mexico. Should the United States have declared war? Opinions Please The Unit
What was George Washington's nickname?
Why did we use coin-flipping as a method to choose traits for the parent pets and the offspring pets?
how would u form a superlative for the adverb widely