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

Managers should avoid satisficing in the ____ stage of the managerial decision-making process.
Which Chinese thinker believed that peace and stability could be brought to China if all people treated one another with respect? A. Tang Taizong B. Tokugawa Ie
Calculate the velocity of the object in the graph during the following time interval 0-6 seconds. Also, during which time interval is the object accelerating an
solve for m the problem is y=mx+b
can a demigod be preferred as a human?
The perimeter of the square shown is 4(x+33) meters. What is the value of x if the perimeter is 28 meters
Partial performance cannot override the statute's requirement for a written agreement. a. True b. False
For any approximately normal distribution, how can we find the relative frequency of the scores?
The quadratic x^2-4x-14=3x+16 has two solutions. What is the positive difference between these solutions?
What is the domain and range of each relation and the function of {2,0},{0,2},{-2,0},{2,0}