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

Identify and describe three codes of laws or other legal documents that have influenced modern democracy
When a lamp is turned on only about 10%of the energy is transformed into light what happens to the rest of the energy
i don’t know how to answer this so look at the pic
An organism that is eukaryotic, multicellular, and lacks a cell wall would be classified in which kingdom? Fungi Plantae Archaebacteria Eubacteria Protista Anim
what was true about the Chinese exclusion act?
What countries have the unitary system
​vinyl lynings, inc. contracts to resurface the insides of the pools at waterworld park. vinyl lynings knows that without the resurfacing, waterworld will have
I am of a number. If you multiply my number by 4, add -4 to the product, and then take 1/3 of the sum, the result is -6. Find my number
An angle is drawn in standard position passing through the unit circle at (0.643,0.766). The angle in standard position θ has a measure of 50°. What is cos50°?
A rectangle has an area of 20 square feet a similar rectangle has an area of 180 square feet what is ratio of the areas of these similar rectangles