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

✯ ✯ The distance between R and T on the coordinate grid is ___ units. (Input whole numbers only.) ✯ ✯
Find the image of (-6,1) after a translation of 3 units left.
1. How would you classify humans? (2 Points) Enter your answer Submit
p2 – 4p is subtracted from p2 + p – 6
simplify -4 1/4 - -9 1/2​
Which words from "Monet's Waterlilies" by Robert Hayden most appeals to the sense of sight? " poisons the air "I come again to see through refracting tears "the
What amount of sugar does Travis need to put into the mix to have the same ratio of sugar to butter that the original recipe calls for?
What is the stamp act?
What is the value of the expression? 1 1/3 x 2/7
Which statement provides the best evidence that Earth has a nearly spherical shape? 1. 2. The Sun has a spherical shape. The altitude of Polaris changes in a de