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

i need help guys please
7 (x -3) = 14 what the answer
Which of the following Arab countries were attacked by its northern neighbor iraq in 1990
How many Al3+ ions are in a mole of AlBr3?
uppose the sales tax rate in a certain state is 8% of the purchase price. If a new food processor sells for $750, how much is the sales tax?
What similarities and differences are there between the animal cell, the plant cell, and the green algae cells? Use complete sentences.
Matilda traveled the first 80 miles in 4 hours. Then she quadrupled her speed. How long will it take her to travel the next 400 miles?
James estimated the total cost of groceries to be $50. The actual cost of the groceries is $65. What is the percent error? Round your answer to the nearest wh
Match the phases in the cell cycle to the events that occur in each phase. interphase mitosis cytokinesis the nucleus divides the cytoplasm divides the DNA r
We ____ to work, because we were running late. Which word choice for the sentence is the most precise? A) cruised B) drove C) lumbered D) sped