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

Jack is trying to make extra money on his summer vacation from
Stella solves the following system of equations using the substitution method. y=−4x−65x−y=10 What is the single-variable equation she solves after substituting
using aayirvedic medicines is an ecofriendly and sustainable technique to cure diseases and health problems justify​
What is the volume of a cone with a diameter of 8 centimeters and a height of 14 centimeters? (Use 3.14 for .) 234.45 cm3 703.36 cm3 937.81 cm3 117.23 cm3
Estimate a 15% tip on a dinner bill of $72.13 by first rounding the bill amount to the nearest ten dollars?
What does correct enunciation mean? A. speaking clearly B. speaking slowly C. using effective vocabulary D. using grammatically correct language
Which approach should a pregnant woman not use for handling stress O Eat sugary foods O Take a class O Relax O Exercise
I need help plzzzzzzzzz
draw or show picture of a labeled flag/tag rugby( this is for PE).​
The SWOT analysis helps in the development of marketing plans. True False