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

A three dimensional circular shape
When we speak of 'characteristics' in geography, we're referring to
Match each word with its synonym Tiles: prevalent , requisite, propagate pairs: necessary, widespread, spread Please someone help
Do japanese call american cartoons anime
Which of the following describes how binary fission and mitosis are similar? A)They are both used for growth or repair. B)They both break down membrane-bo
what is pie i am am confused i need help
Martin is logging the number of strikes he bowls per hour. He has determined the function to be f(x) = 2x + 5, where x represents hours and f(x) represents the
A circle has its center at (-2, 5) and a radius of 4 units. What is the equation of the circle? (1 point) (x + 2)2 + (y - 5)2 = 16 (x + 2)2 + (y + 5)2 = 16 (
Every day the teacher has her class of ten students line up for lunch. how many different ways can the students line up?
Which best describes the Glorious Revolution? A. The Glorious Revolution was a nonviolent exchange of authority. B. The Glorious Revolution took away rights fr