String in Python

1 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('abcdef'.partition('cd'))

2 / 168

Which of the following functions will return the string in all caps?
निम्नलिखित में से कौन सा फ़ंक्शन सभी बड़े अक्षरों में स्ट्रिंग लौटाएगा?

3 / 168

How can you remove leading whitespace characters from a string in Python?
आप पायथन में एक स्ट्रिंग से प्रमुख व्हाइटस्पेस वर्णों को कैसे हटा सकते हैं?

4 / 168

Which of the following functions will return the first three characters of a string s?
निम्नलिखित में से कौन सा फ़ंक्शन स्ट्रिंग एस के पहले तीन अक्षर लौटाएगा?

5 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('Hello!2@#World'.istitle())

6 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('cd'.partition('cd'))

7 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print(''''''.isspace())

8 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
>>>example = "snow world"
>>>print("%s" % example[4:7])

9 / 168

Which method is used to find the index of the first occurrence of a substring in a string in Python?
पायथन में एक स्ट्रिंग में सबस्ट्रिंग की पहली घटना के सूचकांक को खोजने के लिए किस विधि का उपयोग किया जाता है?

10 / 168

What is the output of "python".capitalize()?
"पायथन.कैपिटलाइज़() का आउटपुट क्या है?

11 / 168

What does the swapcase() method do in Python string manipulation?
पायथन स्ट्रिंग मैनिपुलेशन में स्वैपकेस () विधि क्या करती है?

12 / 168

How can you check if a string ends with a specific substring in Python?
आप कैसे जांच सकते हैं कि पाइथन में एक स्ट्रिंग एक विशिष्ट सबस्ट्रिंग के साथ समाप्त होती है या नहीं?

13 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
>>>str1="helloworld"
>>>str1[::-1]

14 / 168

What is the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या है?
string = "Hello, World!"
print(len(string))

15 / 168

What will be the output of the following Python statement?(python 3.xx)
निम्नलिखित पायथन स्टेटमेंट का आउटपुट क्या होगा? (पायथन 3.xx)
>>>print(format("Welcome", "10s"), end = '#')
>>>print(format(111, "4d"), end = '#')
>>>print(format(924.656, "3.2f"))

16 / 168

What does the strip() method do in Python string manipulation?
पायथन स्ट्रिंग मैनिपुलेशन में स्ट्रिप() विधि क्या करती है?

17 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("xyyzxyzxzxyy".count('yy'))

18 / 168

What is the output of "Python"[::-1]?
"पायथन"[::-1] का आउटपुट क्या है?

19 / 168

How can you check if a string is empty in Python?
आप कैसे जांच सकते हैं कि पाइथॉन में कोई स्ट्रिंग खाली है या नहीं?

20 / 168

What does the isalpha() method do in Python string manipulation?
पाइथन स्ट्रिंग मैनिपुलेशन में isalpha() विधि क्या करती है?

21 / 168

Which method should I use to convert String "Python programming is fun" to "Python Programming Is Fun" ?
स्ट्रिंग "पायथन प्रोग्रामिंग मजेदार है" को "पायथन प्रोग्रामिंग मजेदार है" में बदलने के लिए मुझे किस विधि का उपयोग करना चाहिए?

22 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
>>>print("D", end = ' ')
>>>print("C", end = ' ')
>>>print("B", end = ' ')
>>>print("A", end = ' ')

23 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('xyyxyyxyxyxxy'.replace('xy', '12', 0))

24 / 168

To concatenate two strings to a third what statements are applicable?
दो string को तीसरे में जोड़ने के लिए कौन से कथन लागू होते हैं?

25 / 168

What will be the output of the following Python statement?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या है?
>>>chr(ord('A'))

26 / 168

How do you replace "Python" with "Java" in the string "I love Python"?
आप "आई लव पाइथॉन" स्ट्रिंग में "पायथन" को "जावा" से कैसे बदलते हैं?

27 / 168

What will be the output of the “hello” +1+2+3?
"हैलो" +1+2+3 का आउटपुट क्या होगा?

28 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('abc'.encode())

