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 part did advances in technology play in the creation of the 'New Woman'? What group of women was largely excluded from this progress?
A temporary committee consisting of members of both houses with the responsibility of creating agreement on different versions of the same bill is referred to a
What happens to the hydrogen ions that are split from water molecules
Which best describes most of the early Jamestown settlers? A. gentlemen unprepared for hard work B. farmers with experience and skills C. carpenters ready to bu
the area rug is 4 15/32 square meters. The rug is 2 3/4 meters in length. How wide is the rug
What organization was not created during the war years? a. WPB b. OPM c. OWI d. TVA
A water tank is being filled by pumps at a constant rate. The volume of water in the tank V, in gallons, is given by the equation V(t)=65t+280 where t is the t
"To Kill A Mockingbird" Miss Maudie discusses some of the town’s problems with the children. She says: “The things that happen to people we never really know. W
What characteristic do all algae share?
Simplify. 1+[2x-3(1.8/0.2)]