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

Pls helps fast!! The figure shows two parallel lines AB and DE cut by the transversals AE and BD: Which statement best explains the relationship between Trian
Classify the planets as terrestrial planets or gas giants. Celestial body A is the largest planet in the solar system. Celestial body B is the lightest planet i
type of macro molecule that most enzymes are in
What do you do if your friend has dislocated their shoulder?
Fill in the blanks with the passé composé Nous (parler) avec quelques autres touristes Fill in the blanks with the passé composé Mon père (perdre) son portefeui
How does choice of narrator affect characterization
find one value of x that is a solution to the equation (7x+2)^2+6(7x+2)=27 x= ?
Although her request was denied, at first Leibovitz wanted to photograph the Queen _____. on a horse in the tub naked in a night club
This. Is . Way. Tooooo. Hard. For. Me . I CANT ITS LIKE I HAVE NO BRAIN
why has America been referred to as " the land of opportunity"?