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

Which structure is located between the auricle and the eardrum? O stirrup O ear canal O auditory nerve Ocochlea​
Compare and Contrast What does the rock art in North Africa reveal about how that region has changed from the Paleolithic Age to today?
Select all the correct answers. Which three body parts form part of the musculoskeletal system? tendons bones hormones glands joints
Write the statements needed so that the variable secondWord is associated with the second word of the value of sentence . So, if the value of sentence were "Bro
what is 6x +7=8x -15 solved.
Select the correct answer Assume that you are a member of a special interest group that wants to raise taxes on certain items. Who would you present your idea
how can barriers affect physical fitness?​
a tube called the extends from the bladder to the outside of the body
Choose all the answers that apply. Exercise _____. releases endorphins reduces the risk of diabetes strengthens muscles relieves anxiety decreases stress
On Monday Sophie ran 4 5/6 laps of a running track and on Tuesday she ran 5 3/4 of a running track. What was the total distance she ran over the two days?