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 a correct first step in solving the inequality –4(2x – 1) > 5 – 3x?
Compare and contrast the approaches of Chandragupta and Asoka to ruling the Mauryan empire. Can someone help?
Make a hierarchical directory structure under /root that consists of one directory containing three subdirectories.
In what ways did the emerging industrial economy conflict with artisan republicanism? how did wage laborers respond to the new economy?
If the government offers a tax deduction to companies producing solar panels, what will happen in the market for solar panels?
I don't understand 11a or b. Please help.
your job is to design a staircase that has a total rise of 11 feet and meets these design guidelines: 1) the slope of the staircase is between 0.55 and 0.85 2)
Express the quantity 24.2×10-5 m in mm. express your answer using three significant figures.
What does the story of clever hans teach current psychology students about the findings of psychological studies?
esperan el los estudiantes autobus inverted question