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

Someone please help!!! I thought it was right, but it was the incorrect answer :(((​
How do you know what numbers to put where in the percent proportion?
I.................playing board games interesting because I can play them with my friends. A. find B. tell C. think D. say
What was Roger Williams greatest contribution to the New England colonies?
Type several food chains using plants and animals found in the prairie. (Example: grass – grasshopper – bird – cat…)
Tanya is saving for a vacation. She wants to have at least $75 for each of the 12 days of her trip. If she saves $85 each month for 10 months, will she save eno
Use the equation below to find v, if u = 19, a = 6, and t = 4.v = u + at ​
Carla is renting a canoe. It costs $100 for 4 hours and $350 for 9 hours. What is the unit rate of change for this situation?
plz help meh with this 3rd one
Popular sovereignty is established in the preamble of the constitution. what does popular sovereignty mean?