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

true bookworm is it a simile. B) hyperbole. C) a paradox. D) a metaphor.
What was the authors purpose for writing Harry Potter and the sorcerers stone. Provide evidence from the story
Can anybody help me with this
He says he can write an equation of the form y=Mc + b for the given values. Is he correct ?
a circular native american dwelling had a diameter of 24 feet how much is inside the home use 3.14 for pi
Geometry Proof - Thanks in advance for the help!
Use the rule to find the image of the vertices ABC is A (-2,4), B(5,3), C(1,-6) for the translation. (3 points) ABC: (x,y) ---> (x-3,y+2) Describe the movem
What is one way that the American Revolution contributed to the start of the French Revolution?
help me please i need you alls help
true bookworm is it a simile. B) hyperbole. C) a paradox. D) a metaphor.