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 generally a safe frequency of activity for a workout? (1 point)
what is the range of f(x) = – 4?
whats the central idea of this article Down and Dirty: Do Men and Women Perceive Cleanliness Differently?
he likes reading, hunting, and to play basketball. which of the following rewrites makes the sentence parallel? a. he likes reading, hunting, and playing basket
what is the probability of picking an s in the word mississippi
how can you tell that a piece of writing is in the first person? a. the writer uses the pronouns he, she, or it. b. the writer uses the pronouns they, them, or
write each ratio in simplest form.1.1.4/7
if hjk is similar to pqr, the angles of hjk must be congruent to the corresponding angles of pqr. true or false?
what is the benefit of an uneven production of gametes in oogensis?
A model jet is fired up in the air from a 16-foot platform with an initial upward velocity of 52 feet per second. The height of the jet above ground after t sec