Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
medium Solved by 5 students

String IndexOf Method

Mark
< Prev
Next >

If the string variable s is assigned the value “banana”, what is returned by the expression s.indexOf('a')?

A

1

B

3

C

2

D

0

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1soniahalepota200523 0m 39s 151
#2rpatton11 0m 43s 57
#3afeldman061012 0m 38s 52
#4mahmoudjibrin0801 0m 09s -19
#5gtsak3111 2m 01s -21
#6bhavneet.singhal12 2m 12s -42
#7tianbo.shen01 1m 29s -99
Items per page:
10
1 – 7 of 7

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|