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

Circle the correct words to complete the sentences. 1 I feel sympathetic / friendly towards people who are bullied at school. 2 My computer crashed. Consequent
Which of the following is not a diatomic molecule?
"A 20-foot ladder leans against the side of a house. The bottom of the ladder is 6 feet away from the house. What is the measure of the angle formed by the ladd
Will mark brainlest! Help please What was the mood/atmosphere of the book "penny in the dust" by Ernest buckler
How and why did America and the Soviet Union emerge as the two leading military powers after WW2?
Please help. Thank you....
Megan, a resident of New York, runs a red light in Texas and hits Sarah, a Texas resident. Sarah files suit against Megan. The Texas court can exercise jurisdic
what three points does the axis go through​
explain the process/chain of infection
What is the inverse of the function f(x) = 2x + 1? H(x) = 1/2x - 1/2 H(x) = 1/2x + 1/2 H(x) = 1/2 x - 2 H(x) = 1/2 x + 2