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 of the following is a proper noun and therefore should be capitalize .. giraffe , high school, Pacific Ocean , orange truck
The department of defense is most closely connected with
The main building blocks of tissues and organs are
"One hundred years of delay have passed since President Lincoln freed the slaves, yet their heirs, their grandsons, are not fully free. They are not yet freed f
Because the length of his story is limited, short-story writers typically do these things (Mark all that apply.): ___ introduce few characters have a single plo
Help need plz thx ASAP
the increase in the earth's temperature caused by heat energy trapped because of the greenhouse effect is referred to as _____. ozone pollutants smog global war
4x(3x+8y)-7y(5x-1) simplify
(2r)^5 typed in expanded form.
A scientist is going to perform and experiment to see how a new antibiotic affects a strain of bacteria. Which of the following peices of equiment would be most