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

Which statement best contrasts the character of Cassius with the character of Antony? A. Antony has a bigger ego and speaks of himself grandly, while Cassius is
A substance continually produced in our sales that may cause damage to DNA and other important cell structures over time is known as a
Spanish attacks on British forts in the south?
I am in serious need of geometry help Help pls!!!!
What were some consequences of the reign of terror?
sketch a graph of the relation y+4=2(x-3)
How are salts formed? A) By the covalent bonding of neutral atoms. B) By the covalent bonding of oppositely charged ions. C) By the ionic bonding of a cation an
As the blood circulates through the body, the blood receives from the muscle system?
प्रश्न न. (३) को (ख ) को उत्तर लेख ।
Change the underlined part of the sentence into the plural form; make sure you chnage the subject and tbe verb aller. (La ville va) à la boulangerie. () is unde