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

Question at the top : which choice describes the media being a government “watchdog”
Using the “On the Highway” distance time graph, what is the average velocity of the car? (use slope = rise/ run OR v = d/t)
The main reason the US senate reject the treaty of Versailles was because
Why was the American Revolution not accepted???? Give me two reasons why plzzz I will give 100 points
Queen Nzinga fought against Portuguese influence in what African country?
help me plz thx so much
I’m The Canterbury Tales, the pilgrim guide requests each pilgrim to tell _____ stories A. One B. Two C. Three D. Four
12x 3000 this is for u my bud answer it quickly
Judy is now twice as old as Adam, but 6 years ago, she was 5 times as old as he was. How old is Judy now? plz help bros.
the scale of a model train is 1 inch to 13.5 feet.One of the cars of the model train is 5 inches long what is the length of the actual train car