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

Why is excretion necessary to maintain homeostasis?
A mountain climber starts a climb at an elevation of 453 feet above sea level at his first rest stop he has climbed 162 feet and by his second rest stop he has
Sam and Ben have discovered some strange animals living in the woods behind their house. Ben is excited because he believes they are marsupials, an animal he's
Luke wants to reduce the area of his rectangular Garden by 1/4 the expression 14/W can be used to represent this change. What is another way to write this expre
Help with Spanish hw
ability to conduct electricity
How does the molecular clock work?A. It analyzes the brain functionality of two different species.B. It examines and compares the physical characteristics of tw
ax - 6 = 7x - 26 {5}
Sex cells from female reproductive organ? 1) Mitosis 2) Fertilization 3) Zygote 4) Eggs 5) Meiosis 6) Sperm
In triangle △ABC, ∠ABC=90°, BH is an altitude. Find the missing lengths. AH=4 and HC=1, find BH.