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

if m angle sign 1 equals 40 what is M angle sign 5
please help will upvote Solve. –6 + b = –18 b = ____ 12 -24 -12 31
Please help me I don't know
The owner of Fido's Pet Supplies wants to know how much dry dog food to stock in her new location. On her customer questionnaire, which of the following questio
How much money is 75 pounds of gold worth?
Which classes of Egyptians participated in death rituals
Describe a scenario in which an organism can go from the top level to the bottom level.
Why did congress create the office of price administration?
i really dont understand this (see attachments)
ben can type 153 words in 3 minutes. at this rate, how many words can he type in 10 minutes