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 is the value of x in the figure?
sikhism began as a movement to combine _____.
what is 4^3 × 4^-6 .
the roman playwright who used puns in his farces was .
Henry Ford would have been most interested to bring which modern innovation to his automotive factories? time-study analysis computer-controlled robotic
write 5/2-in standard form
All of the following are types of outlines except __________. a. long b. decimal c. full sentence d. alphanumeric
the basic structural unit of the body is the
why does the enzyme trypsin get deactivated when introduced in the gastric juice of the stomach? the optimum ph for trypsin is about 8.0, which is the ph of the
The product of two whole numbers is 825 the sum is 58 what are the two numbers