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

There are 23 tables in the library. Each table has 4 chairs. Third grader fill the chairs at 3 tables. Fourth graders fill the chairs at 6 tables. The rest of t
why did Mr Collins come to the Bennet family looking for a wife?
PLEASE HELP I GIVE THANKS
What kind of problems did increased urbanization cause? During time of industrial revolution
Sue stacked one box onto another. The bottom box had the height of 2 1/3 feet and the top box had the height of 3 2/3 feet. How tall were the stacked boxes?
Angie takes a random sample of 100 students in her school and finds that 58% of the sample prefers art over music. There are 1,200 students in the school. Based
Which of the following is the modern counterpart of the journal and diary? a. A magazine article b. A blog c. A speech d. A newspaper article
Do all your pet's offspring look the same? If no, then explain why they look different.
PLEASE HELP I GIVE THANKS
A recipe call for 2 cups of water for every 5 cups of flour. How many cups of water are needed for 1 cup of flour? A. 2 1/2 cups B. 2 cups C. 1/2 cup D. 2/5 cup