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

We discussed that achondrites, stony-iron, and iron meteorites could all come from the same body. Give a possible scenario for what these meteorites have gone t
Hey guys ♡hw r u all doin pls solve this question for me ⤵️ (m-1)/2 - (m-2)/3 = ( m - 4 )/7 ​
I attached a picture of my question. Please help me ( urgent)
which number will replace the question mark?​
How do computer users benefit from the increased speed?
What is the correct definition of a self-assessment? A. An application sent to colleges to help them determine if you sy would be a good fit among their student
(0.000010)(0.00055)(0.002)
el valor de las maquinas a vapor en el siglo xviii, fue determinante para el desarrollo de los medios de transporte acuatico y con ello se acortaron las distanc
a composition about a journey i have made​
P-LS HELP ME ON THIS QUESTION I WILL MARK YOU AS BRAINLIEST IF YOU KNOW THE ANSWER!! The difference between the largest and smallest value in a data set is the