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

Mining has only short-term effects on the Earth. Please select the best answer from the choices provided OT OF
Which layer(s) do all blood vessels have in common? Describe the structure and function of capillaries. What role does smooth muscle play in blood vessels, and
A Chain of dry-cleaning outlets wants to improve its operations by using data from devices at individual locations to make real-time adjustments to service deli
Find the surface area of the composite figure. 2 cm 7 cm 2 cm 12 cm 12 cm 7 cm 7 cm SA = [?] cm2
Kellan is going out with some friends to eat at an Italian restaurant. He checks out the menu beforehand so he can look up nutritional information online for it
dry lab evidence of evolution
What is the sphere's volume?
???? Do y’all understand
The reviewer says “there’s definitely a sense of narrative here, a sense of storytelling.” What type of story does this music inspire in your mind? Write three
Three sticks are arranged to form a right triangle. If the lengths of the three sticks are 0.47 m, 0.62 m and 0.78 m, what are the three angles of the triangle?