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

EASY SCALE FACTOR SHOW WORK
p(x) x^3+x^2-x-1 Find all zeros of p (x)
In which sentence does the prepositional phrase act as an adverb? A. Last evening, Anne suffered from a headache. B. The door to the attic was left open. C. Mr
What were the driving forces behind the industrial revolution
Why was wilson not able to finish his speaking tour
_______ is the largest continental biome. It experiences long, cold winters; short, mild summers; and low precipitation. It is characterized by coniferous fore
how do you know 8 thousandths is less than 1 hundredths
PLEASE HELP I GIVE THANKS
why is the square root of a perfect square always rational
what is the most common type of vegetation throughout Latin America