Important Notice:
Jul 2022 (Set 1) M3-R5
1 / 100
Which statement is correct to import all modules from the package ? पैकेज से सभी मॉड्यूलों को आयात करने के लिए कौन सा कथन सही है?
2 / 100
Which of the following is not a keyword in python ? निम्नलिखित में से कौन पायथन में कीवर्ड नहीं है?
3 / 100
Which of the following operators has the highest precedence ? निम्नलिखित में से किस ऑपरेटर की प्राथमिकता सबसे अधिक है?
4 / 100
What is the data type of following object ? निम्नलिखित ऑब्जेक्ट का डेटा प्रकार क्या है? A = [5,‟abc‟,3.2,6]
5 / 100
What are the attributes of numpy array ? NumPy array की विशेषताएँ क्या हैं?
6 / 100
What is the output of the following code ? निम्नलिखित कोड का परिणाम क्या है ? import numpy as np a = np.array([1.1,2,3]) print(a.dtype)
7 / 100
In which language is Python written ? पायथन किस भाषा में लिखा गया है?
8 / 100
Which of the following is true for variable names ? निम्नलिखित में से कौन सा परिवर्तनीय नामों के लिए सत्य है?
9 / 100
A __________ scans the entire program and translates it as a whole into machine code. एक __________ पूरे प्रोग्राम को स्कैन करता है और इसे संपूर्ण मशीन कोड में अनुवादित करता है।
10 / 100
What is the output of the following ? निम्नलिखित का आउटपुट क्या है? x = 'abcd' for i in range(x): print(i)
11 / 100
What is the output of the following code ? निम्नलिखित कोड का परिणाम क्या है ? a = 15 b = 6 print(a and b) print(a or b)
12 / 100
__________ immediately terminates a loop entirely. __________ लूप को तुरंत पूरी तरह समाप्त कर देता है।
13 / 100
Which of the following function takes two arguments ? निम्नलिखित में से कौन सा फ़ंक्शन दो तर्क लेता है?
14 / 100
Which statement will move file pointer 10 bytes backward from current position ? कौन सा स्टेटमेंट फ़ाइल पॉइंटर को वर्तमान स्थिति से 10 बाइट पीछे ले जाएगा?
15 / 100
What will be the output of the following Python code ? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? min(max(False,-3,-4), 2,7)
16 / 100
What will be the output of the following pseudo-code ? निम्न pseudo कोड का आउटपुट क्या होगा? Integer a Set a = 5 do print a - 2 a = a- 1 while (a not equals 0) end while
17 / 100
An algorithm represented in the form of programming languages is __________. प्रोग्रामिंग भाषाओं के रूप में प्रदर्शित एक एल्गोरिथ्म __________ है।
18 / 100
The action performed by a __________ structure must eventually cause the loop to terminate. __________ संरचना द्वारा की गई कार्रवाई अंततः लूप को समाप्त करने का कारण बनेगी।
19 / 100
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)
20 / 100
What is the output of the following ? निम्नलिखित का आउटपुट क्या है? for i in range(10): if i == 5: break else: print(i) else: print("Here")
21 / 100
Top-down approach is followed in structural programming. संरचनात्मक प्रोग्रामिंग में टॉप-डाउन दृष्टिकोण का पालन किया जाता है।
22 / 100
What will be the output of the following Python code ? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? from math import factorial print(math.sqrt(25))
23 / 100
What will be the output of the following Python code ? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def say(message, times = 1): print(message * times) say('Hello') say('World', 5)
24 / 100
What will be output for the following code ? निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([11,2,3]) print(a.min())
25 / 100
If a function does not have a return statement, which of the following does the function return ? यदि किसी फ़ंक्शन में रिटर्न स्टेटमेंट नहीं है, तो फ़ंक्शन निम्न में से क्या रिटर्न करता है?
26 / 100
Choose the answer for statement 1. कथन 1 के लिए उत्तर चुनें. 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 _______.close( ) # statement 4
27 / 100
Which statement will read 5 characters from a file(file object ‘f’) ? कौन सा कथन किसी फ़ाइल (फ़ाइल ऑब्जेक्ट ‘f’) से 5 अक्षर पढ़ेगा?
28 / 100
The examination of changing values of variables is called stepping. वैरिएबल के बदलते मूल्यों की जांच को स्टेपिंग कहा जाता है।
29 / 100
What will be the output of the following Python code ? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? from math import * ceil(3.4)
30 / 100
What is the output of following code ? निम्नलिखित कोड का आउटपुट क्या है? a1={1:"A",2:"B",3:"C"} b1={4:"D",5:"E"} b1.update(a1) print(b1)
31 / 100
Which module to be imported to make the following line functional ? निम्नलिखित लाइन को कार्यात्मक बनाने के लिए कौन सा मॉड्यूल आयात किया जाना चाहिए? sys.stdout.write(“ABC”)
32 / 100
Identify the correct function header. सही फ़ंक्शन हेडर की पहचान करें.
33 / 100
What is the output of the following code ? निम्नलिखित कोड का आउटपुट क्या है? print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))
34 / 100
Python is a case sensitive language when dealing with identifiers. आइडेंटिफायर के साथ काम करते समय पायथन एक केस सेंसिटिव भाषा है।
35 / 100
Determine the output : आउटपुट ज्ञात करें: for i in range(20,30,10) : j=i/2 print(j)
36 / 100
__________ is part of user documentation. __________ उपयोगकर्ता दस्तावेज़ का हिस्सा है
37 / 100
Which one of the following is immutable data type ? निम्नलिखित में से कौन सा अपरिवर्तनीय डेटा प्रकार है?
38 / 100
Actual instructions in flowcharting are represented in __________. फ़्लोचार्टिंग में वास्तविक निर्देश __________ में दर्शाए जाते हैं।
39 / 100
What will be the output of the following pseudo code, where ^ represent XOR operation? निम्नलिखित pseudo कोड का आउटपुट क्या होगा, जहां ^ XOR ऑपरेशन को दर्शाता है? Integer a, b, c Set b = 5, a = 1 c = a ^ b Print c
40 / 100
What is the output, if user has entered 55 ? यदि उपयोगकर्ता ने 55 दर्ज किया है तो आउटपुट क्या है? a=input("Enter a number") print(type(a))
41 / 100
Which one of the following is the correct way of calling a function ? निम्नलिखित में से कौन सा फ़ंक्शन कॉल करने का सही तरीका है?
42 / 100
Method which uses a list of well-defined instructions to complete a task starting from a given initial state to end state is called as __________. वह विधि जो किसी कार्य को किसी दिए गए प्रारंभिक अवस्था से अंतिम अवस्था तक पूरा करने के लिए सुपरिभाषित निर्देशों की सूची का उपयोग करती है, उसे __________ कहा जाता है।
43 / 100
What is the output of following code ? निम्नलिखित कोड का आउटपुट क्या है? a=set('abc') b=set('cd') print(a^b)
44 / 100
Which of the following are valid escape sequences in Python ? पायथन में निम्नलिखित में से कौन से वैध एस्केप अनुक्रम हैं?
45 / 100
Hierarchy in a pseudo-code can be shown by __________. pseudo कोड में पदानुक्रम __________ द्वारा दिखाया जा सकता है।
46 / 100
To repeat a particular task, we use __________. किसी विशेष कार्य को दोहराने के लिए हम __________ का उपयोग करते हैं।
47 / 100
What is the output of the following ? निम्नलिखित का आउटपुट क्या है? x = 'abcd' for i in range(len(x)) : i.upper() print (x)
48 / 100
Let us assume 4 is 100 in binary and 11 is 1011. What is the output of the following bitwise operators ? मान लें कि बाइनरी में 4 = 100 और 11 = 1011 है। निम्नलिखित बिटवाइज़ ऑपरेटरों का आउटपुट क्या है? a = 4 b = 11 print(a | b) print(a >> 2)
49 / 100
Which statement will return one line from a file (file object is “f”) ? कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट “f” है)?
50 / 100
In which data type, indexing is not valid ? किस डेटा प्रकार में इंडेक्सिंग मान्य नहीं है?
51 / 100
What is the output of print((-3)** 2) ? print((-3)** 2) का आउटपुट क्या है?
52 / 100
__________ is a connector showing the relationship between the representative shapes. __________ एक कनेक्टर है जो प्रतिनिधि आकृतियों के बीच संबंध दिखाता है।
53 / 100
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)
54 / 100
Which of these definitions correctly describes a module ? इनमें से कौन सी परिभाषा मॉड्यूल का सही वर्णन करती है?
55 / 100
What is the output of the following code ? निम्नलिखित कोड का परिणाम क्या है ? y = "I love Python" y[3] = 's' print(y)
56 / 100
Which function opens file in python ? पायथन में कौन सा फ़ंक्शन फ़ाइल खोलता है?
57 / 100
Fill in the blank. रिक्त स्थान को भरें। Import pickle f=open(“data.dat”, „rb‟) d=_____________.load(f) f.close()
58 / 100
What will be the output of the following Python code ? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def sayHello(): print(“Hello World!”) sayHello() sayHello()
59 / 100
Which attribute is used to find the data type of numpy array ? NumPy array का डेटा प्रकार ज्ञात करने के लिए किस विशेषता का उपयोग किया जाता है?
60 / 100
What is the purpose of the following code ? निम्नलिखित कोड का उद्देश्य क्या है? import numpy as np z=[1,2,3] y=np.array(z)
61 / 100
Ravi opened a file in python using open( ) function but forgot to specify the mode. In which mode the file will open ? रवि ने open() फ़ंक्शन का उपयोग करके पायथन में एक फ़ाइल खोली लेकिन मोड निर्दिष्ट करना भूल गया। फाइल किस मोड में खुलेगी ?
62 / 100
A flowchart that outlines the main segments of a program. एक फ्लोचार्ट जो किसी कार्यक्रम के मुख्य खंडों को रेखांकित करता है।
63 / 100
What is the output of the following code ? निम्नलिखित कोड का आउटपुट क्या है? a = 50 b = a= a*5 print(b)
64 / 100
What is the output of following code ? निम्नलिखित कोड का आउटपुट क्या है? A=[[1,2,3], [4,5,6], [7,8,9]] print(A[1][:])
65 / 100
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) print('x is now', x)
66 / 100
NumPY stands for ? NumPY का पूर्ण रूप क्या है?
67 / 100
What is full form of CSV ? सीएसवी का पूर्ण रूप क्या है?
68 / 100
What will following code segment print ? निम्नलिखित कोड सेगमेंट क्या प्रिंट करेगा? a = True b = False c = False if a or b and c: print "HELLO" else: print "hello"
69 / 100
Suppose a tuple arr contains 10 elements. How can you set the 5th element of the tuple to 'Hello' ? मान लीजिए कि एक ट्यूपल arr में 10 तत्व हैं। आप ट्यूपल के 5वें तत्व को 'Hello' कैसे सेट कर सकते हैं?
70 / 100
What is the output of the following ? निम्नलिखित का आउटपुट क्या है? t=(2, 3, 4, 3.5, 5, 6) print(sum(t) + t.count(2))
71 / 100
Which mode creates a new file if the file does not exist ? यदि फ़ाइल मौजूद नहीं है तो कौन सा मोड एक नई फ़ाइल बनाता है?
72 / 100
Which one of the following is correct ? निम्नलिखित में से कौन सा सही है?
73 / 100
Which of the following file can be opened in any text editor ? निम्नलिखित में से कौन सी फाइल किसी भी टेक्स्ट एडिटर में खोली जा सकती है?
74 / 100
What will be the output of the following? निम्नलिखित का आउटपुट क्या होगा? import numpy as np print(np.minimum([2, 3, 4], [1, 5, 2]))
75 / 100
Choose the answer for statement 3. कथन 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 _______.close( ) # statement 4
76 / 100
What will be the output of following code ? निम्नलिखित कोड का आउटपुट क्या होगा? x = ['XX', 'YY'] for i in x: i.lower() print(x)
77 / 100
Which of the following statement will execute in last ? निम्नलिखित में से कौन सा कथन अंत में निष्पादित होगा? def s(n1): #Statement 1 print(n1) #Statement 2 n2=4 #Statement 3 s(n2) #Statement 4
78 / 100
How to copy one list to another in Python ? पायथन में एक सूची को दूसरी सूची में कैसे कॉपी करें?
79 / 100
The function can be called in the program by writing function name followed by __________. प्रोग्राम में फ़ंक्शन नाम के बाद __________ लिखकर फ़ंक्शन को कॉल किया जा सकता है।
80 / 100
Which of the following number can never be generated by the following code : निम्नलिखित में से कौन सा नंबर निम्नलिखित कोड द्वारा कभी भी उत्पन्न नहीं किया जा सकता है: random.randrange(0, 50)
81 / 100
What will be the output of the following algorithm for a=5, b=8, c=6 ? 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 largest number. Else Display c is the largest number. Else If b > c Display b is the largest number. Else Display c is the greatest number. Step 5: Stop
82 / 100
What does os.getlogin() return ? os.getlogin() क्या लौटाता है?
83 / 100
Which keyword is used for function ? फ़ंक्शन के लिए कौन सा कीवर्ड उपयोग किया जाता है?
84 / 100
Choose the answer for statement 2. कथन 2 के लिए उत्तर चुनें। 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 _______.close( ) # statement 4
85 / 100
What is the output when we execute list("hello") ? जब हम list("hello") निष्पादित करते हैं तो आउटपुट क्या होता है?
86 / 100
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])
87 / 100
Any algorithm is a program written according to proper syntax. कोई भी एल्गोरिदम उचित सिंटैक्स के अनुसार लिखा गया एक प्रोग्राम है।
88 / 100
What will be the output of the following Python code ? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def C2F(c) : return c*9/5+32 print (C2F(100)) print (C2F(0))
89 / 100
Choose the answer for statement 4. कथन 4 के लिए उत्तर चुनें। 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 _______.close( ) # statement 4
90 / 100
What will be the output of following code ? निम्नलिखित कोड का आउटपुट क्या होगा? import math abs(math.sqrt(36))
91 / 100
The operation represented by a parallelogram is called as__________. समांतर चतुर्भुज द्वारा दर्शाई गई संक्रिया को ____________ कहा जाता है।
92 / 100
In python, which of the following functions is a built-in function ? पायथन में, निम्नलिखित में से कौन सा फ़ंक्शन एक अंतर्निहित फ़ंक्शन है?
93 / 100
What is the output of the following code ? निम्नलिखित कोड का आउटपुट क्या है? import numpy as np a = np.array([[1,2,3]]) print(a.ndim)
94 / 100
Which of the following items are present in the function header ? निम्नलिखित में से कौन सा आइटम फ़ंक्शन हेडर में मौजूद है?
95 / 100
Software mistakes during coding are known as __________. कोडिंग के दौरान सॉफ्टवेयर की गलतियों को __________ के रूप में जाना जाता है।
96 / 100
Which of the following is not the built-in function ? निम्नलिखित में से कौन सा अंतर्निहित फ़ंक्शन नहीं है?
97 / 100
Flowcharts and algorithms are used for __________. फ्लोचार्ट और एल्गोरिदम का उपयोग __________ के लिए किया जाता है।
98 / 100
In computer science, algorithm refers to a pictorial representation of a flowchart. कंप्यूटर विज्ञान में, एल्गोरिदम एक फ़्लोचार्ट के सचित्र प्रतिनिधित्व को संदर्भित करता है।
99 / 100
Which of the following is the use of function in python ? निम्नलिखित में से कौन सा पायथन में फ़ंक्शन का उपयोग है?
100 / 100
What is the output of the following ? निम्नलिखित का आउटपुट क्या है? i = 2 while True: if i%3 == 0: break print(i,end=" " ) i += 2
Your score is
The average score is 53%
Restart quiz