29 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('ab,12'.isalnum())

30 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('ab12'.isalnum())

31 / 168

How can you check if a string starts with a specific substring in Python?
आप कैसे जांच सकते हैं कि पाइथन में एक स्ट्रिंग एक विशिष्ट सबस्ट्रिंग से शुरू होती है या नहीं?

32 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("abc. DEF".capitalize())

33 / 168

What does "Hello" + "World" return in Python?
पायथन में "हैलो" + "वर्ल्ड" क्या लौटाता है?

34 / 168

Which method is used to convert the first character of a string to uppercase in Python?
पायथन में स्ट्रिंग के पहले अक्षर को अपरकेस में बदलने के लिए किस विधि का उपयोग किया जाता है?

35 / 168

What is slicing in Python?
पायथन में स्लाइसिंग क्या है?

36 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('__foo__'.isidentifier())

37 / 168

What is printed by the following statements?
निम्नलिखित कथनों से क्या प्रिंट होता है?
animal = "dog"
print("animal " + "animal")

38 / 168

What is printed by the following statements:
निम्नलिखित कथनों से क्या प्रिंट होता है:
s = "Rose"
s[1] = "i"
print(s)

39 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
>>>example = "snow world"
>>>example[3] = 's'
>>>print example

40 / 168

How can you check if a string contains a specific substring in Python?
आप कैसे जांच सकते हैं कि पायथन में एक स्ट्रिंग में एक विशिष्ट सबस्ट्रिंग है या नहीं?

41 / 168

What does str(123) return?
str(123) क्या लौटाता है?

42 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("xyyzxyzxzxyy".count('yy', 2))

43 / 168

What will be the output of the following Python statement?
निम्नलिखित पायथन स्टेटमेंट का आउटपुट क्या होगा?
>>> print('x\97\x98')

44 / 168

How do you create a string in Python?
आप पायथन में एक स्ट्रिंग कैसे बनाते हैं?

45 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('abcefd'.replace('cd', '12'))

46 / 168

What is the result of 'Py' * 3 in Python?
पायथन में 'पाइय'*3 का परिणाम क्या है?

47 / 168

What does the join() method do in Python string manipulation?
पायथन स्ट्रिंग मैनिपुलेशन में जॉइन() विधि क्या करती है?

48 / 168

What is printed by the following statements?
निम्नलिखित कथनों से क्या प्रिंट होता है?
s = "python rocks"
print(s[3])

49 / 168

What is the output of "PYTHON".lower()?
"PYTHON.lower()" का आउटपुट क्या है?

50 / 168

What is the output of len("Python")?
लेन ("पायथन") का आउटपुट क्या है?

51 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("xyyzxyzxzxyy".count('yy', 1))

52 / 168

Which of the following statement prints hello\example\test.txt?
निम्नलिखित में से कौन सा कथन hello\example\test.txt प्रिंट करता है?

53 / 168

Guess the correct output of the following String operations.
निम्नलिखित स्ट्रिंग ऑपरेशन के सही आउटपुट का अनुमान लगाएं।
str1 = 'Wah'
print(str1*2)

54 / 168

What is “Hello”.replace(“l”, “e”)?

55 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('1@ a'.isprintable())

56 / 168

What will be the output of the following Python statement?
निम्नलिखित पायथन स्टेटमेंट का आउटपुट क्या होगा?
>>>print(chr(ord('b')+1))

57 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('abcdefcdghcd'.split('cd', -1))

58 / 168

which of the following is not a legal string operator?
निम्नलिखित में से कौन सा कानूनी स्ट्रिंग ऑपरेटर नहीं है?

59 / 168

What is the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या है?
string = "Hello, World!"
print(string[::-1])

60 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('a B'.isalpha())

61 / 168

What will be the output of the following Python statement?
निम्नलिखित पायथन स्टेटमेंट का आउटपुट क्या होगा?
>>>"abcd"[2:]

62 / 168

What is the output of the following string operation?
निम्नलिखित स्ट्रिंग ऑपरेशन का आउटपुट क्या है?
str = "My roll no. is 12"
print(str.isalnum())

