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 will it cost to carpet a rectangular floor measuring 15 feet by 30 feet if the carpet costs $ 31.97 per square​ yard?
The product of any number and zero is zero??? ​
Jack jogged at an average speed of 12 kilometer per hour from his home to the nearby park and joggedback at an average of 7 km/ hour with the same route. If he
New Ta i-Ready Practice: Equivalent Ratios-Quiz-Level F Complete the statement to show an equivalent ratio. 7:5 is equivalent to 21:
Does Leah still attend the university or has she finally graduated? What are the 2 adverbs.
They Said, we We will not permit this".​
How did colonialism Impact and contribute India Present public health system
% of adult daily smokers who began to smoke by age 18 A) 80% B) 90% C) 95% D) 99%
Solve the equation 2x28x-1=0 by completing the square. Give your answers correct to 2 decimal places.
I am a neuron; from what part of the brain did I develop?