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

Three individuals form a partnership and agree too divide the profits equally. X invest -9,000 , Y invest 7,000, Z invest 4,000. How much less does X receive if
How do you pronounce the letter "X" in Spanish?
If 2x+z=2y and 2x+2y+z=20 what is the value of y?
Simple Machine Lever: A ________ that pivots on top of a fixed point called a _______.
in what way is a gene pool representative of a population
How far does Franklin Roosevelt deserve his reputation as one of the greatest US presidents?
translate into an equation. Five times the sum of twice a number, x, and six is thirty. Find the number.x = Translate into an equation. The difference b
Can you give me the order of Biomes from coldest to hottest please?-tundra-taiga-temperate deciduous forest-temperate grassland-temperate woodland (chaparral)-d
which is longer 635 millimeters or 535 centimeters ?
in what way is a gene pool representative of a population