आज हम आप के लिए लेकर आये है python string ke sabhi question in hindi इन सभी question को हल करने के बाद आप कि interview , Exam , और python के program बहुत अच्छे हो जाऐगे यह सभी प्रशन interview, exam और real life मे use होने वाले python program को देखते हुऐ तैयार किये गये है
A ()
B ""
C {}
D []
Answer: B ""
A str
B rep
C replace
D Remove
Answer: C replacep>
s = "this is a boy"
s = s.replace("boy","Girl")
print(s)दिये गये code का output क्या होगा
A this is a boy
B this is a Girl
C Error
D None of these
Answer: B this is a Girl
A string कि length बताता है
B कोई word कितनी बार आया है
C string के पहले word कि length बताता है
D इनमे से कोई नही
Answer: B कोई word कितनी बार आया है
A Replace()
B Indxing()
C Find()
D Split()
Answer: C Find()
A Lower()
B Capital()
C Upper()
D ABCuper()
Answer: C Upper()
A length()
B len()
C le()
D l()
Answer: B len()
A startswith()
B endwith()
C startwith()
D none of these
Answer: A startswith()
text = "this is bytedg company"दि गयी string का 5वाँ latter पता करने के लिऐ कौन सा code सही है
A print(text[4])
B print(text(4))
C print(text[5])
D print(text[3])
Answer: A print(text[4])strong>
A encode
B replace
C find
D append
Answer: D append