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

an artisan is creating a circular street mural for an art festival. the mural is going to be 50 feet wide. find the area of the mural to the nearest square foot
what happens to the molecule AB when it has a bond dipole and the electric field is turned on? Spin the molecule around several times and make observations. Wha
A ___ field allows the user to select from a list of values.
The context of a piece of writing is the A. environment in which it was written. B. denotative meaning of its language. C. author’s ideas about a specific topic
What is Kings response to the clergymen's approval of how the police kept order during the demonstrations ?
Solve the following system of equations: x − 2y = 5 2x − 4y = 10
what is 10% off of 29.99
Which seismic waves generated by an earthquake travel fastest? a. s waves b. l waves c. p waves d. a waves
Solve for all values of x: 9/x + 9/x-2=12
ezra's stuffed animal has a mass of 300 grams. how many milligrams is the stuffed animal