• Login via
  • or
  • New here ?

After the following code fragment, what is the value in fname? String str; int fname; str = “Foolish boy.”; fname = str.indexOf(“fool”)

A.0
B.2
C. -1
D.4
Answer and Feedback
Answer:C

do you want?

view more test

Share this post

Some other questions you may be interested in.

Loading...