page-banner
Python M3-R5.1 MCQs SET-2
Q6.
fun1() का सही फंक्शन डिक्लेरेशन चुनें ताकि हम निम्नलिखित दो फंक्शन कॉल्स को सफलतापूर्वक निष्पादित कर सकें।<break-line><break-line>Choose the correct function declaration of fun1() so that we can execute the following two function calls successfully.<break-line><break-line><pre><code>fun1(25, 75, 55) fun1(10, 20)</code></pre>
A. def fun1(**kwargs)
B. def fun1(*args)
C. No, it is not possible in Python
D. def fun1(*data)
View Answer
Q7.
असेम्बली भाषा को मशीनी भाषा में बदलने के लिए किस अनुवादक का प्रयोग किया जाता है?<break-line><break-line>Which translator is used to convert assembly language into machine language?
A. कंपाइलर / Compiler
B. इंटरप्रेटर / Interpreter
C. असेम्बलर / Assembler
D. इनमें से कोई नहीं / None of these
View Answer
Q8.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<break-line><break-line><pre><code>x = 'abcd' for i in x: print(i.upper())</code></pre>
A. a BCD
B. Error
C. a b c d
D. ABCD
View Answer
Q9.
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following code snippet?<break-line><break-line><pre><code>from math import * a = 2.19 b = 3.999999 c = -3.30 print(int(a), floor(b), ceil(c), fabs(c))</code></pre>
A. 23 -3 3.3
B. 23 -3 3
C. 34 -3 3
D. 2 3 -3 3.3
View Answer
Q10.
अन्य मॉड्यूल में किसी मॉड्यूल का उपयोग करने के लिए आपको उस ______ स्टेटमेंट का उपयोग करके इम्पोर्ट करना होगा।<break-line><break-line>To use a module in another module, you must import it using an __________ statement.
A. import
B. include
C. both (A) and (B)
D. none of the above
View Answer