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

25% of what nember is 19
What is the value of the 8 and 48?
THE EXPRESSION (TAN THETA) (CSC THETA) IS EQUAL TO?
What is 0.75 as a fraction in simplist form
The skeletal system does all of the following EXCEPT (A) support. (B) transport. (C) protect. (D) digest. (E) store.
The net force acting on a 50 kg crate is 0 N. What is the crate's acceleration
What is 0.8% written as a decimal
THE EXPRESSION COT THETA/CSC THETA IS EQUAL TO?
Which fossil occurs on the most landmasses? & What does this suggest about when these particular continents broke up?
Factor the polynomial 6b^2-17b+10