page-banner
Python M3-R5.1 MCQs SET-4
Q11.
डिबगिंग सॉफ्टवेयर में ___________ को ठीक करने की प्रक्रिया है।<break-line><break-line>Debugging is the process of fixing a _____________ in the software.
A. procedure
B. function
C. bug
D. None of these
View Answer
Q12.
निम्नलिखित में से कौन डिक्शनरी में key=tiger के लिए की-वैल्यू पेयर को डिलीट करेगा?<break-line><break-line>Which of the following will delete the key-value pair for key=tiger in the dictionary?<break-line><break-line><pre><code>dic={"lion": "wild", "tiger": "wild", "cat": "domestic", "dog": "domestic"}</code></pre>
A. del dic["tiger"]
B. dic["tiger"].delete()
C. delete(dic["tiger"])
D. del(dic["tiger"])
View Answer
Q13.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<break-line><break-line><pre><code>d1={"abc":5,"def":6,"ghi":7} print(d1[0])</code></pre>
A. abc
B. 5
C. {"abc":5}
D. Error
View Answer
Q14.
पायथन भाषा में कोड के ब्लॉक को परिभाषित करने के लिए निम्न में से किसका प्रयोग किया जाता है?<break-line><break-line>Which of the following is used to define a block of code in Python language?
A. try
B. Indentation
C. Brackets
D. Catch
View Answer
Q15.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<break-line><break-line><pre><code>def power(x, y=2): r = 1 for i in range(y): r = r * x return r print(power(3)) print(power(3,3))</code></pre>
A. 212 32
B. 9 27
C. 567 98
D. none of the above
View Answer