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 equation could be used to solve the problem? The Petersons' new car can go 32 miles on a gallon of gasoline. At that rate, how far could it go on 8
who will win the election for President 2016
Write the fraction 37/100 as a decimal
Put 3/8, 2/5, and 0.38 from least to greatest
Write the following number in standard decimal form. eight and eighty-four hundredths
Name and describe the four forces that are at work within the nucleus of an atom.
_______ describes all the processes associated with the discharge of magma, hot fluids, ash, and gases. a. Magnetism b. Volcanism c. Hydraulic energy d. The
Which two types of poetry focus on the poet's experiences? A. sonnet and tanka B. tanka and haiku C. haiku and lyric poetry D. lyric poetry and sonnet
In what literary element of a spiritual will you most likely find its key ideas? a. refrain c. solo lyrics b. opening line d. title
Graham made 12,000 milliliters of orange juice. If he sells 1 liter bottles for $1.09 how much will he earn if he sells all of his bottles of juice?