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

Help would be greatly appreciated:)
what is 12.3=0.41x equal
Can anyone help me with this
Stephanie can paint 4 cars in 1 hour how many cars can she paint in 3.75 hours
Show it in y=mx+b form please!
how can you show that a situation represents a proportional relationship?
In 25 words or fewer, describe one primary source and one secondary source source you think would be useful when studying government and politics
what is the slope of y=6-3x
Which one of the following statements is not correct? A) in any physical process, such as Dew forming on grass or carbon dioxide subliming, the internal energy
a close swimming pool is 15 ft wide and 31 ft long the club member want to exposed arrogant Border in a strip of uniform width around the pool they have enough