35.9k views
25 votes
Given the arra

explorer", "testa", "hummer", "corvette", "civic", "mustang"), what is the element in index 2 A.corvette
B.hummer
C.explorer
D.tesla

User Ajaristi
by
3.3k points

1 Answer

10 votes

Answer: B. hummer

Step-by-step explanation:

Given the array :

Given the arra

("explorer", "testa", "hummer", "corvette", "civic", "mustang")

Array indexing usually begins from 0

That is ; the first element in the array is indexed as being in position 0

Using the given array as an example :

Index ____ element

0 ______ explorer

1 _______ tester

2 _______hummer

3 _______ corvette

4 _______ civic

5 _______ mustang

Hence, element in index 2 of the array is hummer

User Kyle Barbour
by
3.8k points