page-banner
Python M3-R5.1 MCQs SET-1
Q1.
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<break-line><break-line><pre><code>M=['b'* x for x in range(4)] print(M)</code></pre>
A. [' ', 'b', 'bb', 'bbb']
B. ['b', 'bb', 'bbb','bbbb']
C. ['b', 'bb', 'bbb']
D. इनमें से कोई नहीं / None of these
View Answer
Q2.
निम्नलिखित का आउटपुट क्या है?<break-line><break-line>What is the output of the following code?<break-line><break-line><pre><code>print(max([1, 2, 3, 4], [4, 5, 6], [7]))</code></pre>
A. [4, 5, 6]
B. [7]
C. [1, 2, 3, 4]
D. 7
View Answer
Q3.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<break-line><break-line><pre><code>example = "helle" example.rfind("e")</code></pre>
A. 1
B. 2
C. 4
D. 5
View Answer
Q4.
निम्नलिखित स्यूडो कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following pseudo code?<break-line><break-line><pre><code>Integer a, b Set a = 10, b = 5 a = a mod (a - 6) b = b mod (b - 2) Print a - b</code></pre>
A. 4
B. 0
C. 1
D. 8
View Answer
Q5.
जब हम किसी फाइल को राइट मोड में खोलने का प्रयास करते हैं जो मौजूद नहीं है, तो निम्नलिखित में से कौन सी एरर आती है?<break-line><break-line>Which of the following error is returned when we try to open a file in write mode which does not exist?
A. फाइल फाउंड एरर / File Found Error
B. फाइल नॉट एग्जिस्ट एरर / File Not Exist Error
C. फाइल नॉट फाउंड एरर / File Not Found Error
D. इनमें से कोई नहीं / None of the above
View Answer