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

S table compares the products and reactants of processes. For which process would water be listed as a product?
what’s the vertical angle
3 types of insomnia?Why does "type" of insomnia matter?
Solve for x in the parallelogram below A. 8 B. 12 C. 20 D. 2
A hose can fill a swimming pool in 10 hours. Another hose needs 5 more hours to fill the pool than the two hoses combined. How long would it take the second hos
What kind of metamorphosis roaches have
Complete the chart Item Car Boat Skates Annual rate of decrease 20% 15% ? Value now $9800 $2200 $100 Value in t years ? ? 100(0.75)
lel desemplos, la discrimi ¿Qué Ciencia Social podría ofrecer una mejor explicación de los problemas identificados? Ra- zona tu respuesta: ●​
Which equation matches the function shown in the graph? 3-Y 2- 1- 0- B. -E O A. y = 3 sin(x) O C. 27T y = 2 sin (2x) + 1 y = 3 sin (2x) OD. y = 2 sin (x) + 1 3π
At over 5,300 feet deep, Lake ___ is the deepest lake in the world.