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

Which event in history is seen by many people as the beginning of the Great Depression?
Solving linear equations is not for me :b i need to know p - 15 = 13 - 6p
A mobile phone company offers two monthly calling plans, A and B. Under A, every minute costs $ 0.10. Under B, the first 100 minutes costs $ 12 and every extra
the difference between the square roots of a number is 30. What is the number?
how to write 6007200 in two other form
What is the value of three in 34,525
I do roadwork site 20 cones are placed on 50 feet of road. at this rate, how many cones are placed along 35 feet of road?
what is V=LWH for L?
Why did people leave the Massachusetts Bay colony to begin new colonies?
how do you convert 1.66 into a fraction