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

Doing the text now can someone please help me
What can you determine about the solutions of this system
what is the relationship between paragraph 2 paragraph 3 through 29?
how is cell divison controlled?
The book The Sweet-hereafter; In section four, which of the following is the extended metaphor for Nichole's mental state. a) The room her father built her
Use the elimination method to solve the systems of equations.Choose the correct ordered pair. 7x+4y=39
HELP ASAP TIMED! PLEASE1. Ice core samples from glaciers ice caps contain bubbles of ancient atmosphere that are in layers based on age. What questions are scie
School has 204 sixth grade students. If the sixth grade is 30% of the total school, how many students are in the middle school?
Kayla has a $500 budget for the school party.She paid $150 for the decorations.Food will cost $5.50 per student. What inequality represents the number of studen
Use multiples to write two fractions equivalent to 7/9. 14/18, 8/10 6/8, 21/27 10/12, 28/36 14/18, 21/27