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

In most plants, stomata on a leaf must be ______ during the Calvin-Benson cycle..
Who does not understand the rules of EDS
Which best explains what a credit score represent A A numerical rating that is expresses how likely you are to repay your debts B A numerical rating that sh
Which word could describe a flu outbreak that has affected the entire country
Which of these mountain ranges is the newest geologically speaking? A great smoky mountains B Rocky Mountains C blue ridge mountains D green mountains
Why was the battle of midway considered the turning point of the war in the public
Enzymes increase the rate of a reaction by ________. enzymes increase the rate of a reaction by ________. changing the ph of the environment decreasing activati
If a cell is having trouble regulating water levels, it is probably lacking inorganic compounds know as .
A 235.0 g metal block absorbs 2.44 × 103 J of heat to raise its temperature by 35 K. What is the specific heat of the metal? Show your work.
1). Evaluate C(20,18). A) 380 B) 190 2). Evaluate C(6, 6). A) undefined B) 1