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 family spends 1/10 of its annual income for housing, 1/4 for food and clothing, 1/5 for general expenses, and 2/15 for entertainment. What fractional part
when you infer you use details in a text to draw a conclusion about something that the author does not state directly what can you infer about sergio character
what is the value of this expression 14−3 ? 12 1/12 64 1/64
how tall is 1000 pennies in centimers
Which of the following is an example of how scientist might use a model
mi primo y yo conocemos a los jugadores del real madrid. ellos __________.
What is the most historically significant legacy of the Iroquois Confederacy? A. their assistance to the French in conflicts in Canada B. a system of govern
what is 100 divided by 6
what is the square root of 8 and why?
jasmine wants to eat at 8:00 pm. her meal takes 65 minutes to cook. what time does she need to put the meal in the oven?