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

Family planning is a service that assists couples in O adopting children creating a monthly budget O planning for their child's college education deciding if th
Use the inequality symbol <>,, =) to compare-3+7___-10-2
A motorcycle engine is 600 cubic centimeters (600 cc). If 1 cm3 equals 1 mL of volume, how many liters are in the motorcycle engine? Give your answer to the cor
The timeline above describes the development and expansion of which era? A. the Ming dynasty in China B. the Joryo kingdom in Korea C. the Khmer Empire in Cambo
Is the square root of 40 rational or irrational and why
In how many ways can 10 people be divided into three groups, one group with 4 people and the other two groups with 3 people each?
What is the answer to this?
After a 5% pay raise , Hermione is earning $21,000 per year. What was she earning before the pay raise?
What is the slope of 4x - 3y = 4 ?
Is the positive integer x divisible by each integer from 2 through 6 ? (1) x = 10m, where m is a positive integer divisible by each integer from 2 through 5.