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

Find the exact solutions to x2-3x+1-0 by using the Quadratic Formulal
Ruby works in a bike shop where she makes repairs. She needs to order tires for bikes and quads, which have different kinds of tires. Write an expression that r
Which equation is nonlinear? x=-4 y= 0 y= 2/3x- 2 y= ײ +1
What is the area of a circle with a radius of 4.6Area:
name each angle pair as corresponding, alternate Interior, alternate exterior, consecutive interior angles, or no relationship. Identify the transversal that co
What is the slope of the line y= -2x+3 A. 3B. 2C. -2D. -3
Which of the following is not a Pythagorean Triple? 0 25, 45, 51 O 3, 4, 5 O 15, 20, 25 021, 72, 75 O 5, 12, 13
100 cm³ of a gas at 27°C is cooled to 20°C at constant pressure .Calculate the volume of gas at 20°C.
( 3y + 1 )( 3y - 1 )Determine each product
if 15 pizza cost $195. how much will 100 pizza cost?