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

what activity uses the most water in utah?
Primitive type variables are always passed by ____.
Does anyone know the answer?
Every female bear has 3 baby cubs. What is the constant proportionality for the ratio of cubs to female bears? A 1/3 B 2 C 1/2 D 3
Which one of the following is the transport of the nutrients around the body to where they’re needed? Digestion Nutrients Absorption Metabolism
What is the value of x? 6.75+3/8x=13 1/4
(2.4x10 to the 4)(4.5x10 to the 3)
identify and explain one aspect of the scientific revolution that would support the interpretation that it was more important than either the renaissance or the
Percy paid 24.10 for a basketball. The price of the basketball was 22.99. What was the sales tax rate?
In 2007, the two most costly components of underage drinking in Florida were