Q1.
निम्नलिखित में से कौन सी फाइल किसी टेक्स्ट एडिटर में खोली जा सकती है?
Which of the following file can be opened in any text editor?
A.
Binary
B.
text
C.
Both of the above
D.
None of the above
View Answer
Correct Answer: text
Q2.
निम्नलिखित में से कौन सा एक सही है?
Which one of the following is correct?
A.
Dictionary can have two same keys with different values
B.
Dictionary can have two same values with different keys
C.
Dictionary can have two same keys or same values but cannot have two same key-value pair
D.
Dictionary can neither have two same keys nor two same values
View Answer
Correct Answer: Dictionary can have two same values with different keys
Q3.
Function के लिए किस कीवर्ड का प्रयोग किया जाता है?
Which keyword is used for function?
A.
fun
B.
def
C.
define
D.
function
View Answer
Correct Answer: def
Q4.
निम्नलिखित कोड का उद्देश्य क्या है?
What is the purpose of the following code?import numpy as np
z=[1,2,3]
y=np.array(z)
A.
to convert z to array
B.
to convert z to list
C.
Both of the above
D.
None of the above
View Answer
Correct Answer: to convert z to array
Q5.
निम्न में से कौन सा आइटम फंक्शन हेडर में मौजूद है?
Which of the following items are present in the function header?
A.
function name
B.
parameter list
C.
return value
D.
Both (A) and B
View Answer
Correct Answer: Both (A) and B
Q6.
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?y = "I love Python"
y[3] = 's'
print(y)
A.
snow
B.
snow world
C.
Error
D.
snos world
View Answer
Correct Answer: Error
Q7.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What is the output of the following code ?
min(max(False,-3,-4), 2,7)
A.
-4
B.
-3
C.
2
D.
False
View Answer
Correct Answer: False
Q8.
निम्नलिखित का आउटपुट क्या है?
What is the output of the following code ?t=(2, 3, 4, 3.5, 5, 6)
print(sum(t) + t.count(2))
A.
24
B.
23.5
C.
24.5
D.
25.5
View Answer
Correct Answer: 24.5
Q9.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What is the output of the following code ?def sayHello():
print("Hello World!")
sayHello()
sayHello()
A.
Hello World! Hello World!
B.
„Hello World!‟„Hello World!‟
C.
Hello Hello
D.
None of the above
View Answer
Correct Answer: Hello World! Hello World!
Q10.
निम्नलिखित में से कौन सा पायथन में फ़ंक्शन का उपयोग है?
Which of the following is the use of function in Python?
A.
Functions are reusable pieces of programs
B.
Functions don’t provide better modularity for your application
C.
You can’t also create your own functions
D.
All of the mentioned
View Answer
Correct Answer: Functions are reusable pieces of programs
Q11.
किस डेटा प्रकार में अनुक्रमण मान्य नहीं है?
In which data type, indexing is not valid?
A.
list
B.
dictionary
C.
string
D.
none of the above
View Answer
Correct Answer: dictionary
Q12.
पायथन में एक सूची को दूसरे में कैसे कॉपी करें?
How to copy one list to another in Python?
A.
a1 = list(a2)
B.
a1 = a2.copy()
C.
a1[] = a2[:]
D.
All of these
View Answer
Correct Answer: All of these
Q13.
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?a = 50
b = a= a*5
print(b)
A.
250
B.
10
C.
50
D.
Syntax Error
View Answer
Correct Answer: 250
Q14.
पायथन किस भाषा में लिखा गया है?
In which language is Python written?
A.
C
B.
C++
C.
Java
D.
None of these
View Answer
Correct Answer: C
Q15.
सही फ़ंक्शन हेडर की पहचान करें।
Identify the correct function header.
A.
def fun(a=2, b=3, c)
B.
def fun(a=2, b, c=3)
C.
def fun(a, b=2, c=3)
D.
def fun(a, b, c=3, d)
View Answer
Correct Answer: def fun(a, b=2, c=3)
Q16.
कोडिंग के दौरान सॉफ्टवेयर की गलतियों को __________ के रूप में जाना जाता है।
Software mistakes during coding are known as __________.
A.
errors
B.
bugs
C.
failures
D.
defects
View Answer
Correct Answer: bugs
Q17.
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?import numpy as np
a = np.array([[1,2,3],[4,5,6],[7,8,9]])
print(a.shape)
A.
(2, 3)
B.
(3, 3)
C.
(1,1)
D.
None of these
View Answer
Correct Answer: (3, 3)
Q18.
print((-3) ** 2) का आउटपुट क्या है?
What is the output of print((-3) ** 2) ?
View Answer
Correct Answer: 9
Q19.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What is the output of the following code ?def say(message, times = 1):
print(message * times)
say('Hello')
say('World', 5)
A.
Hello WorldWorldWorldWorldWorld
B.
Hello World5
C.
Hello World,World,World,World,World
D.
Hello HelloHelloHelloHelloHello
View Answer
Correct Answer: Hello WorldWorldWorldWorldWorld
Q20.
समांतर चतुर्भुज द्वारा प्रदर्शित की जाने वाली क्रिया को __________ कहा जाता है।
The operation represented by a parallelogram is called as __________.
A.
Input/Output
B.
Comparison
C.
Assignment
D.
Conditions
View Answer
Correct Answer: Input/Output
Q21.
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?import numpy as np
a = np.array([[1,2,3]])
print(a.ndim)
View Answer
Correct Answer: 2
Q22.
निम्न में से कौन सा बिल्ट-इन फंक्शन नहीं है?
Which of the following is not the built-in function?
A.
input()
B.
tuple()
C.
print()
D.
dictionary()
View Answer
Correct Answer: dictionary()
Q23.
निम्नलिखित कोड खंड क्या प्रिंट करेगा?
What will the following code fragment print?a = True
b = False
c = False
if a or b and c:
print('HELLO')
else:
print('hello')
A.
HELLO
B.
Hello
C.
HellO
D.
None of these
View Answer
Correct Answer: HELLO
Q24.
निम्नलिखित में से कौन सी संख्या निम्नलिखित कोड द्वारा कभी भी उत्पन्न नहीं की जा सकती है:
Which of the following numbers can never be generated by the following code:random.randrange(0, 50)
View Answer
Correct Answer: 50
Q25.
निम्नलिखित का आउटपुट क्या है?
What is the output of the following?x = 'abcd'
for i in range(x):
print(i)
A.
a b c d
B.
0 1 2 3
C.
error
D.
none of the mentioned
View Answer
Correct Answer: error