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

Marta uses 1 piece of paper and 1 piece of ribbon to make kites. The paper comes in packs of 3 and the ribbon comes in packs of 4. What is the least number of
what was the third part of james k. polks war plan
mary has 12 marbles. 3/12 marbles. are yellow and 2/12 of the marbles are blue. The rest of the marbles are green. how many marbles are green??explain how you k
How many outer electrons does phosphorus have
When cooked, 85% of the kernels in a bag of microwave popcorn popped. There were 120 kernels of popcorn in the bag. How many kernels popped? A. 102 B. 105 C. 14
What weaknesses did ltaly have?
how were different United States regions linked economically?
What is 2/3 of 18? What is 2/3 of 24?
Identify the type of chemical reaction. H2CO3 H2O + CO2 decomposition exchange reversible synthesis
Again Due Tomorrow!! Is (3,6) A Solution To y = 3x - 3 and y = 2x + 2