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

a local hamburger shop sold a combined total of 637 hamburgers and cheeseburgers on Tuesday.There were 63 fewer cheese burger sole than hamburgers. how many bur
What was expected in the tribute system discussed in the passage? Foreigners would present their goods for inspection Foreigners would bring gifts for the emper
From this excerpt, Aristotle gives a cautious endorsement of A) Tyranny. B) Aristocracy. C) the Rule of Man. D) the Rule of Law.
1. Reduce: 21 = 21 Reduce: 28
What is the function of the organelle labeled A in the diagram?
what ecosystems do not have symbiotic relationships?
4 square meters is equivalent to how many square yards​
Jenna and Heidi together have $60. Jenna has $9 more than twice Heidi’s amount. How much money does each have?
charlie chaplin modern times
18 36 72 96 What number goes between 36 and 72 to finish the sequence ?