Given the following array, which will return the index value of the element "tennis" and store it in a variable named tennis?

```
var sports = new Array("football", "baseball", "soccer",
"tennis", "basketball", "wrestling");
```

a.
```
tennis = 3;
```

b.
```
tennis = sports(3);
```

c.
```
tennis = sports.indexOf("tennis");
```

d. none of these


c.
```
tennis = sports.indexOf("tennis");
```

Computer Science & Information Technology

You might also like to view...

When a function A calls a function B, which in turn calls A, we have

A) direct recursion. B) indirect recursion. C) function call cycling. D) perfect recursion. E) None of the above

Computer Science & Information Technology

A control’s ____________ property identifies the control in the application’s code and in the Visual Studio environment.

a. Text b. Source c. Tag d. Name

Computer Science & Information Technology

A navigation form with only reports and another with only forms simplifies the navigation process through your database

Indicate whether the statement is true or false

Computer Science & Information Technology

Project Management Professional (PMP) tests knowledge of tasks required during system development.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology