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

Which of the following is an example of a biological resource? a. ecotourism b. fossil fuels c. oysters d. sand
how do you find the mode median the mean to range in stem and leaf plots
Which exponential equation is equivalent to the logarithmic equation below? log 987=a A. 987^10=a B. 10^a=987 C. a^10=987 D. 987^a=10
what prevented Cyprus from uniting with Greece
I need help for number 1 through 3
Sam is on the swim team. Each week he swims a total of 9000 meters. How many kilometers does he swim each week? Be sure to include the correct unit in your an
What is the instrument used to measure the amount of radioactive elements in a sample
the volume of a cube with 10 feet in length
this city is located at the easternmost part of europe
A diet of taro and fish, traditional dances that incorporate flower necklaces, and a volcano goddess are all part of which culture? A. Inuit B. Hawaiian C. Bost