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

please choose odd one out please tell fast ​
WILL GIVE BRAINLIEST>>>HURRY PLEASE What changes did Governor Claiborne make regarding African Americans in Louisiana? Check all that apply. He preven
Which of the following terms is best defined as the policy of extending a nation's authority by conquering territory or establishing controlover another nation?
A new bank customer with $3,000 Wants to open a money market account.The bank is offering a simple interest rate of 1.1%.What will be the account balance after
Only 35 people out of the 250 to whom the offer was made refused it. What percent refused it?
ASAP Present Tense Verb Conjugation Change the infinitive in parenthesis to the correct form of the present tense verb according to the subject given. Ella (de
What do Hamlet's words indicate in this soliloquy from Hamlet, act III, scene I? To be, or not to be: that is the question: Whether 'tis nobler in the mind to s
if you know the story of phineas gage, please help me out and tell me if this makes sense :) I WILL GIVE BRAINLIEST lol"Phineas was very lucky to be alive but t
Solve for y. -2(y-7) =9y – 30 Simplify your answer as much as possible.
write 640000 in standard form​