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

What is the unit rate if there are 1760 cal in eight servings
Which words in the sentence are the adjective clause? Laura, whose talent is obvious, can play the oboe and the piano. A. the oboe and the piano B. Laura, whose
For the first 11 years of its existence, which governmental system did the United States use? a. monarchy b. confederation c. federation d. theocracy
What was the main reason that people decided to leave their homes and head west in the late 1800s? (Points : 3) for adventure for economic opportunity to start
In an autocracy, what kind of power does the leader hold?
What results if cells do not respond to the normal mechanisms that control cell division?
Why was the Union determined to capture Vicksburg during the Civil War? a. to end the war immediately b. to gain access to the West c. to support General Sherma
How many sheep are there if 9 sheep represent 15 percent of the total
What was the major reason for Napoleon's defeat during his invasion of Russia in 1812? an advanced Russian military superior Russian troops a natural disaster t
what did the algonquian people wear