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

(6x-44)=4x Please help pleae
A new field known as _______________ has emerged to explore the epigenetic influences of diet. a.neogenomics b.vitagenomics c.nutrigenomics d.isogenomics
Answer this:- 7×7÷7-7+7×7+7-7
Which will heat up fast, metal or cotton?
8g - 6(2g + 7) Plz help me
The robots are powered on coffee alone. They use 2 bags of coffee each day. How long will 1/4 of a bag of coffee last them?can anyone make that into a multiplic
What’s the nearest 10th to this number 26.03447
attractions that tourists may want to see in massachusetts ? PLEASE HELPPPO
Raphael can finish his math project in 3 hours. It takes Jai to do the same project in 4 hours. If they will work together as partners, how long would it take t
does anyone know a good sentence with sustain? HAS TO BE DISCRIPTIVE, ONE SENTENCE. WILL GIVE BRAINIEST AND 50 POINTS!!!