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

if a material contains three elements but not joined in a fixed proportion it is a
Miss lawrence buys 8 ounces of smoked salmon at 17.98 per pound how much money does mis lawrence spend on smoked salmon
If it were possible for a rocket to travel at the speed of light (3.0x10 m/s about how long would it take to reach the speed from the rest
An item Brophy Burger costs n dollars. If the price of the Brophy Burger increases by 30%, the new price can be represented by the expression n + 0.3n. Which ex
Help me please I beg u
14 1/2 % of what number is 8.7?
The surface area to volume ratio defines what aspect of a cell
Strengths and weaknesses of the Confederate states?
What factor affects the polarization of light by scattering?
Which of the following is a boxplot for this distribution?104, 110, 88, 96, 109, 115, 129, 94, 84, 86, 110, 83, 90, 108, 112, 131, 100