63 / 168

Given a string example=”hello” what is the output of example.count(‘l’)?
एक स्ट्रिंग example=”hello” को देखते हुए example.count('l') का आउटपुट क्या है?

64 / 168

Which method is used to convert all characters in a string to lowercase in Python?
पायथन में स्ट्रिंग के सभी अक्षरों को लोअरकेस में बदलने के लिए किस विधि का उपयोग किया जाता है?

65 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('abcd'.partition('cd'))

66 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('1Rn@'.lower())

67 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('a@ 1,'.islower())

68 / 168

What is printed by the following statements:
निम्नलिखित कथनों से क्या प्रिंट है:
s = "ball"
r = ""
for item in s:
r = item.upper() + r
print(r)

69 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('ab cd ef'.title())

70 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('xyyzxxyxyy'.lstrip('xyy'))

71 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('xyyxyyxyxyxxy'.replace('xy', '12', 100))

72 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('xyxxyyzxxy'.lstrip('xyy'))

73 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("abcdef".find("cd") == "cd" in "abcdef")

74 / 168

Suppose i is 5 and j is 4, i + j is same as ________
मान लीजिए i 5 है और j 4 है, i + j ________ के समान है

75 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('abc'.islower())

76 / 168

How can you check if all characters in a string are digits in Python?
आप कैसे जांच सकते हैं कि पायथन में एक स्ट्रिंग के सभी अक्षर अंक हैं या नहीं?

77 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("ccdcddcd".find("c"))

78 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
string = "Hello, World!"
print(string.partition(","))

79 / 168

What will be printed when the following executes?
निम्नलिखित निष्पादित होने पर क्या प्रिंट किया जाएगा?
str = "His shirt is red"
pos = str.find("is")
print(pos)

80 / 168

What arithmetic operators cannot be used with strings?
कौन से अंकगणित ऑपरेटरों का उपयोग स्ट्रिंग के साथ नहीं किया जा सकता है?

81 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("abcdef".find("cd"))

82 / 168

How do you access the first character of a string?
आप किसी स्ट्रिंग के पहले अक्षर तक कैसे पहुँचते हैं?

83 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
str1= “Application”
str2=str1.replace(‘a’,’A’)
print(str2)

84 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('ab\ncd\nef'.splitlines())

85 / 168

What does the replace() method do in Python string manipulation?
पायथन स्ट्रिंग मैनिपुलेशन में रिप्लेस() विधि क्या करती है?

86 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('\t'.isspace())

87 / 168

How can you extract the last two characters from a string in Python?
आप पायथन में एक स्ट्रिंग से अंतिम दो अक्षर कैसे निकाल सकते हैं?

88 / 168

Which of the following functions will raise an error if the given substring is not found in the string?
यदि दिया गया सबस्ट्रिंग स्ट्रिंग में नहीं मिलता है तो निम्नलिखित में से कौन सा फ़ंक्शन त्रुटि उत्पन्न करेगा?

89 / 168

How would you extract "Pyt" from "Python" using slicing?
आप स्लाइसिंग का उपयोग करके "पायथन" से "पाइट" कैसे निकालेंगे?

90 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('Ab!2'.swapcase())

91 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('abcdefcdgh'.partition('cd'))

92 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
>>>example = "helle"
>>>example.find("e")

93 / 168

What is printed by the following statements?
निम्नलिखित कथनों से क्या प्रिंट होता है?
animal = "dog"
print("animal" + animal)

94 / 168

What is the output of '123'.isdigit()?
'123'.isdigit() का आउटपुट क्या है?

95 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('abcdefcdghcd'.split('cd', 2))

96 / 168

Which of the following functions will return a list containing all words of the string?
निम्नलिखित में से कौन सा फ़ंक्शन स्ट्रिंग के सभी शब्दों वाली एक सूची लौटाएगा?

97 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('ab'.isalpha())

98 / 168

What is the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या है?
string = "Hello, World!"
print(string.split(","))

99 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('for'.isidentifier())

100 / 168

