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

When do we use the addition and subtraction formulas for sine or cosine?
Which factor played a major role in the decline of the Safavid Empire? A. The economy suffered after high taxes stifled trade with Europeans. B. Leaders that
A soma dos doze primeiros termos de uma Pg de razão 3 é 265.720. Determine o primeiro termo.
Which statements can be represented by this equation? Check all that apply. 2x-9.2=n+4/5. A)Twice a number minus nine and two-tenths is the same as the number p
an advantage of behavior therapy?
What would happen if the valves separating the chambers in a person's heart did not close? The volume of blood pumped from the atria to the body would be reduc
How do you solve this?
another name for the organization of African untidy is the ________ A) pan-African states B) African alliance C) African Union D) pan-African union
Which number is divisible by 3? (A) 743 (B) 5325 (C) 205, 633 or (D) 17,231
A(n) _____ is an introductory section to an opera or oratorio.