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

What mass of water will fill a tank that is 100.0 cm long, 50.0 cm wide, and 30.0 cm high? Express the answer in grams.
how much more is 7/20 than 3/20
What was the famous home Thomas Jefferson built called?
How can you show your work with the numbers 400 ,15,and 6 to get the answer 160
solve this literal equation2x=4a+2b
How could you leave home on Monday to go sailing on the ocean,sail for 1 hour on Sunday,and return home on monday
Two cars leave a town at the same time heading in opposite directions. One car is traveling 12 mph faster than the other. After 2 hours, they are 232 miles apar
The first and third digit of the five digit number h6h41 are the same. Given that the number is exacley divisible by 9, what is it sum of it's five digit number
how many tens in five hundred million
Solve 24 over 17 = m over 34 What is "m"??