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's an area of high pressure where air moves apart and sinks
Daniel enjoyed the daily portion of the king's meat and wine provided for the trainees. True False
what is "the square root of a number "
How many people live in Africa?
X<9.7 on a line graph
Why did Stalin give North Korea permission to invade South Korea?
Help!! Will give 12 points to anyone who can give me correct answers!!!
If the length of one side of a rectangle is 25 inches and the width of one side of a rectangle is 14 inches, what is the perimeter? What is the area?
The paragraph that presents a series of specific statements that lead to a conclusion at the end of a paragraph is a "particular to general" statement. True
he formula for the circumference of a circle is C = 2r, where r is the radius and C is the circumference. The equation solved for r is r = . Find the radius of