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

What is the weight of an empty bottle?
What is the temperature of the triple-point of water on an absolute scale whose unit interval size is equal to that of the fahrenheit scale?
What is the history of cough syrup
The population of rabbits on an island is growing exponentially. In the year 1990, the population of rabbits was 2100, and by 1993 the population had grown to 3
What color is the sky
What are five real life examples of Volume expansion ​
Describe the purpose of 3rd party device drivers and why they are needed. Do device drivers ever need to be updated
draw the net of cube and square pyramid​
if the median of 8 numbers is 4.5. GIVEN that seven of the numbers are 9,2,3 ,4,12,13,1.Find the eighth number
Silver, gold, platinum, are ferrous metals. TRUE OR FALSE