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

Which regulatory agency protects consumers from injury or death resulting from the use of a product?.
The following lots of Commodity Z were available for sale during the year. Beginning inventory 9 units at $50 First purchase 16 units at $50 Second purchase 21
what is a significant personal cost associated with the flu
What is constituent assembly?
(11-8)x3+7+27-3 (18÷3)+6+(14-8)x5 (11-7)x6+4+32-4
what is the solution to this equation? 8(e)^2x+1=4
The shadow of a tree is 10m longer when the angle of elevation of the sun is 45° than when it is 60°, find the height of the tree.​
Escribe las características de los dibujos Artes visuales
r=help me please thank u​
Estimate the roots of f(x)