Q1.
कोड पर निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following code?
tuple1 = (5,1,7,6,2)
tuple1.pop(2)
print(tuple1)
A.
(5,1,6,2,)
B.
(5,1,7,6,)
C.
(5,1,7,6,)
D.
Error
View Answer
Correct Answer: Error
Q2.
एल्गोरिथम के सचित्र निरूपण को ___________ कहा जाता है
Pictorial representation of an algorithm is called as____________
A.
Statement
B.
Program
C.
Flow chart
D.
All the above
View Answer
Correct Answer: Flow chart
Q3.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
def display(b, n):
while n>0:
print(b, end='')
n=n-l
display('z', 3)
A.
zzz
B.
zz
C.
Infinite loop
D.
An exception is thrown
View Answer
Correct Answer: An exception is thrown
Q4.
फ्लो चार्ट के लिए कनेक्टर प्रतीक ___________ है
The connector symbol for flow chart is___________
A.
Circle
B.
Parallelogram
C.
Diamond
D.
All the above
View Answer
Correct Answer: Circle
Q5.
किसी फंक्शन के बाहर परिभाषित वेरिएबल को क्या कहा जाता है?
What is a variable defined outside a function referred to as?
A.
A static variable
B.
A global variable
C.
A local variable
D.
An automatic variable
View Answer
Correct Answer: A global variable
Q6.
रिकर्सिव फंक्शन है __________
Recursive function is____________
A.
A function that calls itself
B.
A function that calls other functions
C.
Both (A) and (B)
D.
None of the above
View Answer
Correct Answer: A function that calls itself
Q7.
लिस्ट में एक एलिमेंट (5) जोड़ने के लिए किस फंक्शन का उपयोग किया जाता है?
Which function is used to add an element (5) in the list?
A.
listl.sum(5)
B.
listl.add(5)
C.
listl.append(5)
D.
listl.addelement(5)
View Answer
Correct Answer: listl.append(5)
Q8.
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
What will be output for the following code?
import numpy as np
ary = np.array([1,2,3,5,8])
ary = ary + 1
print (ary[1])
View Answer
Correct Answer: 3
Q9.
बाइनरी फ़ाइल में जानकारी किस प्रारूप में होती है?
In which format does a Binary file contain information?
A.
Quick response code
B.
Same format in which the data is held in memory
C.
ASCII format
D.
Unicode format
View Answer
Correct Answer: Same format in which the data is held in memory
Q10.
पाइथॉन फाइल का सही एक्सटेंशन है __________
The correct extension of the Python file is____________
A.
.py
B.
.python
C.
.pyth
D.
None of these
View Answer
Correct Answer: .py
Q11.
डिबगिंग सॉफ्टवेयर में ___________ को ठीक करने की प्रक्रिया है।
Debugging is the process of fixing a _____________ in the software.
A.
procedure
B.
function
C.
bug
D.
None of these
View Answer
Correct Answer: bug
Q12.
निम्नलिखित में से कौन डिक्शनरी में key=tiger के लिए की-वैल्यू पेयर को डिलीट करेगा?
Which of the following will delete the key-value pair for key=tiger in the dictionary?
dic={"lion": "wild", "tiger": "wild", "cat": "domestic", "dog": "domestic"}
A.
del dic["tiger"]
B.
dic["tiger"].delete()
C.
delete(dic["tiger"])
D.
del(dic["tiger"])
View Answer
Correct Answer: del dic["tiger"]
Q13.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
d1={"abc":5,"def":6,"ghi":7}
print(d1[0])
A.
abc
B.
5
C.
{"abc":5}
D.
Error
View Answer
Correct Answer: Error
Q14.
पायथन भाषा में कोड के ब्लॉक को परिभाषित करने के लिए निम्न में से किसका प्रयोग किया जाता है?
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
Correct Answer: Indentation
Q15.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python 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))
A.
212 32
B.
9 27
C.
567 98
D.
none of the above
View Answer
Correct Answer: 9 27
Q16.
लूप के अंदर की सामग्री ______ द्वारा अलग की जाती है:
The contents inside the 'for loop' are separated by:
A.
colon
B.
semicolon
C.
comma
D.
hyphen
View Answer
Correct Answer: semicolon
Q17.
निम्न में से किसमें डाटा स्थायी रूप से स्टोर किया जाता है?
In which of the following, data is stored permanently?
A.
Variable
B.
File
C.
Both of the above
D.
None of the above
View Answer
Correct Answer: File
Q18.
______ सूचना को मानव पठनीय अर्थात ASCII या यूनिकोड वर्णो की एक स्ट्रीम के रूप में संग्रहित करती है।
A _______ stores information in the form of a stream of ASCII or Unicode characters, i.e., human readable.
A.
Text file
B.
Binary file
C.
Both (A) and (B)
D.
None of these
View Answer
Correct Answer: Text file
Q19.
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
What will be output for the following code?
import numpy as np
a = np.array([1,2,3,5,8])
print(a.ndim)
View Answer
Correct Answer: 1
Q20.
निम्नलिखित में से कौन सा पायथन में मान्य स्ट्रिंग मैनिपुलेशन फंक्शन है?
Which of the following are valid string manipulation functions in Python?
A.
count()
B.
strip()
C.
upper()
D.
All of the above
View Answer
Correct Answer: All of the above
Q21.
निम्नलिखित कथन में 'f' क्या है?
What is 'f' in the following statement?
f=open("Data.txt", "r")
A.
File Handle
B.
File Name
C.
Mode of file
D.
File Handling
View Answer
Correct Answer: File Handle
Q22.
फ्लो चार्ट और एल्गोरिदम का उपयोग __________ के लिए किया जाता है
Flow charts and Algorithms are used for__________
A.
Better Programming
B.
Optimized Coding
C.
Systematic testing
D.
All the above
View Answer
Correct Answer: All the above
Q23.
पायथन भाषा में, निम्नलिखित में से किसे वेरिएबल के रूप में परिभाषित नहीं किया जा सकता है?
In python language, which of the following cannot be defined as a variable?
A.
_ val
B.
try
C.
val
D.
_ try _
View Answer
Correct Answer: try
Q24.
बाइनरी मोड में डेटा लिखने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
Which function is used to write data in binary mode?
A.
write
B.
dump
C.
writelines
D.
pickle
View Answer
Correct Answer: dump
Q25.
निम्नलिखित कोड सेगमेंट क्या प्रिंट करेगा?
What will the following code segment print?
if True or True:
if False and True or False:
print('A')
elif False and False or True and True:
print('B')
else:
print('C')
else:
print('D')
View Answer
Correct Answer: B