page-banner
Chapter-3 Introduction to Python
Q16.
Python में string को float में बदलने के लिए कौन सा function प्रयोग किया जाता है?

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.
निम्नलिखित प्रोग्राम का आउटपुट क्या होगा?

What is the output of the following program?
print “Hello World”[::-1]
A. dlroWolleH
B. Hello Worl
C. d
D. Error
View Answer
Q18.
यदि string s="Welcome" है, तो निम्न में से कौन सा code गलत है?

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 की अधिकतम लंबाई की कोई सीमा नहीं है।

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 नाम है।

“1st_string” is a valid identifier name.
A. True
B. False
C. Can’t say
D. None of these
View Answer

Create Account