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

Thank you to anyone who answers .
How does historical fires help firefighters learn? specifically..
PLSSSSSSS HELPPPPPPP I WILL GIVE BRAINLIESTTTTTTTTTT!!!!!!!!!!!!!!!!!!!!!PLSSSSSSS HELPPPPPPP I WILL GIVE BRAINLIESTTTTTTTTTT!!!!!!!!!!!!!!!!!!!!!PLSSSSSSS HELP
Coordinate proof triangle question help please! A triangle formed with vertices at (1, 1), (6, 1), and (6, 4). Why is this a right triangle? Be thorough in you
The volume is 120.9 in. What is the missing dimension (X)
A pool contained 135 gallons of water water leaked out of the pool at a rate of 15 gallons every 3 minutes how many minutes did it take for all 135 gallons of w
What is the adjective in the sentence below? After Shelly ordered her hamburger, she decided to eat outside under the shady trees. hamburger shady ordered outsi
HELP WILL GIVE BRAINLIST PLSSSSS I WILL GIVE YOU 79 POINTS IF YOU GET IT RIGHT JUST PLSS HELP ME
Prepare a dialogue between you and your friend about the global use of mobile phone and its effect to the students.​
using the given information, can you determine the lengths of all the sides of the parallelogram? If so, what are three side lengths?