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

Ramon toll pass account has a value of $32. Each time he uses the toll road, $1.25 is deducted from the account. when the value drops below $10, he must add val
What is 3.24 devided by 82?
What are the x intercept and y intercept of the graph of y = -1/2 x - 5
Whose unexpected reaction after one of George Whitefield's sermons demonstrated how powerful Whitefield's preaching style was? The New Light preacher Jonathan
Which of the following best defines the term Republic? a) a system of government where a small of group of people rule b) a system of government where all peop
How does mass extinction affect species that survive? There are no surviving species if a mass extinction occurs. They will soon become extinct. They combine ge
In what order and why that a sonographer should make when scanning a patient if the image is too dark?
From which country did the U.S. acquire Louisiana? A. France B. Spain. C. Portugal D. Germany
Examples of this molecule include bread and rice
Which mineral has a matallic luster , a black streak and is an ore of iron? 1. galena 2. magnetite 3. pyroxene 4. graphite