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

after early colonial losses to the British an New York
PLEASE SOME ONE HELP ME!! GIVE BRAINLESS!! 1.Both in Ohio and the rest of the Northwest Territory, men outnumbered women. What would help explain this phenomeno
Assistance please guys
is it true a single covalent bond involves two atoms sharing one pair of electrons
how to convert 200cm;meters
what are the first four multiples of the number 6
Tanisha says that the Moon looks dark from Earth when the Moon is in two different places: always when it is closest to the sun, as in Top View #1, and always w
Which group of Native Americans was organized under a chiefdom societal structure? Paleo O Woodland Mississippian Archaic
Which of the following is a potential benefit of working at a nonprofit healthcare facility? 1. ownership of the company 2. high salary potential 3. help from u
Read the section of the article named "Duties." What do advertising managers due? Larger companies may have several advertising managers that work with them. Th