page-banner
Python M3-R5.1 MCQs SET-13
Q1.
निम्नलिखित सूड़ो कोड का आउटपुट क्या होगा?

What will be the output of the following pseudo-code ?
Integer a
Set a = 4
do
  print a + 2
  a = a - 1
while (a not equals 0)
end while
A. 6 6 6 6
B. 6 5 4 3
C. 6 7 8 9
D. 6 8 10 12
View Answer
Q2.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code ?
a = {1: "A", 2: "B", 3: "C"}
b = {4: "D", 5: "E"}
a.update(b)
print(a)
A. {1: 'A', 2: 'B', 3: 'C'}
B. {1: 'A', 2: 'B', 3: 'C', 4: 'D', 5: 'E'}
C. Error
D. {4: 'D', 5: 'E'}
View Answer
Q3.
एक एल्गोरिदम जो स्वयं को प्रत्यक्ष या अप्रत्यक्ष रूप से कॉल करता है, उसे __________ कहा जाता है।

An algorithm that calls itself directly or indirectly is called as __________.
A. Sub Function
B. Recursion
C. Reverse Polish Notation
D. Traversal Algorithm
View Answer
Q4.
randint( ) फ़ंक्शन का उपयोग करने के लिए कौन सा मॉड्यूल आयात किया जाना है?

Which module is to be imported for using randint( ) function ?
A. random
B. randrange
C. randomrange
D. rand
View Answer
Q5.
प्रोग्रामर की आवश्यकता के अनुसार किसी कार्य को प्राप्त करने के लिए परिभाषित फंक्शन को __________ कहा जाता है।

Function defined to achieve some task as per the programmer’s requirement is called a __________.
A. यूजर डिफाइंड फंक्शन /user defined function
B. लाइब्रेरी फंक्शन /library function
C. बिल्ट इन फंक्शन्स /built in functions
D. ऊपर के सभी।/All of the above.
View Answer

Create Account