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

Which type of economy provides the least incentive for companies and workers to improve? a. Command economy b. Market economy c. Traditional economy d. Mixed ec
when jeff ran up a hill at 7.0m/s the horizontal component of velocity vector was 5.1m/s
Distribute-3 (4x + 5)​
Question 18 The scattering of light by colloids is called ______. A)the Tyndall effect B)conservation C)air pollution D)suspension
solve each system of equations 2a-3b+5c=58 -5a+b-4c=-51 -6a-8b+c=22
what is the value of log^625^5​
A manufacturer reports the following costs to produce 28,000 units in its first year of operations: Direct materials, $28 per unit, Direct labor, $24 per unit,
Pollution of the rivers in the United States has been a problem for many years. Consider the following events: A: the river is polluted, B: a sample of water te
In Maddie's company, senior officers eat in the same cafeteria as the entry-level workers. On a trip to a different country, she was surprised to find that the
what is the answer to 6x+c=k for x