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

Need some help! Will appreciate the fastest answer. Thnx in advanced! 1) What do B cells do? a. cause inflammation b. make your mucous membranes watery c. produ
people whose calendar included five days of celebration
In The Adventures of Huckleberry Finn, the house is packed with people after the duke hangs his signs. Which statement best explains how this could be viewed as
Which is a substance that is made up of only one type of atom? compound element solution mixture
Hubris affects the plot of Sophocles's Antigone mainly through the character of Creon. Which lines in this excerpt from the play highlight the nature of his hub
Where would you most likely find benthos organisms? a. in the surface mixed zone b. in the pycnocline c. on or in the ocean bottom d. traveling in ocean cur
Give Me Liberty or Give Me Death is the name of a speech by
What is the average time of a sea lion's pregnancy? a. 7 months b. 10 months c. 12 months d. 15 months
oraciones que sean hecho y opinion
A large spool holds 78.5 meters of steel cable. How many centimeters of cable does the spool hold?