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 is the main responsibility of the house ways and means committee?
If someone clicks a trueview in-display ad, where do they land?
How did the federalist party come to an end?
Albert einstein considered god to be essentially the sum total of the physical laws which describe the universe. i do not know of any compelling evidence for an
Devin is playing a game with 3 bonus rounds. In the first bonus round he gets 2 times the points, in the second bonus round he gets 3 times the points, and in t
"many of the things described in this video are leadership traits that strategic managers might aspire to, but they might also lead a manager astray. identify w
Determine the x intercepts of the quadratic function (2x+1)/x^2+5x+4
How to determine if a triangle is acute by its sides?
Which event did friedman describe as the beginning of the dot com boom and bust?
A chemical reaction is the change that takes place when __________ or more substances interact to form new substances.