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

And five rounds of a game Judy scored -3, eight, four, -7, 13 what integer represents her average score for the five rounds
American Revolution Help!! What should I write?
Mark is in the market for a used car. He has found the same sports car at two different dealerships and is now considering which dealer he should purchase the c
My timetables and also my duzishin
3х – 12 = 5х – 31 How do I solve this
A rigid tank initially contains 1.4 kg saturated liquid water at 200◦C. At this state, 25 percent of the volumeis occupied by water and the rest by air. Now hea
If A and B are 6x5 matrices, and C is a 8 x 6 matrix, which of the following are defined? A.CT B.AC C.B+C D. A+B E. ABT F.CA
17,34,35,70,71,142,143,_,_,_ find the next three numbers
What is the difference between advertising and branding?
Who is Nephew of Hatshepsut