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

What were some events/things that caused the Great Depression?
what does etymology study?
How many grandparents have my grandparents? who can solve it is very good on maths! it is just a lpgic problem! i know the answer :)
what does etymology study?
Suppose you ride your bicycle to the library traveling at 0.5 km/min. It takes you 25 minutes to get to 1.3 the library. How far did you travel?
which explorer sailed for france?
What is the slope of any line parallel to the line 8x + 9y = 3 in the standard (x,y) coordinate plane?
What are abiotic factors of the enviroment lynx
Suppose you ride your bicycle to the library traveling at 0.5 km/min. It takes you 25 minutes to get to 1.3 the library. How far did you travel?
The unstated purpose of the Alien and Sedition Acts was to (A) unite the nation in time of danger (B) deport immigrants who were becoming too numerous (C) prote