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

Holy War" traces the events back to their origin using a. chronology. b. circuitous logic. c. cause and effect. d. None of the above
what language do they speak in belgium
how to make your period come faster
what are the first two lines of the song easter parade
When Twitter is used to gather a large group for a face-to-face meeting it is called a. Flash mob. Group mob. Tweet mob. Twitter mob.
what is soft money and why is it controversial
What is the value of each digit in this number 58
differences between iphone 6 and 6s
where is notre dame college
How much interest is earned for the investment? $20,000 for 2 years at 6% compounded annually