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

Translate the phrase into an algebraic expression. The sum of 8 and w
Why did Stalin want Soviet control over the nations of Eastern Europe after World War II? A. To ensure his fellow ethnic Slavs were taken care of and able to es
What do tumor SUPRESSOR genes do? cause tumors to grow quicker encourages tumor growth stop a tumor from growing all of the above
PLEASE HELP Maryam is baking baklava for a party at school. Maryam needs to bake at least 144 pieces of baklava. Each pan is cut into 36 pieces, and it takes he
What is the Medical Assistant role in administering immunizations?
please someone help I’ll give u the brainliest answer
10. If the Federal Reserve sells $50,000 in Treasury bonds to a bank at 8% interest, what is the immediate effect on the money supply? A. It is decreased by $50
How many 4-digit personal identification numbers are possible if the number cannot contain a zero? a. 5,040 b. 6,561 c. 9,000 d. 10,000.
What group of organisms was likely ancestral to land plants?.
Did I do this problem right?