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
Correct Answer: 6 5 4 3
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
Correct Answer: {1: 'A', 2: 'B', 3: 'C', 4: 'D', 5: 'E'}
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
Correct Answer: Recursion
Q4.
randint( ) फ़ंक्शन का उपयोग करने के लिए कौन सा मॉड्यूल आयात किया जाना है?
Which module is to be imported for using randint( ) function ?
A.
random
B.
randrange
C.
randomrange
D.
rand
View Answer
Correct Answer: random
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
Correct Answer: यूजर डिफाइंड फंक्शन /user defined function
Q6.
निम्नलिखित में से कौन सा कीवर्ड नहीं है?
Which of the following is not a keyword ?
A.
eval
B.
nonlocal
C.
assert
D.
finally
View Answer
Correct Answer: eval
Q7.
निम्नलिखित स्यूडोकोड का आउटपुट क्या होगा, जहां ʌ XOR ऑपरेशन का प्रतिनिधित्व करता है?
What will be the output of the following pseudocode, where ʌ represent XOR operation ?Integer a, b, c
Set b = 4, a = 3
c = a ^ b
Print c
View Answer
Correct Answer: 7
Q8.
पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है?
Which statement is correct to import all modules from the package?
A.
from package import all
B.
from package import *
C.
from package include all
D.
from package include *
View Answer
Correct Answer: from package import *
Q9.
फ़्लोचार्ट और एल्गोरिदम का उपयोग __________ के लिए किया जाता है।
Flowchart and algorithms are used for __________.
A.
Better programming
B.
easy testing and debugging
C.
Efficient Coding
D.
All
View Answer
Correct Answer: All
Q10.
निम्न में से कौन सा वैध पहचानकर्ता नहीं है?
Which of the following is not a valid identifier?
A.
student
B.
s12
C.
123
D.
_123
View Answer
Correct Answer: 123
Q11.
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following?def iq(a,b):
if(a==0):
return b
else:
return iq(a-1,a+b)
print(iq(3,6))
View Answer
Correct Answer: 12
Q12.
सिंगल लाइन कमेंट लिखने के लिए किस सिंबल का प्रयोग किया जाता है?
Which symbol is used to write single line comment ?
View Answer
Correct Answer: #
Q13.
एक पायथन मॉड्यूल __________ फाइल एक्सटेंशन वाली एक फाइल है जिसमें वैध पायथन कोड होता है।
A Python module is a file with the __________ file extension that contains valid Python code.
A.
.pym
B.
.pymodule
C.
.module
D.
.py
View Answer
Correct Answer: .py
Q14.
निम्नलिखित कोड खंड क्या प्रिंट करेगा?
What will following code segment print ?a = True
b = False
c = False
if not a or b:
print(1)
elif not a or not b and c:
print (2)
elif not a or b or not b and a:
print (3)
else:
print (4)
View Answer
Correct Answer: 3
Q15.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?
What will be the output after the following statements?x = 2
if x < 5:
print(x)
else:
pass
A.
2 3 4
B.
1 2 3 4
C.
2
D.
None of these
View Answer
Correct Answer: 2
Q16.
निम्नलिखित सूडो कोड का आउटपुट क्या होगा?
What will be the output of the following pseudo codeInteger a, b
Set a = 9, b = 5
a = a mod (a - 3)
b = b mod (b - 3)
Print a + b
View Answer
Correct Answer: 4
Q17.
फ्लो चार्ट में इनपुट और आउटपुट ऑपरेशंस के लिए निम्न में से कौन सा प्रतीक प्रयोग किया जाता है?
Which of the following symbol is used for input and output operations in a flow chart ?
A.
Rectangle
B.
Parallelogram
C.
Circle
D.
Diamond
View Answer
Correct Answer: Parallelogram
Q18.
__________ वर्तमान लूप पुनरावृत्ति को तुरंत समाप्त कर देता है।
__________ immediately terminates the current loop iteration.
A.
break
B.
pass
C.
continue
D.
None of these
View Answer
Correct Answer: break
Q19.
हम पायथन में एक खाली सूची कैसे बना सकते हैं?
How can we create an empty list in Python ?
A.
list=()
B.
list.null
C.
null.list
D.
list=[ ]
View Answer
Correct Answer: list=[ ]
Q20.
निम्न में से कौन सा एक परिवर्तनशील डेटा प्रकार है?
Which one of the following is a mutable data type ?
A.
set
B.
tuple
C.
String
D.
None of these
View Answer
Correct Answer: set