Suppose x is 345.3546, what is format(x, “10.3f”) (_ indicates space).
मान लीजिए x 345.3546 है, प्रारूप क्या है (x, "10.3f") (_ स्थान इंगित करता है)।

101 / 168

What is the default value of encoding in encode()?
एन्कोड() में एन्कोडिंग का डिफ़ॉल्ट मान क्या है?

102 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("xyyzxyzxzxyy".count('xyy', 0, 100))

103 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
str1="6/4"
print("str1")

104 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('Hello World'.istitle())

105 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
>>>example = "helle"
>>>example.rfind("e")

106 / 168

Which method is used to check if a string contains only whitespace characters in Python?
यह जांचने के लिए किस विधि का उपयोग किया जाता है कि क्या पायथन में एक स्ट्रिंग में केवल व्हाइटस्पेस वर्ण हैं?

107 / 168

Select the correct output of the following String operations.
निम्नलिखित स्ट्रिंग ऑपरेशन के सही आउटपुट का चयन करें।
str1 = 'Waha'
print(str1[:3] + 'Bhyi' + str1[-3:])

108 / 168

Which of the following functions will return the total number of characters in a string?
निम्नलिखित में से कौन सा फ़ंक्शन एक स्ट्रिंग में वर्णों की कुल संख्या लौटाएगा?

109 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("abc DEF".capitalize())

110 / 168

What is printed by the following statements?
निम्नलिखित कथनों से क्या प्रिंट होता है?
s = "python rocks"
print(s[7:11] * 3)

111 / 168

What is printed by the following statements?
निम्नलिखित कथनों से क्या छपा है?
s = "python rocks"
print(s[1] * s.index("n"))

112 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("Hello {0} and {1}".format('foo', 'bin'))

113 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
>>>example="helloworld"
>>>example[::-1].startswith("d")

114 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('HelloWorld'.istitle())

115 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("ab\tcd\tef".expandtabs())

116 / 168

Which of the following functions removes all leading and trailing spaces from a string?
निम्नलिखित में से कौन सा फ़ंक्शन एक स्ट्रिंग से सभी आगे और पीछे वाले स्थानों को हटा देता है?

117 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("abcdef".center())

118 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
>>>print (r"\nhello")

119 / 168

What is the output of the following code?
निम्नलिखित कोड का परिणाम क्या है?
str1 = "Mission 999"
str2 = "999"
print(str1.isdigit(),str2.isdigit())

120 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('abcdef12'.replace('cd', '12'))

121 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("abcdef".center(0))

122 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('abcdefcdghcd'.split('cd', 0))

123 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('0xa'.isdigit())

124 / 168

What is the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या है?
string = "Hello, World!"
print(string[3:7])

125 / 168

What is the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या है?
string = "Hello, World!"
print(string.find("o"))

126 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('11'.isnumeric())

127 / 168

How can you concatenate two strings in Python?
आप पायथन में दो स्ट्रिंग्स को कैसे जोड़ सकते हैं?

128 / 168

Say s=”hello” what will be the return value of type(s)?
s=”hello” type(s) प्रकार का रिटर्न मान क्या होगा?

129 / 168

Suppose s is “\t\tWorld\n”, what is s.strip()?
मान लीजिए s "\t\tWorld\n" है, s.strip() क्या है?

130 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
>>>max("what are you")

131 / 168

What will be the output of the following Python statement?
निम्नलिखित पायथन स्टेटमेंट का आउटपुट क्या होगा?
>>>"a"+"bc"

132 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("xyyzxyzxzxyy".endswith("xyy", 0, 2))

133 / 168

Which method is used to convert a string to a list of characters in Python?
पायथन में एक स्ट्रिंग को वर्णों की सूची में बदलने के लिए किस विधि का उपयोग किया जाता है?

134 / 168

How do you check if a string contains a particular substring?
आप कैसे जांचेंगे कि किसी स्ट्रिंग में कोई विशेष सबस्ट्रिंग है या नहीं?

135 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('1.1'.isnumeric())

136 / 168

