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

We can identify only a small fraction of all the pulsars that exist in our galaxy because
M.p. tells you she was recently at a luncheon with her garden club and that most of those women take different bp pills than she does. she asks why their pills
Which of the following is an example of how advanced technology has helped the modern economy ? A. An important meeting can’t be held until Mr. Jones can trave
The graph shows the number of gallons of white paint that were mixed with gallons of blue paint in various different ratios: The number of gallons of white pain
What do large numbers of people form when they come together?
Determine whether the sides given would form an acute, obtuse, or right triangle. 7, 7, 13
list and describe three elements of written communication
Identify the y intercept of the function 2x +6y=12
What has become of many of the Palestinians who became refugees in 1948 Many still live in refugee camps Most have become Israeli citizens They have been give
How would​ keynes's concept of animal spirits explain the creation of a housing​ bubble?