page-banner
Python M3-R5.1 MCQs SET-1
Q16.
एक स्ट्रिंग x="hello" को देखते हुए x.count ('l') का आउटपुट क्या होगा?<break-line><break-line>Given a string x="hello" What is the output of x.count('l')?
A. 2
B. 1
C. 0
D. इनमें से कोई नहीं / None
View Answer
Q17.
फ्लो चार्ट में पतंग/डायमंड प्रतीक का उपयोग _____ के लिए किया जाता है।<break-line><break-line>Kite/diamond symbol in a flow chart is used for _______.
A. निष्पादन / Execution
B. वक्तव्य / Statement
C. निर्णय / Decision
D. उपरोक्त सभी / All of the above
View Answer
Q18.
readlines() मेथड क्या रिटर्न करता है?<break-line><break-line>What does readlines() method return?
A. डिक्शनरी / Dictionary
B. स्ट्रिंग / String
C. ट्यूपल / Tuple
D. सूची / List
View Answer
Q19.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<break-line><break-line><pre><code>def func(a, b=5, c=10): print('a is', a, 'and b is', b, 'and c is', c) func(13, 17) func(a=2, c=4) func(5,7,9)</code></pre>
A. a is 13 and b is 15 and c is 10<break-line>a is 2 and b is 5 and c is 4<break-line>a is 5 and b is 7 and c is 9
B. a is 13 and b is 17 and c is 10<break-line>a is 2 and b is 4 and c is 4<break-line>a is 5 and b is 9 and c is 7
C. a is 13 and b is 17 and c is 10<break-line>a is 2 and b is 5 and c is 4<break-line>a is 5 and b is 7 and c is 9
D. इनमें से कोई नहीं / None of the above
View Answer
Q20.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<break-line><break-line><pre><code>list1 = [1, 3] list2 = list1 list1[0]=4 print(list2)</code></pre>
A. [1, 4]
B. [1, 3, 4]
C. [4, 3]
D. [1, 3]
View Answer