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 quotation supports the theme “Having a mixed cultural heritage can lead to mixed feelings”? A. where the two Slovak children / who became my grandparents
what did bush believe was important to help the united states achieve this foreign policy objective
My HTC Desire 510's mobile data stopped working, how to I make it work again?
Why do you think that economics is often said to be the science that studies choices?
A pattern of stars in a particular region of the night sky is known as a(n) a. ecliptic. b. constellation. c. vernal equinox. d. celestial sphere.
What was the treaty of Versailles?
Darwin s work on the theory of evolution occurred at about the same time that Harvey noticed the continuous circulation of the blood. Linnaeus developed binomia
Which poetic device uses recurring consonant sounds at the beginning of words? a. repetition b. assonance c. alliteration d. personification
what is one way water routes affect where people build communities?
a cat falls from a table of height 1.3 m. What is the impact speed of the cat?