page-banner
Chapter-3 Introduction to Python
Q16.
Python में string को float में बदलने के लिए कौन सा function प्रयोग किया जाता है?<break-line><break-line>Which of the following functions converts a string to a float in Python?
A. int(x [,base])
B. long(x [,base])
C. float(x)
D. str(x)
View Answer
Q17.
निम्नलिखित प्रोग्राम का आउटपुट क्या होगा?<break-line><break-line>What is the output of the following program?<pre><code>print “Hello World”[::-1]</code></pre>
A. dlroWolleH
B. Hello Worl
C. d
D. Error
View Answer
Q18.
यदि string s="Welcome" है, तो निम्न में से कौन सा code गलत है?<break-line><break-line>Given a string s="Welcome", which of the following code is incorrect?
A. print s[0]
B. print s.lower()
C. s[1]='r'
D. print s.strip()
View Answer
Q19.
Python में identifier की अधिकतम लंबाई की कोई सीमा नहीं है।<break-line><break-line>There is no maximum possible length of an identifier in Python.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q20.
“1st_string” एक valid identifier नाम है।<break-line><break-line>“1st_string” is a valid identifier name.
A. True
B. False
C. Can’t say
D. None of these
View Answer