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

I need help on this question plz
Study the road plan shown in the figure . A service station will be built on the highway and a road will connect it with cray how long will the new road be ?
need help please. Problem: Construct a triangle with interior angle measures of 45° and 45°. The third angle of the triangle is
How do you multiply fractions?
The combined area of two squares is 17 square meters. the size of the larger Square are four times as long as the size of the smaller square. find the dimension
ANSWER ASAP FOR BRAINLIEST AWARD Find the area of the figure. Round to the nearest tenth if necessary. Select one: a. 137.1 units2 b. 61.76 units2 c. 86.9 un
Please help !! I’m really stressed and soo confused
Lab safety and lab equipment worksheet answers true or false
I’m confused on this one
He climbed up at a rate of 4 meters per second. After 3 seconds, he was 13 meters below the edge of the volcano. How far was Zane below the edge of the volcano