page-banner
Python M3-R5.1 MCQs SET-16
Q16.
निम्नलिखित पायथन स्टेटमेंट का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python statement?<pre><code>"abcd"[2:]</code></pre>
A. a
B. ab
C. cd
D. dc
View Answer
Q17.
आप वेरिएबल a को लंबाई 1 का टपल कैसे असाइन करते हैं?<break-line><break-line>How do you assign a tuple of length 1 to the variable a?
A. a = (1,)
B. a = 1,
C. a = [1]
D. a = tuple(1)
View Answer
Q18.
निम्नलिखित में से कौन सा Python में गलत वेरिएबल नाम है?<break-line><break-line>Which of the following is incorrect variable name in Python?
A. variable_1
B. variable1
C. 1variable
D. _variable
View Answer
Q19.
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?<break-line><break-line>What will be the output of following Python code snippet?<pre><code>for i in range(0, -2, -1): print(i)</code></pre>
A. 0, -1
B. 0, -1, -1
C. -1, -2
D. Error
View Answer
Q20.
पाइथॉन लैंग्वेज में फाइल खोलने के लिए ......... फंक्शन का प्रयोग किया जाता है।<break-line><break-line>To open a file in python language ................. function is used.
A. Begin()
B. reate()
C. Open()
D. File()
View Answer