HeckinBrandon
HeckinBrandon HeckinBrandon
  • 01-12-2020
  • Computers and Technology
contestada

What is the index of 7 in this list?
that list being [5, 6, 10, 7, 3, 2.5]

7
4
2
3

Any brainliest beggars will be flagged

Respuesta :

jffrydsr
jffrydsr jffrydsr
  • 01-12-2020

Answer:

-1 (out of range).

Explanation:

Index '7' cannot exist in 0-indexed array of size '6'.

If return type is 'Integer' out-of-range exception should be thrown.

[ 0, 1,  2, 3, 4,  5] :: indices. (length = 6)

[ 5, 6, 10, 7, 3, 2.5 ] :: elements.

Answer Link

Otras preguntas

How does Atticus feel when he delivers his lecture to Scout and Jem about their family’s “gentle breeding”? What does Scout noitice that leads her to conclude,
In the modern political system, which of the following statements accurately portrays a major disagreement between Democrats and Republicans?
algebra 2 unit 2 question. connexus.
what is the mass of a rock if a number 12 N unbalanced force acting on it causes the rock to accelerate at 4 m/s^2 a. 0.33 kg b. 3 kg c. 48 kg
what is 0.000099 in scientific notation
Which system worked with the nervous system to maintain homeostasis? a)SKELETAL b)CIRCULATORY c)RESPIRATORY d)DIGESTIVE
12 less than the quantity of a number and 7 is -2
Lately, Carrie is feeling increasingly tired. She gets headaches at least every other day and often zones out while in class
what conditions and\or raw materials are necssary for photosynthesis to occur?
Which type of organic molecule is used as motor fuel and also in making many plastics?