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

A massive number of people selling their stocks all at once led to what day?
What nutritional factors make most fast food unhealthy choices?
In the diagram of circle C, diameter AB¯¯¯¯¯¯¯¯ is perpendicular to chord MN¯¯¯¯¯¯¯¯¯¯ at point O. If MO=5x−7 and NO=18, what is the value of x? More help in th
Which term describes the time it takes for an object to complete one full cycle of motion on a spring? A. period B. frequency C. amplitude D. time E. force
Which statement must be true about the diagram? Point K is a midpoint of . mJKN = mJKM Ray KM is an angle bisector of NKL. JK = KL
Human activities can affect plant growth. Suppose a large Factory is developed near a forested area. Which of the following environmental factors is most likely
Compound/complex sentences
If f(x) = √3x+2, what is the equation for f^-1(x)
PLZ HURRY IT'S URGENT!!!! Why did Orwell use the Soviet government as a basis for Animal Farm? A. as a criticism of Joseph Stalin, who seized control of the
What are examples of moorish architecture in the Al-andalus area?