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 major issues did china face during the Cold War
Please show me step by step so I can learn to explain it to my son.
This is the number of deaths during a given time period divided by the average population.
Classify each number as rational or irrational. Drag the choices into the boxes to correctly complete the table.
A rectangular pyramid has a volume of 210 cubic centimeters. Find two possible sets of measurements for the base area and height of the pyramid.
Which instrument has 47 strings and 7 pedals?
original price: 60 markup:15% what is retail price
Consider the status of the black-footed ferret. What is the MOST logical contributing factor t its endangered status
Aubra and Tony are rounding the number 1.65 to the nearest tenth. On a number line they see 1.65 is exactly halfway between 1.6 and 1.7. Aubra says to round to
Galactosemia is an inherited disorder in humans a person with the disorder cannot digest the sugars in the allelebfor normal digestion (G) is dominant the allel