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

Emily needs to buy fabric to make curtain panels for her windows. Each panel will be 4 feet long and 1/2 foot wide. Each piece of fabric that she can buy is 4 f
PLEASE HELP What is the mode of the following set of numbers? 51, 73, 82, 51, 73, 103, 73, 125, 82, 125 51 73 125 82
Complex organic compounds in sewage are broken down by bacteria. What is the role of bacteria in this?
A rectangles length is 7 inches greater than its width. If the perimeter of the rectangle is 110 inches, find its length and width. I think it's w (w+7)=110
Use patterns of zeros to find 5600÷7 show your work.
5x+15=90 what do the x equal
which liquid will evaporate the fastest water salt water pepsi and gatorade?
9x-6=8 ??¿????c?????????????????????????????????????????
write these fractions in ascending order. 5/8 3/4 1/2 9/16.
What was Vladimir, Grand Prince of Kiev, known for? A. After sending out men to investigate various religions, he chose Eastern Orthodox Christianity as the sta