page-banner
Python M3-R5.1 MCQs SET-6
Q6.
वह विधि जो किसी दिए गए प्रारंभिक अवस्था से लेकर अंतिम अवस्था तक किसी कार्य को पूरा करने के लिए अच्छी तरह से परिभाषित निर्देशों की सूची का उपयोग करती है, उसे __________ कहा जाता है।<break-line><break-line>Method which uses a list of well-defined instructions to complete a task starting from a given initial state to end state is called __________.
A. Program
B. Algorithm
C. Flowchart
D. Both (A) and (C)
View Answer
Q7.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<break-line><break-line><pre><code>from math import factorial print(math.sqrt(25))</code></pre>
A. 5.0
B. Nothing is printed
C. Error, method sqrt doesn’t exist in math module
D. Error, the statement should be: print(sqrt(25))
View Answer
Q8.
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?<break-line><break-line>Which of the following operators has the highest precedence?
A. &
B. *
C. not
D. +
View Answer
Q9.
कथन 1 के लिए उत्तर चुनें।<break-line><break-line>Choose the answer for statement 1.<break-line><break-line><pre><code>import ___________ # statement 1 rec = [ ] while True: rn = int(input("Enter")) nm = input("Enter") temp = [rn, nm] rec.append(temp) ch = input("Enter choice (Y/N)") if ch.upper == "N": break f = open("stud.dat", "____________") #statement 2 __________ .dump(rec, f) #statement 3 _______.close( ) # statement 4</code></pre>
A. csv
B. load
C. pickle
D. unpickle
View Answer
Q10.
os.getlogin() क्या लौटाता है?<break-line><break-line>What does os.getlogin() return?
A. name of the current user logged in
B. gets a form to login as a different user
C. name of the superuser
D. all of the above
View Answer