Q.

To check whether string s1 contains another string s2, use                  

A. s1.    contains    (s2)
B. s2 in s1
C. s1.contains(s2)
D. si.in(s2)
Answer» A. s1.    contains    (s2)
Explanation: s2 in s1 works in the same way as calling the special function     contains     .
1.6k
0
Do you find this helpful?
1

Discussion

No comments yet