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

HELP IM ON LIMITED TIME! What makes a hypothesis different from a theory or a law? Select one: A hypothesis takes much more time to develop. A hypothesis can be
What is the domain of the inverse of the function graphed below? Write your answer as a compound inequality.
In which of the following disorders are hallucinations and delusions NOT part of the symptom pattern?
an ordered pair of real numbers can be represented in a plane called the rectangular coordinate system or the
What is the slope of a line parallel to the line whose equation is 3x-2y=14
Which of these correctly revises sentence 3 from this paragraph? A. My mother always reminded us to be polite: "You only get one chance to make a first impressi
Is being greedy harmful? Is it ever not harmful to be greedy? Is the Once-ler's greediness harmful?
help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
In an experiment, measurement of the dependent variable after the experimental treatment is know as: A. post-treatment assessment B. pre-test C. post-test D. co
Directions, Part explain how the themes of the novel are communicated to readers. Read the following quotes from the book. Using the Text Editor, explain the me