Q1.
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
What will be output for the following code ?import numpy as np
a = np.array([[1,2,3],[0,1,4],[11,22,33]])
print(a.size)
View Answer
Correct Answer: 9
Q2.
निम्नलिखित बयानों के बाद आउटपुट क्या होगा?
What will be the output after the following statements?a = 0
b = 3
while a + b < 8:
a += 1
print(a, end='')
A.
0 1 2 3 4
B.
1 2 3 4 5 6
C.
1 2 3 4 5
D.
None of these
View Answer
Correct Answer: 1 2 3 4 5
Q3.
एक वेरिएबल को असाइन किए गए रॉ डेटा को __________ कहा जाता है।
Raw data assigned to a variable is called as __________.
A.
variable
B.
literal
C.
identifier
D.
comment
View Answer
Correct Answer: literal
Q4.
Numpy array में इस्तेमाल किए गए zeros() फ़ंक्शन का उद्देश्य क्या है?
What is the purpose of zeros() function used in Numpy array ?
A.
To make a Matrix with all diagonal element 0
B.
To make a Matrix with first row 0
C.
To make a Matrix with all element 0
D.
None of the above
View Answer
Correct Answer: To make a Matrix with all element 0
Q5.
NumPY का मतलब है?
NumPY stands for?
A.
Numbering Python
B.
Number in Python
C.
Numerical Python
D.
Number for Python
View Answer
Correct Answer: Numerical Python
Q6.
निम्नलिखित कोड क्या प्रिंट करता है?
What does the following code print ?if 2 + 5 == 8:
print("TRUE")
else:
print("FALSE")
print("TRUE")
A.
TRUE
B.
TRUE FALSE
C.
TRUE TRUE
D.
FALSE TRUE
View Answer
Correct Answer: FALSE TRUE
Q7.
lstrip() मेथड का उपयोग _______ के लिए किया जाता है?
lstrip() method is used for :
A.
delete all the trailing characters
B.
delete all the leading characters
C.
delete all the leading and trailing characters
D.
delete upper case characters
View Answer
Correct Answer: delete all the leading characters
Q8.
निम्नलिखित में से क्या आउटपुट होगा?
What will be the output of the following?print((range(4)))
A.
0,1,2,3
B.
[0,1,2,3]
C.
range(0,4)
D.
(0,1,2,3)
View Answer
Correct Answer: range(0,4)
Q9.
निम्नलिखित में से कौन सी परिवर्तनीय घोषणा गलत है?
Which of the following variable declaration is incorrect ?
A.
a_=3
B.
_a=3
C.
a?=3
D.
All of these
View Answer
Correct Answer: a?=3
Q10.
फ्लो चार्ट में, निम्नलिखित में से किसका उपयोग स्थिति का परीक्षण करने के लिए किया जाता है?
In a flow chart, which of the following is used to test the condition ?
A.
Terminal
B.
Process
C.
Input/Output
D.
Decision
View Answer
Correct Answer: Decision
Q11.
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code ?f=open("demo.txt","r")
print(f.tell())
View Answer
Correct Answer: 0
Q12.
फ़ाइल में निम्न में से कौन सा बुनियादी I/O कनेक्शन है?
Which of the following is the basic I/O connections in file ?
A.
Standard Input
B.
Standard Output
C.
Standard Errors
D.
All of the mentioned
View Answer
Correct Answer: All of the mentioned
Q13.
कौन सा फंक्शन स्ट्रिंग्स लौटाता है?
Which function returns the strings?
A.
readline()
B.
read()
C.
Both of the above
D.
None of the above
View Answer
Correct Answer: read()
Q14.
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code ?f=open("demo.txt","w+")
f.write("Welcome to Python")
f.seek(5)
a=f.read(5)
print(a)
A.
Welco
B.
me to
C.
Welcome to Python
D.
e to
View Answer
Correct Answer: me to
Q15.
seek() का सिंटैक्स है: file_object.seek(offset [, Reference_point])
What does the reference_point indicate?
A.
reference_point indicates the current position of the file object
B.
reference_point indicates the starting position of the file object
C.
reference_point indicates the ending position of the file object
D.
None of the above
View Answer
Correct Answer: reference_point indicates the starting position of the file object
Q16.
इनमें से कौन एक फाइल की विशेषता नहीं है ?
Which one is not the attribute of a file?
A.
softspace
B.
mode
C.
closed
D.
rename
View Answer
Correct Answer: rename
Q17.
एल्गोरिथम के लिए फ़्लोचार्ट बनाने की प्रक्रिया को __________ कहा जाता है।
The process of drawing a flowchart for an algorithm is called __________.
A.
Performance
B.
Algorithmic Representation
C.
Evaluation
D.
Flowcharting
View Answer
Correct Answer: Flowcharting
Q18.
कौन सा फ़ंक्शन दो तर्क लेता है?
Which of the function takes two arguments ?
A.
dump()
B.
load()
C.
Both of the above
D.
None of the above
View Answer
Correct Answer: dump()
Q19.
मान लीजिए arr नाम वाली एक सूची में 5 तत्व हैं। आप सूची से दूसरा तत्व प्राप्त कर सकते हैं:
Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using :
A.
arr[-2]
B.
arr[2]
C.
arr[-1]
D.
arr[1]
View Answer
Correct Answer: arr[1]
Q20.
निम्नलिखित expression का आउटपुट क्या होगा?
What will be the output of the following expression ?a = 2
b = 8
print(a | b)
print(a >> 1)
A.
10 0
B.
10 2
C.
2 2
D.
10 1
View Answer
Correct Answer: 10 1