SarkariResultess QA Bank

String में substring check कैसे करते हैं? — interview में इसका सही जवाब क्या है?

Other 0 Views Verified
String में substring check कैसे करते हैं? — interview में इसका सही जवाब क्या है?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

text.contains('py')

text.contains('py')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

contains(text,'py')

contains(text,'py')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified Correct Answer

'py' in text

'py' in text
Additional Explanation
in membership test करता है।
Verified

text.has('py')

text.has('py')
Additional Explanation
यह विकल्प सही समाधान नहीं है।