Q1.
__________ उपयोगकर्ता प्रलेखन का हिस्सा है।
__________ is part of user documentation.
A.
Class Diagram
B.
Code Comment
C.
Use Case
D.
Installation Guide
View Answer
Correct Answer: Installation Guide
Q2.
आउटपुट निर्धारित करें:
Determine the output :
for i in range(20,30,10) :
j=i/2
print(j)
A.
10 15
B.
10.0 15.0
C.
10.0
D.
None of these
View Answer
Correct Answer: 10.0
Q3.
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following ?
import numpy as np
print(np.minimum([2, 3, 4], [1, 5, 2]))
A.
[1 2 5]
B.
[1 5 2]
C.
[2 3 4]
D.
[1 3 2]
View Answer
Correct Answer: [1 3 2]
Q4.
आइडेंटिफायर के साथ डील करते समय पाइथन केस सेंसिटिव होता है।
Python is a case sensitive language when dealing with identifiers.
A.
True
B.
False
C.
Sometimes
D.
Never
View Answer
Correct Answer: True
Q5.
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))
A.
True True False True
B.
False True False True
C.
False False False True
D.
False True True True
View Answer
Correct Answer: False True True True
Q6.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
def C2F(c):
return c*9/5+32
print (C2F(100))
print (C2F(0))
A.
212.0, 32.0
B.
314, 24
C.
567, 98
D.
None of the above
View Answer
Correct Answer: 212.0, 32.0
Q7.
किसी विशेष कार्य को दोहराने के लिए हम __________ का प्रयोग करते हैं।
To repeat a particular task, we use __________.
A.
Input
B.
Loop
C.
Output
D.
Condition
View Answer
Correct Answer: Loop
Q8.
निम्नलिखित में से कौन सा कथन अंत में निष्पादित होगा?
Which of the following statement will execute last ?
def s(n1): # Statement 1
print(n1) # Statement 2
n2=4 # Statement 3
s(n2) # Statement 4
A.
Statement 1
B.
Statement 2
C.
Statement 3
D.
Statement 4
View Answer
Correct Answer: Statement 2
Q9.
फ्लोचार्टिंग में वास्तविक निर्देश __________ में दर्शाए जाते हैं।
Actual instructions in flowcharting are represented in __________.
A.
Circles
B.
Boxes
C.
Arrows
D.
Lines
View Answer
Correct Answer: Boxes
Q10.
निम्नलिखित का आउटपुट क्या है?
What is the output of the following ?
x = 'abcd'
for i in range(len(x)):
i.upper()
print(x)
A.
a b c d
B.
0 1 2 3
C.
error
D.
none of the mentioned
View Answer
Correct Answer: none of the mentioned
Q11.
numpy array के डाटा टाइप को खोजने के लिए किस एट्रिब्यूट का प्रयोग किया जाता है ?
Which attribute is used to find the data type of numpy array?
A.
type(array)
B.
dtype
C.
objects.type(array)
D.
numpy(type)
View Answer
Correct Answer: dtype
Q12.
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
What will be output for the following code ?
import numpy as np
a = np.array([1,2,1,5,8])
b = np.array([0,1,5,4,2])
c = a + b
c = c*a
print(c[2])
A.
6
B.
10
C.
Zero
D.
None of these
View Answer
Correct Answer: 6
Q13.
नीचे दिए गए प्रोग्राम का आउटपुट क्या है?
What is the output of the below program ?
def func(a, b=5, c=10):
print('a is', a, 'and b is', b, 'and c is', c)
func(3, 7)
func(25, c=24)
func(c=50, a=100)
A.
a is 7 and b is 3 and c is 10
a is 25 and b is 5 and c is 24
a is 5 and b is 100 and c is 50
B.
a is 3 and b is 7 and c is 10
a is 5 and b is 25 and c is 24
a is 50 and b is 100 and c is 5
C.
a is 3 and b is 7 and c is 10
a is 25 and b is 5 and c is 24
a is 100 and b is 5 and c is 50
D.
None of the mentioned
View Answer
Correct Answer: a is 3 and b is 7 and c is 10
a is 25 and b is 5 and c is 24
a is 100 and b is 5 and c is 50
Q14.
कोई भी एल्गोरिथम उचित सिंटैक्स के अनुसार लिखा गया प्रोग्राम है।
Any algorithm is a program written according to proper syntax.
A.
True
B.
False
C.
Can’t say
D.
May be
View Answer
Correct Answer: False
Q15.
सीएसवी का फुल फॉर्म क्या होता है?
What is full form of CSV?
A.
Comma Separation Value
B.
Comma Separated Variable
C.
Comma Separated Values
D.
Common Syntax Value
View Answer
Correct Answer: Comma Separated Values
Q16.
निम्नलिखित में से कौन सा पायथन में एक कीवर्ड नहीं है?
Which of the following is not a keyword in python?
A.
return
B.
in
C.
False
D.
false
View Answer
Correct Answer: false
Q17.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
x = 50
def func(x):
print('x is', x)
x = 2
print('Changed local x to', x)
func(x)
A.
print('x is now', x)x is 50 Changed local x to 2x is now 50
B.
x is 50 Changed local x to 2x is now 2
C.
x is 50 Changed local x to 2x is now 100
D.
None of the mentioned
View Answer
Correct Answer: x is 50 Changed local x to 2x is now 2
Q18.
कथन 3 के लिए उत्तर चुनें।
Choose the answer for statement 3.
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
f.close() # statement 4
A.
unpickle
B.
pickle
C.
write
D.
None of the above
View Answer
Correct Answer: pickle
Q19.
निम्नलिखित छद्म कोड का आउटपुट क्या होगा?
What will be the output of the following pseudo-code ?
Integer a
Set a = 5
do
print a - 2
a = a - 1
while (a != 0)
end while
A.
5 3 0
B.
3 0
C.
infinite loop
D.
None of these
View Answer
Correct Answer: None of these
Q20.
रवि ने open( ) फ़ंक्शन का उपयोग करके python में एक फ़ाइल खोली लेकिन मोड निर्दिष्ट करना भूल गया। फाइल किस मोड में खुलेगी?
Ravi opened a file in python using open() function but forgot to specify the mode. In which mode the file will open?
A.
write
B.
append
C.
read
D.
Both read and write
View Answer
Correct Answer: read
Q21.
variable नामों के लिए निम्नलिखित में से कौन सा सही है?
Which of the following is true for variable names?
A.
unlimited length
B.
limited length
C.
ampersand can be used in its name
D.
None of the above
View Answer
Correct Answer: unlimited length
Q22.
रिक्त स्थान को भरें।
Fill in the blank.
import pickle
f = open("data.dat", "rb")
d = ___________.load(f)
f.close()
A.
unpickle
B.
pickling
C.
pickle
D.
pick
View Answer
Correct Answer: pickle
Q23.
फ़्लोचार्ट और एल्गोरिदम का उपयोग __________ के लिए किया जाता है।
Flowcharts and algorithms are used for __________.
A.
Better programming
B.
Efficient coding
C.
Easy testing and debugging
D.
All of the above
View Answer
Correct Answer: All of the above
Q24.
कौन सा कथन फ़ाइल सूचक को वर्तमान स्थिति से 10 बाइट पीछे ले जायेगा?
Which statement will move file pointer 10 bytes backward from current position?
A.
f.seek(-10,0)
B.
f.seek(-10,1)
C.
f.seek(10,0)
D.
None of the above
View Answer
Correct Answer: f.seek(-10,1)
Q25.
पायथन में, निम्न में से कौन सा फंक्शन एक बिल्ट-इन फंक्शन है?
In python, which of the following functions is a built-in function?
A.
val()
B.
print()
C.
func_k()
D.
None of these
View Answer
Correct Answer: print()