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

A ratio is defined as?
Do broadcast journalists have to worry about editing? A. No, they have editors to do the editing. B. Yes, they have to learn how to use the software too. C. No,
Ravi and Tina were working on a project based on ‘Changes around us’, for which they were observing different changes occurring in their daily life. They went t
Georgia’s state constitution provides various levels of funding for
As shown, John uses a hammer to pull a nail from a plank. The handler of the hammer is 30 cm. The nail puts the 450-N resistance force 2 cm from the pivot. How
redox reactions- does anyone know the answers?
1. What does Gerzema argue that consumers are doing?
El gerente de la Tienda de Muebles de Jessica está tratando de averiguar cuánto cobrar por un sillón que acaba de llegar. El sillón se compró a un precio de may
Select the subject of the sentence. "Despite the cold, several small children decided to sled down the hill behind James Olsen's house."
please help me solveeeee