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

Is when an linking verb
How does an area benefit from volcanic activity?
Imagine you are inline skating in a shopping plaza when a shop owner yells, “Hey kid, see that sign over there?” You look, and the sign says, “No Skating” with
Fill in the blank with the correct form of the verb in the conditionnel tense : Je __________ dans un restaurant chic si j'allais à Paris. (manger) (2 points)
what was the u.s. involvement in the Vietnam War and Soviet Union's involvement in Afghanistan were motivated mainly by.
Find the sum. 2E5 + 9785 + 9E4 =
what expression can be used to find total discount of 30%
On Carries map,Greenville and North valley are 4.5 inches apart.The scale on her map is1 inch = 20 miles. How far is Greenville from north valley?
Dion practiced the long jump . he jumped 3.05 meters,2.74 meters and 3.3 meters.what was the average length of dion's jumps?
Which of the following loans will typically offer the lowest interest rate