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

Once consumers arrive at ge’s social media sites, ge must _____ them about its value proposition and related benefits.
At the edge 10 trees are planted in a row. The distance between the trees is the same. The distance between the first tree And the third tree is 12 feet. West i
How do you find the Domain of a function
Answer the question above
The process of collecting, analyzing, and interpreting information about customers, competitors, and other related marketing issues is known as ________.
Triangle ABC is similar to Triangle DEF. What is the measure of angle DEF? Refer to image, please show work :)
5. Hindu-Arabic numerals, developed in India, demonstrated for the first time which mathematical concept? A. multiplication B. pi C. zero D. base ten system
signs such as the dash or the comma indicate that blank information will follow
I need a research paper on poverty
How does the immune system fight against pathogens?