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

Cell references in a formula are called _____.
The actual cells that the muscles are made of are called _____.
The perimeter of a square is 4 times as great as the length of any of its sides. Determine if the perimeter of a square is proportional to its side length
Everyday occurrences, such as identifying criminals in police lineups, can be improved by using psychological experimental procedures, such as __________. a. si
Positioning like materials in separate vertical groupings defines A. framing. B. shadowing. C. sequencing. D. parallelism.
what are the belifs of living in a permanant settlement vs a nomadic settlement? i need 3 belifs
In what city did the Continental Congress meet? a. Boston b. Philadelphia c. New York City d. Washington d. C.
Please please help me.tank you
What happened as a result of the so called intolerable acts
The balance of trade for a nation is the balance that nation has between _________ and _______. A. imports / exports B. goods / services C. credits /debits D. s