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

10/18=c/4.5 what is c
Which achievement was Giovanni Caboto, also known as John Cabot, known for? A. He reached North America before Columbus but was unable to prove that he had foun
this picture is a scale drawing of a basketball court and 1 inch on the picture represents 15 feet of actual length. the dementions of the scale drawing are 2 i
How are the basic beliefs of your faith similar to the other monotheistic faiths? for islam, christianity and judaism
10/18=c/4.5 what is c
From a population of red brown orange yellow and green butterflies only the red and green ones survive since they can blend into their environment and reduce pr
Why did Southerners believe that their economy depended on slave labor? Select one: a. The South required slaves to tend its fields. b. The South required slave
which ocean contains many icebergs
How many atoms does a molecule of sodium chloride contain?
What type of government combines both unitary and confederal political systems?