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

An explosion that destroys the outer portion of a star is known as a
I don't know how to do this :(
Banana trees yield 32 pounds of fruit per acre and strawberry plants yield 84 pounds of fruit per acre. Suppose Erica is planning a farm to have b acres of bana
What did Olympe de Gouges and Mary Wollstonecraft have in common?
Can someone help me please which one is it ? A B C D
Two groups of students were asked how many hours they spent reading each day. The table below shows the numbers for each group: Group A 1 2
Viruses are different from bacteria in that
This graph shows the US unemployment rate from August 2010 to November 2011. This graph could help the US government allocate natural resources. limit productio
The area between the acceleration lane and the roadway that may not be crossed is known as the __________ .
Who was the first president of United States?