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

Calculate the atomic mass of chromium it’s composition is 83.79% with a mass of 51.94 amu; 9.50% with a mass of 52.94 Amu; 4.35% with a mass of 49.95 amu; 2.36%
Round 2,689 all the way
A choreographer uses a number line to position dancers for a ballet. Dancers A and Bhave coordinates 5 and 23, respectively. Find the coordinate for each of the
collin earns 19$ for each hour of dog walking . How many hours in all will it take collin to earn a total of $38
Which problem was demonstrated by events at rosewood in 1923?
How do you say, "carlos is going to play soccer" in spanish? (1 point)?
A birds egg is fragile but does not crack under the weight of the mother bird sitting on it.why?
An enzyme is used to catalyze a metabolic reaction. What would most likely happen if an enzyme inhibitor were added during the reaction? The inhibitor would c
Nalia nalia work 3.5 hours more than Lisa together they worked a total of 18 hours Lissa worked H hours
In medical problem solving, two steps are key: generating hypotheses and then ruling the incorrect ones out based on data. one difference between experts and no