Important Notice:
M3-R5.1 Old Paper — July 2026
100 Questions  •  M3-R5.1
120:00
← Back
1
Which file mode creates a new file but raises an error if it exists? कौन-सा फाइल मोड एक नई फाइल बनाता है, लेकिन अगर वह पहले से मौजूद हो तो एरर देता है?
2
Which property of an algorithm ensures that it does not run indefinitely? एल्गोरिद्म की कौन सी विशेषता यह सुनिश्चित करती है कि वह इन्फिनिटली न चले?
3
Which of the following best explains why Python programs are easier to debug compared to compiled languages? इनमें से कौन सा विकल्प सबसे अच्छी तरह बताता है कि कंपाइल होने वाली भाषाओं की तुलना में पायथन प्रोग्राम को डीबग करना आसान क्यों है?
4
What is the output of the following code? निम्नलिखित कोड का आउटपुट क्या होगा? Code: x = 1 y = 2 z = 3 print(x < y < z == True)
5
Python is classified as a: पायथन को ________ के रूप में वर्गीकृत किया गया है:
6
Which function is used to create a NumPy array? नई ऐरे बनाने के लिए किस फंक्शन का उपयोग किया जाता है?
7
What is the output of following? निम्न का आउटपुट क्या होगा? d = {1: 'a', 2: 'b', 1: 'c'} print(d)
8
Which scope is searched first according to the LEGB rule? एलईजीबी नियम के अनुसार सबसे पहले किस स्कोप को ढूँढा जाता है?
9
What will be the output? आउटपुट क्या होगा? print(type({}))
10
What is the output of following? निम्न का आउटपुट क्या होगा? def f(x): x = 10 a = 5 f(a) print(a)
11
What does ndarray.shape return? ndarray.shape क्या रिटर्न करता है?
12
What does the following code do? नीचे दिए गए कोड का क्या करता है? from math import * print(cos(0))
13
Modules act as: मॉड्यूल ________ के रूप में काम करते हैं:
14
Which variable must be initialized to 1 in the algorithm for factorial computation? फैक्टोरियल की गणना करने वाले एल्गोरिद्म में किस वेरिएबल को 1 से इनिशियलाइज़ किया जाना चाहिए?
15
What does s.count('a') return? s.count('a') क्या रिटर्न करता है?
16
What will be the output of the following code? नीचे दिए गए कोड का आउटपुट क्या होगा? x = 10 x += x > 5 print(x)
17
Which variable has local scope? किस वेरिएबल का स्कोप लोकल होता है?
18
Which of the following errors is most likely if a loop control variable is not updated in an iterative flowchart? अगर किसी इटरेटिव फ्लोचार्ट में लूप कंट्रोल वेरिएबल को अपडेट नहीं किया जाता है, तो इनमें से कौन सी गलती होने की सबसे ज्यादा संभावना है?
19
What is the output of following? निम्न का आउटपुट क्या होगा? def add(a, b=5): return a + b print(add(3))
20
Which loop condition is used in the algorithm to find the GCD of two numbers using Euclid's method? यूक्लिड की विधि का उपयोग करके दो संख्याओं का जीसीडी ज्ञात करने के लिए एल्गोरिद्म में किस लूप कंडीशन का उपयोग किया जाता है?
21
Scope of a name in Python refers to: पायथन में किसी नाम के स्कोप का अर्थ ________ है:
22
Which statement imports only selected names from a module? कौन-सा स्टेटमेंट किसी मॉड्यूल से केवल चुने हुए नामों को इम्पोर्ट करता है?
23
What will be printed? क्या प्रिंट होगा? x = 5 def f(): global x x = 10 f() print(x)
24
Which subtle flaw makes a flowchart logically incorrect even if all symbols are syntactically valid? कौन सी बारीक कमी एक फ्लोचार्ट को लॉजिकली गलत बना देती है, भले ही सभी सिंबल सिंटैक्स के हिसाब से सही हों?
25
Output: आउटपुट: x = 5 y = 10 print(x > 3 or y < 5 and x == 5)
26
A well-designed algorithm must satisfy: एक अच्छी तरह से डिजाइन किए गए एल्गोरिद्म को इन शर्तों को पूरा करना चाहिए:
27
Which stage occurs first when a Python program is executed? जब पायथन प्रोग्राम को एक्जीक्यूट किया जाता है, तो सबसे पहले कौन सा चरण होता है?
28
What will be the output of the following Python function? नीचे दिए गए पायथन फंक्शन का आउटपुट क्या होगा? random.choice('fun')
29
Which keyword allows modification of a global variable inside a function? कौन सा कीवर्ड फंक्शन के अंदर ग्लोबल वेरिएबल में बदलाव करने की सुविधा देता है?
30
Consider two algorithms A and B solving the same problem. Algorithm A always terminates but sometimes produces incorrect output, while algorithm B produces correct output but may not terminate for some inputs. Which statement is TRUE? मान लीजिए कि दो एल्गोरिद्म A और B हैं जो एक ही समस्या को हल करते हैं। एल्गोरिद्म A हमेशा टर्मिनेट हो जाता है लेकिन कभी-कभी गलत आउटपुट देता है, जबकि एल्गोरिद्म B सही आउटपुट देता है लेकिन कुछ इनपुट के लिए टर्मिनेट नहीं हो सकता। कौन सा कथन सही है?
31
Which criterion best determines whether a flowchart solution is correct and complete? कौन सा मापदंड सबसे बेहतर ढंग से यह तय करता है कि फ्लोचार्ट का समाधान सही और पूरा है?
32
Which file extension is used for Python modules? पायथन मॉड्यूल्स के लिए कौन सा फाइल एक्सटेंशन उपयोग किया जाता है?
33
What will be the output of the code given below? नीचे दिए गए कोड का आउटपुट क्या होगा? import math as m print(m.pi)
34
What is the output of following? निम्न का आउटपुट क्या होगा? for i in range(5): if i == 3: continue print(i, end=" ")
35
Which statement about debugging is TRUE? डीबगिंग के बारे में कौन सा कथन सही है?
36
Which statement about dictionaries is true? डिक्शनरीज के बारे में कौन सा कथन सही है?
37
What is the output of following? निम्न का आउटपुट क्या होगा? a = [1, 2, 3] b = a b.append(4) print(a)
38
Which operation is not valid on tuples? ट्यूपल्स पर कौन सा ऑपरेशन मान्य नहीं है?
39
Default argument values are evaluated: डिफॉल्ट आर्गुमेंट वैल्यूज का मूल्यांकन कब किया जाता है?
40
What does the nonlocal keyword refer to? नॉनलोकल कीवर्ड किस चीज़ को दर्शाता है?
41
The Fibonacci sequence algorithm mainly demonstrates: फिबोनाची सीक्वेंस एल्गोरिद्म मुख्य रूप से दिखाता है:
42
Which statement imports an entire module? कौन-सा स्टेटमेंट पूरे मॉड्यूल को इम्पोर्ट करता है?
43
What is the default datatype of np.array([1,2,3])? np.array([1,2,3]) का डिफॉल्ट डेटाटाइप क्या है?
44
What does the following slice return? नीचे दिया गया स्लाइस क्या रिटर्न करता है? s = [0,1,2,3,4,5] print(s[1:5:2])
45
What is the output of following? निम्न का आउटपुट क्या होगा? for i in range(3): pass print(i)
46
Which function removes whitespace from both ends? कौन सा फंक्शन दोनों सिरों से व्हाइटस्पेस हटाता है?
47
What will be printed? क्या प्रिंट होगा? i = 0 while i < 3: i += 1 if i == 2: continue print(i, end=" ") else: print("END")
48
What does eval() do? eval() क्या करता है?
49
What is printed? क्या प्रिंट होगा? i = 1 while i < 4: print(i, end=" ") i += 1 else: print("Done")
50
In a flowchart, the diamond-shaped symbol is used to represent: फ्लोचार्ट में, डायमंड के आकार के सिंबल का उपयोग ________ को दिखाने के लिए किया जाता है:
51
In a primality-checking algorithm, the loop typically runs from: प्राइम-चेकिंग एल्गोरिद्म में, लूप आमतौर पर ________ तक चलता है:
52
What is the output of following? निम्न का आउटपुट क्या होगा? f = open("test.txt", "r") f.seek(0) print(f.tell())
53
Which string slicing expression gives the output 'yth' from 'python'? 'python' से 'yth' आउटपुट पाने के लिए कौन सा स्ट्रिंग स्लाइसिंग एक्सप्रेशन उपयोग किया जाता है?
54
What is the output of following? निम्न का आउटपुट क्या होगा? f = open("data.txt", "r") print(f.readline())
55
Which built-in data type is immutable? कौन सा बिल्ट-इन डेटा टाइप इम्यूटेबल है?
56
Which of the following data types is immutable? इनमें से कौन सा डेटा टाइप इम्यूटेबल है?
57
Output of the code: कोड का आउटपुट: t = (10, 20, 30) t += (40,) print(t)
58
Which of the following creates a set? इनमें से कौन-सा एक सेट बनाता है?
59
What happens if a file opened in w mode already exists? अगर w मोड में खोली गई फाइल पहले से मौजूद हो, तो क्या होता है?
60
What does np.ones((2,3)) create? np.ones((2,3)) क्या बनाता है?
61
Which attribute returns number of bytes per element? कौन-सा एट्रिब्यूट प्रति एलिमेंट बाइट्स की संख्या रिटर्न करता है?
62
What is the output of np.arange(1,10,2)? np.arange(1,10,2) का आउटपुट क्या होगा?
63
input() function always returns: input() फंक्शन हमेशा ________ रिटर्न करता है:
64
What does the following code do? नीचे दिया गया कोड क्या करता है? from datetime import datetime dt = datetime.strptime("2024-11-22", "%Y-%m-%d") print(dt)
65
Which statement is used when a loop body is syntactically required but no action is needed? जब सिंटैक्स के हिसाब से लूप बॉडी की ज़रूरत हो लेकिन कोई एक्शन न करना हो, तो किस स्टेटमेंट का उपयोग किया जाता है?
66
Recursion means: रिकर्शन का अर्थ है:
67
A syntax error in Python is detected during: पायथन में सिंटैक्स एरर का पता ________ के दौरान चलता है:
68
What does read() do? read() क्या करता है?
69
What does tell() return? tell() क्या रिटर्न करता है?
70
Which operator checks membership? कौन सा ऑपरेटर मेंबरशिप चेक करता है?
71
Which statement best captures the deep relationship between testing and debugging? कौन सा कथन टेस्टिंग और डीबगिंग के बीच गहरे संबंध को सबसे अच्छी तरह बताता है?
72
What is the output of following? निम्न का आउटपुट क्या होगा? print(round(4.567, 2))
73
What is the output of following? निम्न का आउटपुट क्या होगा? def f(a, b): print(a, b) f(b=2, a=1)
74
What does flatten() do to an array? flatten() ऐरे का क्या करता है?
75
What will be the output of the following code? नीचे दिए गए कोड का आउटपुट क्या होगा? for i in range(1, 5): if i == 3: break print(i, end=" ")
76
What is the output? आउटपुट क्या है? s = "Python" print(s[-1:-4])
77
Command line arguments in Python are accessed using: पायथन में कमांड लाइन आर्गुमेंट्स को ________ का उपयोग करके एक्सेस किया जाता है:
78
arr[::-1] does what? arr[::-1] क्या करता है?
79
What does range(1, 10, 2) generate? range(1, 10, 2) क्या जनरेट करता है?
80
In 2D slicing, arr[1,2] refers to: 2डी स्लाइसिंग में, arr[1,2] का अर्थ है:
81
What is the output of following? निम्नलिखित का आउटपुट क्या होगा? print(type(1+2j))
82
The algorithm to evaluate sin x using series expansion primarily uses: सीरीज़ एक्सपेंशन का इस्तेमाल करके sin x का मान निकालने वाला एल्गोरिद्म मुख्य रूप से ________ का इस्तेमाल करता है:
83
Which function is used to open a file in Python? पायथन में फाइल खोलने के लिए किस फंक्शन का उपयोग किया जाता है?
84
To reverse the order of elements in an array, the algorithm must swap elements between: किसी ऐरे में एलिमेंट्स के क्रम को उलटने के लिए, एल्गोरिद्म को ________ के बीच एलिमेंट्स को स्वैप करना होगा:
85
Which of the following programs correctly prints the sum of two numbers? इनमें से कौन-सा प्रोग्राम दो संख्याओं का योग सही ढंग से प्रिंट करता है?
86
For calculating the summation of N numbers, the minimum number of decision boxes required is: N संख्याओं का योग निकालने के लिए, जरूरी डिसीजन बॉक्स की कम-से-कम संख्या ________ है:
87
When a module is imported, its code is: जब कोई मॉड्यूल इम्पोर्ट होता है तो उसका कोड ________:
88
In the flowchart to print elements of an upper triangular matrix, which condition is checked? अपर ट्रायंगुलर मैट्रिक्स के एलिमेंट्स को प्रिंट करने वाले फ्लोचार्ट में, कौन सी कंडीशन चेक की जाती है?
89
What will be printed? क्या प्रिंट होगा? x = 10 def f(): x = 20 print(x) f() print(x)
90
What does assert do? एसर्ट क्या करता है?
91
What is the output of following? निम्न का आउटपुट क्या होगा? lst = [1, 2, 3, 4] print(lst[::-1])
92
Which function writes a list of strings to a file? कौन सा फंक्शन स्ट्रिंग्स की एक लिस्ट को फाइल में लिखता है?
93
What is the type of input received using input()? input() का उपयोग करके किस तरह का इनपुट मिलता है?
94
Which of the following is a mutable object? निम्न में से कौन सा म्यूटेबल ऑब्जेक्ट है?
95
What happens when this code is executed? जब यह कोड चलाया जाता है तो क्या होता है? f = open("data.txt", "r") f.write("Hello") f.close()
96
Which scope is created by a function defined inside another function? किसी दूसरे फंक्शन के अंदर परिभाषित फंक्शन द्वारा कौन सा स्कोप बनता है?
97
What is the result of print(10 // 3)? print(10 // 3) का परिणाम क्या होगा?
98
Which loop is preferred when the number of iterations is known? जब इटरेशन की संख्या पता हो तो कौन सा लूप बेहतर है?
99
A Python module is: पायथन मॉड्यूल ________ है:
100
What is the output of following? निम्न का आउटपुट क्या होगा? def test(): return print(test())
Answered: 0 / 100