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 two consumer rights would customers depend on when returning a damaged item for a refund? the right to be heard and the right to choose the right to choo
When the present participle of a verb is used in conjunction with a helping verb, the verb is referred to as
The answer with the work please
Any help I can get on this please? I really don't know how to do it
How to make your phone number appear different?
What type of food does Argentina have
round each number to three significant figures 1044.987
what is the answer to this problem?7-3x - 15=19
I am a number less than 3,000. When you divide me by 32, my remainder is 30. When you divide me by 58, my remainder is 44. What number am I? Explain your think
simplify 7 - 5x - (3+5x) A. 4 B. 10 + 10x C. 4 + 10x D. 4 - 10x