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

What is the definition of popular press source?
walter buys a bus pass for 30$. everytime he rides the bus money is deducted from the value pass. he rode 12 times and 24$ was deducted from the pass. how much
How would you describe the human features of a place?
the blueprint for landscaping a yard has a scale of 1/2" to1 foot. if the blueprint is a rectangle 18 inches by 22 inches,what are the dimensions of the yard?
What is the connection between 2.3 times 6.9 and 6.9 divided by 2.3.
can someone help me on this question! please! :)Evaluate the formula V= BH/3; B = 36 in.² and h = 11 in.
Write five names for 64 .
if the slope of a position versus time graph is downward what kind of motion produced the graph
Convert 14mm to its equivalent in m using dimensional analysis
How did geography influence the way the Incas ruled the empire?