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 is the graph of f(x) = (4)x?
List the structures that make up the pathway of air through the respiratory system starting with the external nares.
differences between virus and bacterium ​
Help with these questions, please!! I don't understand them!
Select all the correct answers. According to Newton’s law of universal gravitation, which statements are true? As we move to higher altitudes, the force of gra
When there is not enough oxygen, what is glucose converted to in animal cells?
convert 6.35 grams of aluminum sulfate to moles​
if I have 40 ft of cloth how many dresses can I make if each dress is 2 ft and 6 in ​
Question 2 Which of the following is an example of a successful cyber terrorist attack? 1Points A the sharing of military plans on a public website B a hacker
Mikayla is a waitress who makes a guaranteed $50 per day in addition to tips of 20% of all her weekly customer receipts, t. She works 6 days per week. Which of