NIELIT O Level Exam

To return the length of string s what command do we execute?

To return the length of string s what command do we execute?

स्ट्रिंग की लेंथ रिटर्न करने के लिए हम किस कमांड को एक्सक्यूट करते हैं?

A. s.__len__()

B. len(s)

C. size(s)

D. s.size()




Correct Answer is :

B. len(s)



Explanation
Execute in shell to verify.
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad