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

Please help ASAP and explain the answer, thank you
260 milligrams to centigrams
Why did the colonist need money from the king if they had tobacco?
The main purpose of the Declaration of Independence was to:
Summarize the Enlightenment and explain how it’s important to US history.
Given: ΔABC Prove: The sum of the interior angle measures of ΔABC is 180°. What is the missing step in this proof?
Factor the expression. 24 + 7x − 5x2
I REALLYY NEED HELPPPPPPPPPPPPPPPPPPP BADLY PLSSSS HELP ME!!!!!!!!!!!!!!!!!!!!!!11 A rectangle has sides measuring (4x + 5) units and (3x + 10) units. Part A: W
Which of the following was formed by the Second Continental Congress in June 1775? A. Continental Army B. Supreme Court C. Federal Reserve D. Bank of th
Year 8 maths Finding the rule using a table of values