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

Prepare 100 ml , 3 N HCI from the 6 HCL?
When was George Floyd killed?
Frank says that quantum mechanics does not apply to baseballs because they do not jump from quantum state to quantum state when being thrown. Francine agrees wi
The formula of the gas ozone is O 3. What is the volume of 48g of ozone at r.t.p?
Need help!!!Two trains leave stations 270 miles apart at the same time and travel toward each other. One train travels at miles 70 per hour while the other trav
Find the values of each variable
Brainliest for whoever gets this right !!!
plz help me i need it today olz answer right
An account with $250 balance accrues 2% annually. If no deposits or withdrawals are made, which graphs can be used to determine approximately how many years wil
The Xu Corporation uses a periodic inventory system. The company has a beginning inventory of 650 units at $9 each on January 1. Xu purchases 900 units at $8 ea