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

In how many ways can a committee of five Democrats and four Republicans be formed from a group of twelve Democrats and twelve Republicans?
Choose ALL correct answers (1, -3) (4, 1) (6, 3) (2, -2)
Help me with ixl please
Plot the point on this function with an x-value of 6. What is the y-value of this point?
Help me with ixl please
Solve the system of equations below by graphing. Type in the ordered pair (x,y) for your answer y=-2 x+y=5
A 16.0 kg canoe moving to the left at 10 m/s makes a head-on collision with a 19.0 kg raft moving to the right at 7.0 m/s. After the collision, the canoe moves
The cells ____ and shrivel up
Solve the system of equations below by graphing. Type in the ordered pair (x,y) for your answer y=-2 x+y=5
In the diagram of a gate, the horizontal bars are parallel and the vertical bars are parallel. Find x and y. Complete the explanation Indicating which postulate