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

hey can you please help me posted picture of question
Will someone briefly explain some latent functions associated with public schools?
16. All men were given the right to vote in the Fifteenth Amendment, and women in the _______ Amendment. A. First B. Fifteenth C. Nineteenth
Informal agreement negotiated between president-elect rutherford b. hayes's lieutenants and moderate southern democrats that in effect marked the end of reconst
In a right triangle, the measure of one acute angle is 13°. What is the measure of the other acute angle? 32° 77° 90° 167°
write an equation in slope-intercept form for the line with slope -1/4 and y-intercept 9
One important strategy to keep credit card costs down is to:
If a nucleotide lacking a hydroxyl group at the 3' end were added to a pcr reaction, what would be the outcome? a. strand elongation would proceed as normal. b.
Why does it take more centimeters than inches to measure the same distance?
PLEASE PLEASE PLEASEE HELP ME!?!!? If you were asked to list the four forces in order of strength you would reply, (2 points) Select one: a. "The strongest is