To return the length of string s what command do we execute?
स्ट्रिंग की लंबाई वापस करने के लिए हम कौन सा कमांड निष्पादित करते हैं?

137 / 168

What is the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या है?
string = " Hello, World! "
print(string.strip())

138 / 168

What is the output of "Python".find("p")?
"Python.find("p") का आउटपुट क्या है?

139 / 168

Which method is used to split a string into a list of substrings based on a delimiter in Python?
पायथन में एक डिलीमीटर के आधार पर एक स्ट्रिंग को सबस्ट्रिंग की सूची में विभाजित करने के लिए किस विधि का उपयोग किया जाता है?

140 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("xyyzxyzxzxyy".endswith("xyy"))

141 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('ab cd-ef'.title())

142 / 168

How do you get the ASCII value of a character in Python?
आप पायथन में किसी कैरेक्टर का ASCII मान कैसे प्राप्त करते हैं?

143 / 168

What does the title() method do in Python string manipulation?
पायथन स्ट्रिंग मैनिपुलेशन में title() विधि क्या करती है?

144 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('my_string'.isidentifier())

145 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("xyyzxyzxzxyy".count('xyy', 2, 11))

146 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('''
\tfoo'''.lstrip())

147 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('abef'.partition('cd'))

148 / 168

What is string immutability in Python?
पाइथॉन में स्ट्रिंग अपरिवर्तनीयता क्या है?

149 / 168

What will be displayed by print(ord(‘b’) – ord(‘a’))?
print(ord('b') – ord('a')) द्वारा क्या प्रदर्शित किया जाएगा?

150 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('abef'.replace('cd', '12'))

151 / 168

What does ' '.join(['Python', 'is', 'awesome']) return?
''.join(['Python', 'is', 'awesome']) क्या लौटाता है?

152 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print(''.isdigit())

153 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print(0xA + 0xB + 0xC)

154 / 168

Which of the following functions will return the last three characters of a string s?
निम्नलिखित में से कौन सा फ़ंक्शन स्ट्रिंग एस के अंतिम तीन अक्षर लौटाएगा?

155 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("xyyzxyzxzxyy".count('xyy', -10, -1))

156 / 168

What is printed by the following statements?
निम्नलिखित कथनों से क्या प्रिंट होता है?
s = "python is awesome"
print(s[2] + s[-5])

157 / 168

What function do you use to read a string?
आप किसी स्ट्रिंग को पढ़ने के लिए किस फ़ंक्शन का उपयोग करते हैं?

158 / 168

What is the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या है?
string = "Hello, World!"
print(string.replace("World", "Python"))

159 / 168

The format function, when applied on a string returns ___________
स्ट्रिंग पर लागू होने पर प्रारूप फ़ंक्शन ___________ लौटाता है

160 / 168

Which of the following functions will return the string with every 'P' replaced with a 'z'?
निम्नलिखित में से कौन सा फ़ंक्शन प्रत्येक 'P' को 'z' से प्रतिस्थापित करके स्ट्रिंग लौटाएगा?

161 / 168

What does the following Python code snippet do?
निम्नलिखित पायथन कोड स्निपेट क्या करता है?
string = "Hello, World!"
print(string.upper())

162 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
str1=”information”
print(str1[2:8])

163 / 168

What does the isdigit() method do in Python string manipulation?
पायथन स्ट्रिंग मैनिपुलेशन में isdigit() विधि क्या करती है?

164 / 168

What is the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या है?
string = "Hello, World!"
print(string.capitalize())

165 / 168

Select the correct output of the following String operations.
निम्नलिखित स्ट्रिंग ऑपरेशन के सही आउटपुट का चयन करें।
str = "my name is Anu John"
print(str.capitalize())

166 / 168

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('abcdefcdghcd'.split('cd'))

167 / 168

What will be the output of the following Python statement?
निम्नलिखित पायथन स्टेटमेंट का आउटपुट क्या होगा?
>>>print('new' 'line')

168 / 168

What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
>>> str1 = 'hello'
>>> str2 = ','
>>> str3 = 'world'
>>> str1[-1:]

Your score is

The average score is 63%

0%