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

is 3/5 a rational number
The words tranquil, hidden, peaceful, and versatile which ones are either synonyms or antonyms
The wave of revolutions across Europe in 1848 is known as the Springtime of Peoples. True or False
What is the root word of educator and it's meaning
during the 2011 season, a quarterback passed for 302 yards per game. he played in all 16 regular season games that year. how many total yards did the quarterbac
Why is it important that the phospholipid bilayer be both hydrophobic and hydrophilic?
The average score on a biology test was 72.1 (1 repeats). write the average score using a fraction.
What are some causes and effects of rapid population growth between 1900 and 1945?
In The Communist Manifesto, Karl Marx hypothesized that capitalism would fail if workers.?
31/9 as a mixed number