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

Answer please I need it tomorrow​
Within an ecosystem, what do consumers depend on other organisms for?
The wholesale price for a desk is 185. A certain furniture store marks up the wholesale price by 15%. Find the price of the desk in the furniture store. Round y
Listen to what Candela says about where she lives. Then answer the question. Choose one thing that is NOT close to Candela's house. la discoteca O el parque la
For the following free body diagrams identify if the forces are balanced or unbalanced. Then determine the net force if it is not zero and the direction of moti
(-4,-7) and (-6,-11) find slope
Imagine you are the pastry chef at your favorite restaurant. The manager has just told you that you have a large crowd coming in for lunch tomorrow and you need
Why did the Republicans need the Democrats' help to put Rutherford B. Hayes into the Presidency?
which roman holiday is thought to be the origin of valentine’s day?
Type a digit that makes this statement true. 17,421,55 is divisible by 6.