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

Why would consumers want to purchase this technology?
which nation fought and eventually took control of South Africa?​
WILL GIVE BRAINLIEST
Which dotted line best represents the trans Saharan trade network
What is the Answer pls
QUICK WILL MAKE BRAINLIEST TRUE/FALSE: if all the bonds in a molecule are polar the molecule is a polar molecule
A farm has chickens and cows. All the cows have 4 legs and all the chickens have 2 legs. All together, there are 82 cow and chicken legs on the farm. If there a
help giving brainist
graph y= -3/2x-3. could someone please help me. i dont know how to do this :((
What is 0.66% of 9,500 is