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

please help me with this question thanks
The ratio of Seth's height to Jack's height is 3:4 if Jack is 15 inches taller than Seth, what is Seth height.
How fast are wetlands disappearing
Name an example of a protist
evaluate the following expression. 3^1
Who has read the hachet by gary paulsen and can help me with a few questions?
Es muy _________ en el desierto. Question 6 options: seco llovizno sol viento
find the slope of the line through each pair of points
A rebirth of trade and commerce in Europe was brought about by the ?
Help? Because my teacher doesn't want too