Q1.
a=5, b=8, c=6 के लिए निम्नलिखित एल्गोरिथम का आउटपुट क्या होगा?
What will be the output of the following algorithm for a=5, b=8, c=6 ?
Step 1 : Start
Step 2 : Declare variables a, b and c.
Step 3 : Read variables a, b and c.
Step 4 : If a < b
If a < c
Display a is the smallest number.
Else
Display c is the smallest number.
Else
If b < c
Display b is the smallest number.
Else
Display c is the smallest number.
Step 5 : Stop
A.
a is the smallest number
B.
b is the smallest number
C.
c is the smallest number
D.
stop
View Answer
Correct Answer: a is the smallest number
Q2.
दो संख्याओं का योग करने के लिए, फ्लो चार्ट में निम्नलिखित में से किस चिन्ह का उपयोग किया जाता है?
For performing the addition of two numbers, which of the following symbol in a flow chart is used?
A.
Control flow
B.
Terminal
C.
Decision
D.
Processing
View Answer
Correct Answer: Processing
Q3.
निम्नलिखित कोड का आउटपुट क्या है?
What is the output of the following code?
import numpy as np
a = np.array([[1,2,3], [4,5,6]])
print(a.shape)
A.
(2,3)
B.
(3,2)
C.
(1,1)
D.
None of these
View Answer
Correct Answer: (2,3)
Q4.
कौन सा स्टेटमेंट फाइल (file object is 'f') से एक पंक्ति प्रस्तुत करेगा?
Which statement will return one line from a file (file object is 'f')?
A.
f.readlines()
B.
f.readline()
C.
f.read()
D.
f.line()
View Answer
Correct Answer: f.readline()
Q5.
निम्न में से कौन सा एक नियंत्रण संरचना नहीं है?
Which of the following is not a control structure?
A.
Loop
B.
Process
C.
Decision
D.
None of these
View Answer
Correct Answer: Process
Q6.
कंप्यूटर सिस्टम का दिमाग है____________
The brain of a computer system is_____________
A.
RAM
B.
ROM
C.
CPU
D.
Control Unit
View Answer
Correct Answer: CPU
Q7.
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code?
def s(n1):
print(n1)
n1 = n1 + 2
n2 = 4
s(n2)
print(n2)
A.
6 4
B.
4 6
C.
6 4
D.
4 4
View Answer
Correct Answer: 4 4
Q8.
निम्नलिखित का आउटपुट क्या है?
What is the output of the following?
x = 123
for i in x:
print(i)
A.
123
B.
123
C.
Error
D.
None of these
View Answer
Correct Answer: Error
Q9.
निम्नलिखित कथन का परिणाम क्या होगा?
What will be the output of the following statement?
>> "m" + "nl"
A.
'm+nl'
B.
'mnl'
C.
'm nl'
D.
'm'
View Answer
Correct Answer: 'mnl'
Q10.
पायथन के संबंध में सही विकल्प का चयन करें।
Choose the correct option with respect to Python.
A.
Both tuples and lists are immutable
B.
Tuples are immutable while lists are mutable
C.
Both tuples and lists are mutable
D.
Tuples are mutable while lists are immutable
View Answer
Correct Answer: Tuples are immutable while lists are mutable
Q11.
f.read(5) एक फाइल (file object is 'f) से __________ पढ़ेगा
f.read(5) will read __________from a file (file object is 'f).
A.
5 characters
B.
5 words
C.
5 lines
D.
None of the above
View Answer
Correct Answer: 5 characters
Q12.
निम्नलिखित में से कौन-सा अपरिवर्तनीय डेटा प्रकार है?
Which one of the following is immutable data type?
A.
list
B.
tuple
C.
set
D.
dict
View Answer
Correct Answer: tuple
Q13.
निम्नलिखित का आउटपुट क्या है?
What is the output of the following?
m = 0
while m < 5:
print(m)
m += 1
if m == 3:
break
else:
print(0)
A.
0120
B.
012
C.
00102
D.
Error
View Answer
Correct Answer: 00102
Q14.
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
What will be output for the following code?
import numpy as np
a = np.array([[1,2,3],[0,1,4]])
print(a.size)
View Answer
Correct Answer: 6
Q15.
पायथन में Numpy array में zeros() फ़ंक्शन का उपयोग क्या है?
What is the use of the zeros() function in Numpy array in python?
A.
To make a Matrix with all element 0
B.
To make a Matrix with all diagonal element 0
C.
To make a Matrix with first row 0
D.
None of the above
View Answer
Correct Answer: To make a Matrix with all element 0
Q16.
पायथन भाषा में, निम्नलिखित में से कौन सा ऑपरेटर k को पावर I तक बढ़ाने के लिए सही विकल्प है?
In python language, which of the following operators is the correct option for raising k to the power I?
A.
k^1
B.
k**1
C.
k^^1
D.
k^*1
View Answer
Correct Answer: k**1
Q17.
निम्नलिखित में से कौन सा पायथन में एक वैध अंकगणितीय ऑपरेटर है?
Which of the following is a valid arithmetic operator in Python?
View Answer
Correct Answer: //
Q18.
यदि फाइल मौजूद नहीं है तो कौन सा मोड एक नई फाइल बनाता है?
Which mode creates a new file if the file does not exist?
A.
write mode
B.
read mode
C.
append mode
D.
Both (A) and (C)
View Answer
Correct Answer: Both (A) and (C)
Q19.
NumPY का अर्थ है:
NumPY stands for:
A.
Numbering Python
B.
Number In Python
C.
Numerical Python
D.
None of the above
View Answer
Correct Answer: Numerical Python
Q20.
निम्नलिखित में से कौन फ़ाइल (file object 'f') की संपूर्ण सामग्री को पढ़ेगा?
Which of the following will read the entire content of file (file object 'f')?
A.
f.reads()
B.
f.read(all)
C.
f.read()
D.
f.read(*)
View Answer
Correct Answer: f.read()
Q21.
निम्नलिखित का आउटपुट क्या है?
What is the output of the following?
n = 5
while n > 0:
n -= 1
if n == 2:
continue
print(n)
A.
54310
B.
4310
C.
432
D.
None of these
View Answer
Correct Answer: 4310
Q22.
सूड़ो कोड में पदानुक्रम ___ द्वारा दिखाया जा सकता है:
Hierarchy in a pseudo-code can be shown by:
A.
Curly Braces
B.
Round Brackets
C.
Indentation
D.
Semicolon
View Answer
Correct Answer: Indentation
Q23.
______ के समय सीक्वेंस लॉजिक का उपयोग नहीं नहीं किया जायेगा।
The sequence logic will not be used while___________
A.
Subtracting two numbers
B.
Comparing two data values
C.
Providing output to the user
D.
Adding two numbers
View Answer
Correct Answer: Adding two numbers
Q24.
किस प्रकार का डेटा है: arr =[(1,1),(2,2),(3,3)]
What type of data is : arr =[(1,1),(2,2),(3,3)]
A.
List of tuples
B.
Tuples of lists
C.
Array of tuples
D.
Invalid type
View Answer
Correct Answer: List of tuples
Q25.
पायथन _________ में लिखा गया है
Python is written in_________
A.
Java
B.
C
C.
PHP
D.
All of the above
View Answer
Correct Answer: C