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

The length of a rectangular photo is 1 centimeter less than three times its width. If the area of the photo is 102 square centimeters, find the length and width
Which of the following shows an example of how family can influence your eating habits or relationship with food?A. Lee's home is 45 minutes from the nearest g
May somebody help do this please??
[2] (c) Another bag contains 15 red beads and 10 yellow beads. Ariana picks a bead at random, records its colour and replaces it in the bag. She then picks anot
Why do you say that the child's sex role identify is acquired through socialization and not determined by his or her genes? ​
Why is the Great Wall of China so famous in the world?
what are the importance of mt everest and pashupatinath temple​
List the coordinates for the plotted points A, B, C, and D.
Quan điểm cho rằng:"đến một thời gian nào đó con người có khả năng phát huy hết năng lực nhận thức được tính vô tận ,tuyệt đối cà vĩnh viễn của thế giới".quan đ
the perimeter of a square room is 48m,how much square carpet is requried to cover it ?​