Python Programming (M3-R5) ke exam mein sabse badi dikkat tab aati hai jab students ko code output, loops, functions, aur NumPy se aane wale tricky MCQs ka exact pattern nahi pata hota. Aapki isi problem ko solve karne ke liye humne yahan O Level M3-R5 Jan 2026 Previous Year Question Paper with Answers ko Hindi aur English dono bhashaon mein pura solve karke diya hai. Is post mein aapko January 2026 mein hue Programming and Problem Solving through Python ke original old question paper ke sabhi questions aur unke 100% accurate solutions ek saath padhne ko milenge, jisse aap har coding logic ko aasani se samajh payenge. Niche diye gaye paper sets ko abhi step-by-step padhein, aur agar aap isi previous paper ki timer ke saath practice ya offline file chahte hain, toh isi post mein diye gaye Online Test aur PDF Download links ka use karein.
All Previous Papers Page Link- Previous Papers of O Level

M3-R5 January 2026 O Level Previous Paper Question Answers
Q. 1. “nielit” को “Nielit” में कन्वर्ट करने के लिए कौन सा Python मेथड यूज किया जाता है?
Which Python method is used to convert “nielit” into “Nielit”?
(A) upper()
(B) lower()
(C) capitalize()
(D) swapcase()
Correct Answer: (C) capitalize()
Explanation: Python में capitalize() स्ट्रिंग मेथड किसी स्ट्रिंग के केवल पहले अक्षर को बड़े (Uppercase) में और बाकी सभी अक्षरों को छोटे (Lowercase) में बदल देता है।
Q. 2. निम्नलिखित Python कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
L = [None] * 10
print(len(L))
(A) 0
(B) 10
(C) None
(D) Error
Correct Answer: (B) 10
Explanation: [None] * 10 स्टेटमेंट लिस्ट में None एलिमेंट को 10 बार दोहराकर 10 एलिमेंट्स वाली एक लिस्ट बनाता है, इसलिए len(L) का आउटपुट 10 होगा।
Q. 3. फ्लोचार्ट में ओवल (Oval) शेप का उपयोग किस लिए किया जाता है?
What is the Oval shape used for in a flowchart?
(A) Processing
(B) Input / Output
(C) Decision
(D) Start / End
Correct Answer: (D) Start / End
Explanation: फ्लोचार्ट में ओवल (अंडाकार या Terminal सिंबल) का उपयोग प्रोग्राम या एल्गोरिदम की शुरुआत (Start) और समाप्ति (End/Stop) को दर्शाने के लिए किया जाता है।
Q. 4. निम्न में से कौन सी टेक्स्ट फाइल की फाइल एक्सटेंशन नहीं है?
Which of the following is NOT a file extension of a text file?
(A) .txt
(B) .csv
(C) .rtf
(D) .dat (Binary file)
Correct Answer: (D) .dat (Binary file)
Explanation: .txt, .csv और .rtf मानव द्वारा पढ़े जा सकने वाले टेक्स्ट फाइल एक्सटेंशन हैं, जबकि .dat सामान्यतः बाइनरी डेटा स्टोर करने वाली बाइनरी फाइल होती है।
Q. 5. स्यूडोकोड (Pseudocode) में पदानुक्रम (Hierarchy) को कैसे दिखाया जाता है?
How is hierarchy represented in pseudocode?
(A) Semicolons
(B) Curly braces
(C) Parentheses
(D) Indentation
Correct Answer: (D) Indentation
Explanation: स्यूडोकोड और Python में लूप या कंडीशनल स्टेटमेंट्स के पदानुक्रम (Hierarchy और ब्लॉक संरचना) को दिखाने के लिए इंडेंटेशन (शुरुआती खाली स्पेस) का उपयोग किया जाता है।
Q. 6. प्रोग्रामिंग में रिफैक्टरिंग (Refactoring) का मतलब क्या होता है?
What does Refactoring mean in programming?
(A) Deleting the entire program
(B) Improving code structure without changing its behavior
(C) Converting Python code into HTML
(D) Adding syntax errors intentionally
Correct Answer: (B) Improving code structure without changing its behavior
Explanation: कोड के बाहरी व्यवहार या आउटपुट में कोई बदलाव किए बिना उसकी आंतरिक संरचना को साफ, पठनीय और कुशल बनाने की प्रक्रिया को Refactoring कहते हैं।
Q. 7. Python में seek() मेथड का उद्देश्य क्या है?
What is the purpose of the seek() method in Python?
(A) To delete the file
(B) To change the current file pointer position
(C) To close the file
(D) To rename the file
Correct Answer: (B) To change the current file pointer position
Explanation: फाइल हैंडलिंग में seek() मेथड का उपयोग फाइल पॉइंटर (File Handle) को किसी विशेष बाइट पोजिशन पर ले जाने के लिए किया जाता है (जबकि tell() वर्तमान पोजिशन बताता है)।
Q. 8. निम्नलिखित निर्देश द्वारा प्रदर्शित आउटपुट क्या होगा?
What will be the output displayed by the following instruction?
L = [“Programming”, “and”, “Problem”, “Solving”, “through”, “Python”]
print(L[3])
(A) Problem
(B) Solving
(C) through
(D) Python
Correct Answer: (B) Solving
Explanation: Python लिस्ट में इंडेक्सिंग 0 से शुरू होती है (0 पर “Programming”, 1 पर “and”, 2 पर “Problem” और 3 पर “Solving”), इसलिए L[3] का आउटपुट Solving होगा।
Q. 9. निम्न में से कौन सी एक प्रोग्रामिंग लैंग्वेज है?
Which of the following is a programming language?
(A) Windows
(B) MS Word
(C) Python
(D) HTML
Correct Answer: (C) Python
Explanation: Windows एक ऑपरेटिंग सिस्टम है, MS Word एक वर्ड प्रोसेसर है और HTML एक मार्कअप लैंग्वेज है, जबकि Python एक हाई-लेवल प्रोग्रामिंग लैंग्वेज है।
Q. 10. Python में if ब्लॉक के अंदर स्टेटमेंट की संख्या कितनी हो सकती है?
The number of statements inside an if block in Python is ______.
(A) Only 1
(B) Maximum 2
(C) One or more
(D) Zero
Correct Answer: (C) One or more
Explanation: Python के किसी भी if ब्लॉक के अंदर कम से कम एक या आवश्यकतानुसार एक से अधिक (One or more) स्टेटमेंट्स लिखे जा सकते हैं।
Q. 11. NumPy में एरे (Array) का शेप बदलने के लिए कौन सा मेथड उपयोग किया जाता है?
Which method is used to change the shape of an array in NumPy?
(A) resize()
(B) reshape()
(C) change()
(D) modify()
Correct Answer: (B) reshape()
Explanation: NumPy एरे के डेटा में बदलाव किए बिना उसके डायमेंशन (रो और कॉलम की संख्या) को बदलने के लिए reshape() मेथड का उपयोग किया जाता है।
Q. 12. Python में स्ट्रिंग के एलिमेंट के इंडेक्स वैल्यू की डेटा टाइप क्या होती है?
What is the data type of the index value of elements in a string in Python?
(A) Float
(B) Integer
(C) String
(D) Boolean
Correct Answer: (B) Integer
Explanation: Python में स्ट्रिंग, लिस्ट या टपल के किसी भी एलिमेंट को एक्सेस करने के लिए इंडेक्स नंबर हमेशा पूर्णांक (Integer, जैसे 0, 1, -1) ही होता है।
Q. 13. प्रोग्रामिंग में एल्गोरिदम का उपयोग करने का निम्न में से कौन सा लाभ (Benefit) नहीं है?
Which of the following is NOT a benefit of using algorithms in programming?
(A) Improved accuracy
(B) Easy maintenance
(C) Improved security
(D) Increased efficiency
Correct Answer: (C) Improved security
Explanation: एल्गोरिदम समस्या को चरणबद्ध तरीके से हल करके प्रोग्राम की सटीकता, दक्षता और रखरखाव को आसान बनाता है, लेकिन यह सीधे तौर पर साइबर या डेटा सुरक्षा (Security) प्रदान नहीं करता।
Q. 14. वैध निर्देशों (Valid Instructions) के निर्माण को नियंत्रित करने वाले औपचारिक व्याकरण नियमों को क्या कहा जाता है?
The formal grammar rules governing the construction of valid instructions are called ______.
(A) Semantics
(B) Logic
(C) Syntax
(D) Algorithm
Correct Answer: (C) Syntax
Explanation: किसी भी प्रोग्रामिंग भाषा में कोड और निर्देशों को सही ढंग से लिखने के व्याकरण संबंधी नियमों को सिंटैक्स (Syntax) कहा जाता है।
Q. 15. फ्लोचार्ट में किस सिंबल का उपयोग एक भाग से दूसरे भाग में कंटिन्यूएशन दिखाने के लिए कनेक्टर के रूप में किया जाता है?
In a flowchart, which symbol is used as a connector to show continuation from one part to another?
(A) Rectangle
(B) Diamond
(C) Circle
(D) Parallelogram
Correct Answer: (C) Circle
Explanation: जब फ्लोचार्ट बड़ा हो जाता है, तो एक हिस्से को दूसरे हिस्से से जोड़ने (On-page Connector) के लिए छोटे वृत्त यानी Circle सिंबल का उपयोग किया जाता है।
Q. 16. निम्न Python कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
import math
print(math.copysign(3, -1))
(A) 3.0
(B) -3.0
(C) -1.0
(D) 3
Correct Answer: (B) -3.0
Explanation: math.copysign(x, y) फंक्शन पहले नंबर (x=3) का मान और दूसरे नंबर (y=-1) का चिन्ह लेकर हमेशा फ्लोट (Float) रूप में आउटपुट (-3.0) लौटाता है।
Q. 17. Python में math मॉड्यूल को इम्पोर्ट करने का सही सिंटैक्स कौन सा है?
Which is the correct syntax to import the math module in Python?
(A) import math
(B) Import Math
(C) IMPORT math
(D) include math
Correct Answer: (A) import math
Explanation: Python केस-सेंसिटिव भाषा है, इसलिए इसमें मॉड्यूल इम्पोर्ट करने के लिए छोटे अक्षरों में ‘import math’ लिखा जाता है।
Q. 18. स्यूडोकोड (Pseudocode) किसके लिए उपयोग किया जाता है?
What is pseudocode used for?
(A) To execute the program directly on hardware
(B) To design the logic of a program
(C) To compile machine code
(D) To style web pages
Correct Answer: (B) To design the logic of a program
Explanation: कोडिंग शुरू करने से पहले प्रोग्राम के लॉजिक और स्टेप्स को आसान मानवीय भाषा में डिजाइन करने के लिए स्यूडोकोड (Pseudocode) लिखा जाता है।
Q. 19. पैकेज से मॉड्यूल आयात (Import) करने के लिए Python में किस ऑपरेटर का उपयोग किया जाता है?
Which operator is used in Python to import modules from a package?
(A) . (Dot operator)
(B) + (Plus operator)
(C) – (Minus operator)
(D) % (Modulus operator)
Correct Answer: (A) . (Dot operator)
Explanation: Python में किसी पैकेज के अंदर मौजूद सब-पैकेज या मॉड्यूल को एक्सेस व इम्पोर्ट करने के लिए डॉट ऑपरेटर (.) का उपयोग किया जाता है (जैसे import package.module)।
Q. 20. Python में सिंगल लाइन कमेंट के लिए किस सिंबल का यूज किया जाता है?
Which symbol is used for a single-line comment in Python?
(A) //
(B) #
(C) /* */
(D) —
Correct Answer: (B) #
Explanation: Python में सिंगल-लाइन कमेंट लिखने के लिए हैश (#) सिंबल का उपयोग किया जाता है; इंटरप्रेटर # के बाद लिखी लाइन को अनदेखा कर देता है।
Q. 21. NumPy में डायमेंशन (Dimension) को और किस नाम से जाना जाता है?
By what other name is dimension known in NumPy?
(A) Shape
(B) Size
(C) Rank
(D) Type
Correct Answer: (C) Rank
Explanation: NumPy में किसी एरे के कुल डायमेंशन (Axes) की संख्या को उस एरे की रैंक (Rank या ndim) भी कहा जाता है।
Q. 22. स्यूडोकोड (Pseudocode) के बारे में निम्न में से कौन सा कथन सही है?
Which of the following is correct about pseudocode?
(A) It is executed by the computer
(B) It is written in plain English to describe the steps
(C) It is always written in Python
(D) It stores data in a database
Correct Answer: (B) It is written in plain English to describe the steps
Explanation: स्यूडोकोड कोई प्रोग्रामिंग भाषा नहीं है, बल्कि यह किसी एल्गोरिदम के चरणों को साधारण अंग्रेजी (Plain English) में लिखने का एक अनौपचारिक तरीका है।
Q. 23. Python में 2 ^ 5 का आउटपुट क्या होगा?
What is the output of 2 ^ 5 in Python?
(A) 32
(B) 7
(C) 10
(D) 3
Correct Answer: (B) 7
Explanation: Python में ^ एक बिटवाइज XOR (Bitwise Exclusive OR) ऑपरेटर है; 2 का बाइनरी (010) और 5 का बाइनरी (101) का XOR करने पर 111 यानी 7 प्राप्त होता है।
Q. 24. हम सिस्टम में NumPy को कैसे इंस्टॉल कर सकते हैं?
How can we install NumPy in the system?
(A) install numpy
(B) python install numpy
(C) pip install numpy
(D) get numpy
Correct Answer: (C) pip install numpy
Explanation: Python के पैकेज मैनेजर PIP की मदद से कमांड प्रॉम्प्ट या टर्मिनल में ‘pip install numpy’ कमांड चलाकर NumPy लाइब्रेरी इंस्टॉल की जाती है।
Q. 25. निम्नलिखित रिकर्सिव फंक्शन कोड का आउटपुट क्या होगा?
What will be the output of the following recursive function code?
def factorial(x):
if x == 1:
return 1
else:
return (x * factorial(x-1))
print(factorial(3))
(A) 3
(B) 6
(C) 9
(D) 1
Correct Answer: (B) 6
Explanation: यह रिकर्सिव फंक्शन 3 का फैक्टोरियल (3 * 2 * 1) कैलकुलेट करेगा, जिसका परिणाम 6 प्राप्त होगा।
Q. 26. Python में sys मॉड्यूल क्यों उपयोग किया जाता है?
Why is the sys module used in Python?
(A) To access command-line arguments
(B) To create HTML web pages
(C) To draw graphics and shapes
(D) To perform database queries only
Correct Answer: (A) To access command-line arguments
Explanation: Python का sys मॉड्यूल इंटरप्रेटर से जुड़े वेरिएबल्स और फंक्शन्स (जैसे sys.argv के माध्यम से कमांड-लाइन आर्गुमेंट्स और sys.path) को एक्सेस करने की सुविधा देता है।
Q. 27. Python में “Hello” + 1 + 2 + 3 का आउटपुट क्या होगा?
What will be the output of “Hello” + 1 + 2 + 3 in Python?
(A) Hello123
(B) Hello6
(C) TypeError
(D) ValueError
Correct Answer: (C) TypeError
Explanation: Python में स्ट्रिंग (“Hello”) और इंटीजर (1, 2, 3) को सीधे + ऑपरेटर से नहीं जोड़ा जा सकता, ऐसा करने पर TypeError आता है।
Q. 28. Python ऐसी कौन सी लाइब्रेरी प्रदान करता है जो इमेज के टाइप को पता लगाने में मदद करती है?
Which library does Python provide that helps in determining the type of an image?
(A) math
(B) imghdr
(C) random
(D) time
Correct Answer: (B) imghdr
Explanation: Python की स्टैंडर्ड लाइब्रेरी में imghdr मॉड्यूल का उपयोग किसी फाइल या बाइट स्ट्रीम में मौजूद इमेज के फॉर्मेट (जैसे PNG, JPEG, GIF) की पहचान करने के लिए किया जाता है।
Q. 29. निम्नलिखित एक्सप्रेशन 2 * 3 * 8 ** 3 * 4 का आउटपुट क्या होगा?
What will be the output of the following expression 2 * 3 * 8 ** 3 * 4?
(A) 4096
(B) 6144
(C) 12288
(D) 3072
Correct Answer: (C) 12288
Explanation: ऑपरेटर प्रेसीडेंसी के अनुसार सबसे पहले घातांक 8 ** 3 = 512 हल होगा, और फिर गुणा करने पर (2 * 3 * 512 * 4) उत्तर 12288 प्राप्त होगा।
Q. 30. Python में मेमोरी मैनेजमेंट के बारे में कौन सा कथन सही है?
Which statement is true about memory management in Python?
(A) Python automatically manages memory through garbage collection
(B) Programmer must manually allocate and free memory for every variable
(C) Python does not support memory management
(D) Memory can only be freed by restarting the computer
Correct Answer: (A) Python automatically manages memory through garbage collection
Explanation: Python में प्राइवेट हीप स्पेस और ऑटोमैटिक गार्बेज कलेक्टर (Garbage Collection) होता है जो उपयोग में न आने वाली मेमोरी को अपने आप फ्री कर देता है।
Q. 31. Python के जनक (Father) कौन हैं?
Who is the father of Python?
(A) Dennis Ritchie
(B) James Gosling
(C) Guido van Rossum
(D) Bjarne Stroustrup
Correct Answer: (C) Guido van Rossum
Explanation: Python प्रोग्रामिंग भाषा को नीदरलैंड के कंप्यूटर वैज्ञानिक गुइडो वैन रोसम (Guido van Rossum) द्वारा विकसित किया गया था और इसे वर्ष 1991 में पहली बार जारी किया गया था।
Q. 32. print(sum(1, 2, 3)) का आउटपुट क्या होगा?
What will be the output of print(sum(1, 2, 3))?
(A) 6
(B) Error (TypeError)
(C) 123
(D) 3
Correct Answer: (B) Error (TypeError)
Explanation: Python का sum() फंक्शन अपने पहले आर्गुमेंट के रूप में कोई इटरेबल (जैसे लिस्ट या टपल: sum([1, 2, 3])) लेता है; सीधे अलग-अलग संख्याएं देने पर TypeError आता है।
Q. 33. इनडायरेक्ट रिकर्शन (Indirect Recursion) की अवधारणा क्या है?
What is the concept of Indirect Recursion?
(A) A function calling itself directly
(B) A function that never terminates
(C) Two or more functions calling each other in a cycle
(D) A loop inside a function
Correct Answer: (C) Two or more functions calling each other in a cycle
Explanation: जब एक फंक्शन सीधे खुद को कॉल न करके किसी दूसरे फंक्शन को कॉल करता है और वह दूसरा फंक्शन वापस पहले फंक्शन को कॉल करता है, तो इसे Indirect Recursion कहते हैं।
Q. 34. NumPy में int32 डेटा टाइप की रेंज क्या है?
What is the range of the int32 data type in NumPy?
(A) -128 to 127
(B) -32768 to 32767
(C) -2147483648 to 2147483647
(D) 0 to 65535
Correct Answer: (C) -2147483648 to 2147483647
Explanation: 32-बिट साइन्ड इंटीजर (int32) की रेंज -2^31 से (2^31 – 1) अर्थात -2,147,483,648 से लेकर 2,147,483,647 तक होती है।
Q. 35. Python में कौन सा एनवायरनमेंट वेरिएबल इंटरप्रेटर को बताता है कि इम्पोर्टेड मॉड्यूल कहां से लोड करने हैं?
Which environment variable in Python tells the interpreter where to locate imported modules?
(A) PYTHONPATH
(B) PYTHONHOME
(C) PYTHONMOD
(D) PATHLOAD
Correct Answer: (A) PYTHONPATH
Explanation: PYTHONPATH एक एनवायरनमेंट वेरिएबल है जिसमें उन अतिरिक्त डायरेक्टरीज़ की सूची सेट की जाती है जहाँ Python इंटरप्रेटर किसी मॉड्यूल को import करते समय खोजता है।
Q. 36. NumPy का उपयोग करके एरे का स्टैंडर्ड डेविएशन (Standard Deviation) निकालने के लिए फॉर्मूला क्या है?
What is the formula to calculate the standard deviation of an array using NumPy?
(A) np.mean(arr)
(B) np.var(arr)
(C) np.std(arr)
(D) np.median(arr)
Correct Answer: (C) np.std(arr)
Explanation: NumPy एरे के डेटा का मानक विचलन (Standard Deviation) निकालने के लिए np.std(arr) फंक्शन का उपयोग किया जाता है (जबकि औसत के लिए np.mean होता है)।
Q. 37. Python में स्कोप (Scope) से क्या मतलब होता है?
What does Scope mean in Python?
(A) The data type of a variable
(B) The speed of program execution
(C) Area where a variable is accessible
(D) The size of a file on disk
Correct Answer: (C) Area where a variable is accessible
Explanation: प्रोग्राम का वह क्षेत्र (जैसे Local या Global ब्लॉक) जहाँ किसी वेरिएबल को पहचाना और उपयोग (Access) किया जा सकता है, उस वेरिएबल का स्कोप (Scope) कहलाता है।
Q. 38. NumPy में एरे डायमेंशन (रो और कॉलम का आकार/शेप) कैसे दर्शाते हैं?
How are array dimensions (shape of rows and columns) represented in NumPy?
(A) array.len
(B) array.type
(C) array.shape
(D) array.count
Correct Answer: (C) array.shape
Explanation: NumPy में किसी एरे के प्रत्येक डायमेंशन के आकार (जैसे कितनी पंक्तियाँ और कितने स्तंभ हैं) को टपल के रूप में जानने के लिए array.shape एट्रिब्यूट का उपयोग किया जाता है।
Q. 39. NumPy क्या है?
What is NumPy?
(A) A web browser
(B) A Python library used for scientific computing and working with arrays
(C) A text editor
(D) An operating system
Correct Answer: (B) A Python library used for scientific computing and working with arrays
Explanation: NumPy (Numerical Python) वैज्ञानिक गणनाओं और बहु-आयामी एरे (Multi-dimensional arrays) व मैट्रिक्स पर तेज गणितीय कार्य करने के लिए Python की मुख्य लाइब्रेरी है।
Q. 40. Python में टपल (Tuple) और लिस्ट (List) के बीच मुख्य क्या अंतर है?
What is the difference between Tuple and List in Python?
(A) Tuple is mutable, List is immutable
(B) Tuple uses square brackets, List uses round brackets
(C) Tuple is immutable, List is mutable
(D) Both Tuple and List are immutable
Correct Answer: (C) Tuple is immutable, List is mutable
Explanation: लिस्ट एक म्यूटेबल (Mutable) डेटा टाइप है जिसके एलिमेंट्स को बदला जा सकता है, जबकि टपल इम्यूटेबल (Immutable) होता है जिसके बनने के बाद उसमें बदलाव नहीं किया जा सकता।
Q. 41. डेटा फाइल्स को सामान्यतः स्थायी रूप से कहां रखा जाता है?
Where are data files usually stored permanently?
(A) Cache memory only
(B) Secondary storage device (Disk)
(C) CPU registers
(D) ALU
Correct Answer: (B) Secondary storage device (Disk)
Explanation: डेटा फाइलों को स्थायी रूप से सुरक्षित रखने के लिए हार्ड डिस्क या SSD जैसी सेकेंडरी स्टोरेज डिवाइस (Secondary Storage) पर स्टोर किया जाता है।
Q. 42. निम्न NumPy कोड np.arange(1, 11, 2) का आउटपुट क्या होगा?
What will be the output of the following NumPy code np.arange(1, 11, 2)?
(A) [1 2 3 4 5 6 7 8 9 10]
(B) [2 4 6 8 10]
(C) [1 3 5 7 9]
(D) [1 3 5 7 9 11]
Correct Answer: (C) [1 3 5 7 9]
Explanation: np.arange(start=1, stop=11, step=2) 1 से शुरू करके 2-2 के अंतर (Step) से 11 से ठीक पहले तक की विषम संख्याओं का एरे [1 3 5 7 9] बनाएगा।
Q. 43. while 1 == 3: लूप कितनी बार चलेगा?
How many times will while 1 == 3: execute?
(A) 1 time
(B) 3 times
(C) Infinite times
(D) 0 times
Correct Answer: (D) 0 times
Explanation: चूंकि शर्त 1 == 3 हमेशा असत्य (False) है, इसलिए यह while लूप एक बार भी रन नहीं होगा (0 times)।
Q. 44. निम्नलिखित एक्सप्रेशन 8 / 4 / 2, 8 / (4 / 2) का आउटपुट क्या होगा?
What will be the output of the following expression 8 / 4 / 2, 8 / (4 / 2)?
(A) (1.0, 4.0)
(B) (4.0, 1.0)
(C) (1, 4)
(D) (2.0, 2.0)
Correct Answer: (A) (1.0, 4.0)
Explanation: पहले भाग में बाएं से दाएं भाग होने पर (8/4 = 2.0, और 2.0/2 = 1.0) आएगा, जबकि दूसरे भाग में ब्रैकेट पहले हल होने से 8 / (2.0) = 4.0 प्राप्त होगा।
Q. 45. NumPy का पूरा नाम क्या है?
What is the full form of NumPy?
(A) Numerical Python
(B) Number System Python
(C) New Module Python
(D) Numeric Pyramid
Correct Answer: (A) Numerical Python
Explanation: NumPy का पूरा नाम Numerical Python है, जिसे वर्ष 2005 में ट्रैविस ओलिफेंट (Travis Oliphant) द्वारा बनाया गया था।
Q. 46. मॉड्यूलर प्रोग्रामिंग (Modular Programming) क्या होती है?
What is modular programming?
(A) Writing the entire program in a single line
(B) Dividing a program into small independent modules/functions
(C) Writing programs without using any functions
(D) Executing programs without an operating system
Correct Answer: (B) Dividing a program into small independent modules/functions
Explanation: किसी बड़े और जटिल प्रोग्राम को छोटे-छोटे स्वतंत्र और प्रबंधनीय भागों (Modules या Functions) में बांटकर लिखने की तकनीक को मॉड्यूलर प्रोग्रामिंग कहते हैं।
Q. 47. Python में निम्न में से कौन सा म्यूटेबल (Mutable) डेटा टाइप है?
Which of the following is a mutable data type in Python?
(A) Tuple
(B) String
(C) List
(D) Integer
Correct Answer: (C) List
Explanation: Python में Tuple, String और Integer इम्यूटेबल (अपरिवर्तनीय) होते हैं, जबकि List, Dictionary और Set म्यूटेबल (परिवर्तनीय) डेटा टाइप हैं।
Q. 48. नीचे दिए गए कोड का आउटपुट क्या होगा?
What will be the output of the given code?
x = 0
for i in range(2, 8):
x = x + i
print(x)
(A) 20
(B) 25
(C) 35
(D) 27
Correct Answer: (D) 27
Explanation: range(2, 8) से 2, 3, 4, 5, 6 और 7 संख्याएं मिलेंगी; इन सभी को जोड़ने पर (2 + 3 + 4 + 5 + 6 + 7 = 27) अंतिम उत्तर 27 प्रिंट होगा।
Q. 49. निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?
my = “Hello, World!”
print(my[7::1])
(A) Hello,
(B) World!
(C) o, World!
(D) ld!
Correct Answer: (B) World!
Explanation: स्ट्रिंग “Hello, World!” में इंडेक्स 7 पर अक्षर ‘W’ है; इसलिए स्लाइसिंग my[7::1] इंडेक्स 7 से अंत तक के सभी अक्षर यानी ‘World!’ प्रिंट करेगी।
Q. 50. निम्नलिखित एक्सप्रेशन print(12 // 3 ** 2) का आउटपुट क्या होगा?
What will be the output of the following expression print(12 // 3 ** 2)?
(A) 1
(B) 16
(C) 4
(D) 0
Correct Answer: (A) 1
Explanation: ऑपरेटर प्राथमिकता के अनुसार पहले घातांक (3 ** 2 = 9) हल होगा, और फिर फ्लोर डिवीजन (12 // 9) करने पर पूर्णांक भागफल 1 प्राप्त होगा।
Q. 51. निम्नलिखित में से कौन सी Python की एक प्राथमिक विशेषता (Primary Feature) है?
Which of the following is a primary feature of Python?
(A) It is a low-level assembly language
(B) It is an interpreted language
(C) It requires manual memory allocation in pointers
(D) It runs only on Windows OS
Correct Answer: (B) It is an interpreted language
Explanation: Python एक हाई-लेवल, इंटरप्रेटेड (Interpreted) प्रोग्रामिंग भाषा है, जिसका कोड लाइन-बाय-लाइन निष्पादित होता है।
Q. 52. Python के इंस्टॉल्ड वर्जन को चेक करने के लिए किस कमांड का उपयोग किया जाता है?
Which command is used to check the installed version of Python?
(A) python –version
(B) python version()
(C) check python
(D) py -check
Correct Answer: (A) python –version
Explanation: कमांड प्रॉम्प्ट या टर्मिनल में कंप्यूटर पर इंस्टॉल किए गए Python का वर्जन देखने के लिए ‘python –version’ (या ‘python -V’) कमांड का उपयोग किया जाता है।
Q. 53. Python फाइल का स्टैंडर्ड एक्सटेंशन क्या होता है?
What is the file extension of a Python file?
(A) .py
(B) .pt
(C) .pyt
(D) .java
Correct Answer: (A) .py
Explanation: Python सोर्स कोड फाइलों को सेव करने के लिए डिफ़ॉल्ट रूप से .py फाइल एक्सटेंशन का उपयोग किया जाता है।
Q. 54. निम्नलिखित कोड स्निपेट (जिसमें बिना किसी ब्लॉक के शुरुआती स्पेस दिया गया है) में कौन सी एरर आएगी: print("Hello World")?
Consider the following code snippet with unexpected leading spaces: print("Hello World") — which error will occur?
(A) ValueError
(B) IndentationError
(C) TypeError
(D) NameError
Correct Answer: (B) IndentationError
Explanation: Python में बिना किसी ब्लॉक (जैसे if, for, def) के लाइन की शुरुआत में अनावश्यक स्पेस या टैब देने पर IndentationError (unexpected indent) आती है।
Q. 55. किसी स्ट्रिंग की लंबाई (Length) प्राप्त करने के लिए किस फंक्शन का उपयोग किया जाता है?
Which function is used to get the length of a string in Python?
(A) len()
(B) length()
(C) size()
(D) count()
Correct Answer: (A) len()
Explanation: Python में किसी स्ट्रिंग में मौजूद कुल अक्षरों (या लिस्ट/टपल के कुल एलिमेंट्स) की संख्या गिनने के लिए बिल्ट-इन फंक्शन len() का उपयोग होता है।
Q. 56. आप Python में एक डिक्शनरी (Dictionary) कैसे बना सकते हैं?
How can you create a dictionary in Python?
(A) d = [1, 2, 3]
(B) d = (1, 2, 3)
(C) d = {“name”: “Raj”, “age”: 20}
(D) d = “Dictionary”
Correct Answer: (C) d = {“name”: “Raj”, “age”: 20}
Explanation: Python में डिक्शनरी को कर्ली ब्रैकेट्स { } के अंदर Key:Value जोड़े (जैसे {“name”: “Raj”, “age”: 20}) के रूप में बनाया जाता है।
Q. 57. निम्नलिखित कोड का आउटपुट क्या होगा: print(“Python”.replace(“P”, “J”))?
What will be the output of the following code: print(“Python”.replace(“P”, “J”))?
(A) Python
(B) Jython
(C) PJython
(D) Error
Correct Answer: (B) Jython
Explanation: replace(“P”, “J”) मेथड स्ट्रिंग “Python” में से अक्षर “P” को हटाकर उसकी जगह “J” लगा देगा, जिससे आउटपुट “Jython” मिलेगा।
Q. 58. निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?
x = [1, 2, 3]
x.extend([4, 5])
print(x)
(A) [1, 2, 3, 4, 5]
(B) [1, 2, 3, [4, 5]]
(C) [4, 5]
(D) Error
Correct Answer: (A) [1, 2, 3, 4, 5]
Explanation: लिस्ट का extend() मेथड दूसरी लिस्ट के प्रत्येक एलिमेंट को अलग-अलग निकालकर पहली लिस्ट के अंत में जोड़ देता है, जिससे [1, 2, 3, 4, 5] प्राप्त होता है।
Q. 59. Python में एक ब्लॉक के भीतर के स्टेटमेंट्स को किसके द्वारा परिभाषित (Group) किया जाता है?
The statements within a block in Python are defined using ______.
(A) Indentation
(B) Curly brackets { }
(C) Square brackets [ ]
(D) Semicolons ;
Correct Answer: (A) Indentation
Explanation: C या Java की तरह कर्ली ब्रैकेट्स { } के बजाय, Python में कोड के किसी ब्लॉक (जैसे फंक्शन या लूप बॉडी) को परिभाषित करने के लिए Indentation (समान खाली जगह) का उपयोग होता है।
Q. 60. डेटा टाइप लिस्ट (List) एक ऑर्डर्ड सीक्वेंस है जो ______ होता है और एक या अधिक एलिमेंट्स से मिलकर बना होता है।
The data type List is an ordered sequence which is ______ and made up of one or more elements.
(A) Mutable
(B) Immutable
(C) Unordered
(D) Constant
Correct Answer: (A) Mutable
Explanation: Python में List एक क्रमबद्ध (Ordered) और परिवर्तनशील (Mutable) डेटा स्ट्रक्चर है, जिसके आइटम्स को कभी भी बदला, जोड़ा या हटाया जा सकता है।
Q. 61. नीचे दी गई सूची में से कौन सा स्टेटमेंट Python में एक लिस्ट बनाता है?
Which statement from the list below creates a list in Python?
(A) new = list()
(B) new = [1, 2, 3, 4]
(C) Both (A) and (B)
(D) None of the above
Correct Answer: (C) Both (A) and (B)
Explanation: Python में बिल्ट-इन फंक्शन list() का उपयोग करके या स्क्वायर ब्रैकेट्स [ ] के अंदर एलिमेंट्स लिखकर, दोनों तरीकों से नई लिस्ट बनाई जा सकती है।
Q. 62. Python में एक लिस्ट (List) में क्या शामिल हो सकता है?
A list in Python can contain ______.
(A) Integers
(B) Floats
(C) Strings and Tuples
(D) All of the above
Correct Answer: (D) All of the above
Explanation: Python की लिस्ट एक हेटेरोजेनियस (Heterogeneous) डेटा स्ट्रक्चर है जिसमें पूर्णांक (Integers), दशमलव (Floats), स्ट्रिंग, टपल या अन्य लिस्ट भी एक साथ स्टोर की जा सकती हैं।
Q. 63. लिस्ट के एलिमेंट्स स्क्वायर ______ में बंद (Enclosed) होते हैं और ______ द्वारा अलग किए जाते हैं।
List elements are enclosed in square ______ and separated by ______.
(A) Parentheses, Semicolons
(B) Brackets [ ], Commas (,)
(C) Braces { }, Colons (:)
(D) Quotes, Spaces
Correct Answer: (B) Brackets [ ], Commas (,)
Explanation: Python में किसी भी लिस्ट के आइटम्स को हमेशा स्क्वायर ब्रैकेट्स [ ] के अंदर लिखा जाता है और प्रत्येक आइटम को अल्पविराम (Comma ,) से अलग किया जाता है।
Q. 64. लिस्ट के एलिमेंट्स किस डेटा टाइप के हो सकते हैं?
List elements may be of the following data types:
(A) Only integer data type
(B) Only string data type
(C) Different (any) data types
(D) Only boolean data type
Correct Answer: (C) Different (any) data types
Explanation: एक ही Python लिस्ट के अंदर अलग-अलग (Different/Any) डेटा टाइप के एलिमेंट्स एक साथ रखे जा सकते हैं।
Q. 65. Python में “Lists are mutable” का क्या मतलब होता है?
In Python, “Lists are mutable” means ______.
(A) The list cannot be deleted
(B) The contents of the list can be changed after creation
(C) The list can store only numbers
(D) The list has a fixed length
Correct Answer: (B) The contents of the list can be changed after creation
Explanation: “Lists are mutable” का अर्थ है कि लिस्ट बनने के बाद भी उसके अंदर के एलिमेंट्स को बदला, नया जोड़ा या हटाया जा सकता है।
Q. 66. निम्नलिखित कोड का आउटपुट क्या होगा: print(list(“Python”))?
What will be the output of the following code: print(list(“Python”))?
(A) “Python”
(B) [“Python”]
(C) [‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’]
(D) (‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’)
Correct Answer: (C) [‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’]
Explanation: list() कंस्ट्रक्टर में कोई स्ट्रिंग पास करने पर वह स्ट्रिंग के प्रत्येक अक्षर को अलग-अलग एलिमेंट बनाकर एक लिस्ट [‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’] लौटाता है।
Q. 67. डेटा टाइप लिस्ट किसके माध्यम से अपने कंटेंट के मैनिपुलेशन (Manipulation) की अनुमति देता है?
The data type list allows manipulation of its contents through ______.
(A) Concatenation
(B) Repetition
(C) Membership and Slicing
(D) All of the above
Correct Answer: (D) All of the above
Explanation: Python लिस्ट पर जोड़ना (Concatenation +), दोहराना (Repetition *), सदस्यता जांच (in/not in) और स्लाइसिंग (Slicing) ये सभी ऑपरेशन्स किए जा सकते हैं।
Q. 68. Python में दो या अधिक लिस्ट को जोड़ने के लिए किस ऑपरेटर प्रक्रिया का उपयोग किया जाता है?
Python allows joining two or more lists using the ______ operator.
(A) Concatenation (+)
(B) Division (/)
(C) Modulus (%)
(D) Floor Division (//)
Correct Answer: (A) Concatenation (+)
Explanation: दो या दो से अधिक लिस्ट को आपस में जोड़कर एक नई लिस्ट बनाने के लिए कॉनकैटेनेशन ऑपरेटर (+) का उपयोग किया जाता है।
Q. 69. निम्नलिखित Python कोड क्या प्रिंट करता है: print(2 + 3 + 5)?
What does the following Python code print: print(2 + 3 + 5)?
(A) 235
(B) 10
(C) 2 + 3 + 5
(D) Error
Correct Answer: (B) 10
Explanation: चूंकि 2, 3 और 5 बिना कोट्स के पूर्णांक संख्याएं हैं, इसलिए + ऑपरेटर इनका अंकगणितीय योग करके 10 प्रिंट करेगा।
Q. 70. निम्नलिखित Python कोड क्या प्रिंट करता है: print("Only Python") # print("Java")?
What does the following Python code print: print("Only Python") # print("Java")?
(A) Java
(B) Only Python Java
(C) Error
(D) Only Python
Correct Answer: (D) Only Python
Explanation: हैश (#) के बाद लिखा गया हिस्सा # print("Java") कमेंट बन जाता है जिसे Python अनदेखा कर देता है, इसलिए केवल Only Python प्रिंट होगा।
Q. 71. Python किस प्रकार की प्रोग्रामिंग को सपोर्ट करता है?
Which type of programming does Python support?
(A) Object-oriented programming
(B) Structured programming
(C) Functional programming
(D) All of the above
Correct Answer: (D) All of the above
Explanation: Python एक मल्टी-पैराडाइम भाषा है जो ऑब्जेक्ट-ओरिएंटेड, स्ट्रक्चर्ड (प्रोसीजरल) और फंक्शनल प्रोग्रामिंग तीनों को सपोर्ट करती है।
Q. 72. Python में वेरिएबल नाम (Variable Name) के लिए निम्नलिखित में से कौन सा कथन सत्य है?
Which of the following is true for variable names in Python?
(A) Unlimited length
(B) Maximum 8 characters only
(C) Ampersand (&) can be used
(D) None of the above
Correct Answer: (A) Unlimited length
Explanation: Python में किसी वेरिएबल (Identifier) के नाम की लंबाई की कोई निश्चित सीमा नहीं होती, यह कितने भी अक्षरों (Unlimited length) का हो सकता है।
Q. 73. प्रोग्राम में वेरिएबल्स के बदलते मानों (Changing values of variables) की जांच करने को ‘Stepping’ कहा जाता है।
The examination of changing values of variables is called stepping.
(A) True
(B) False
(C) Cannot say
(D) May be
Correct Answer: (B) False
Explanation: यह कथन असत्य (False) है, क्योंकि प्रोग्राम निष्पादन के दौरान वेरिएबल्स के बदलते मानों पर नज़र रखने को ‘Tracing’ (या Watch) कहा जाता है, जबकि कोड को एक-एक लाइन चलाने को Stepping कहते हैं।
Q. 74. निम्नलिखित NumPy कोड का आउटपुट क्या होगा?
What will be the output of the following NumPy code?
import numpy as np
print(np.minimum([2, 3, 4], [1, 5, 2]))
(A) [1 3 2]
(B) [2 5 4]
(C) [1 2 3]
(D) [2 3 4]
Correct Answer: (A) [1 3 2]
Explanation: np.minimum() फंक्शन दोनों एरे के संगत एलिमेंट्स की आपस में तुलना करके छोटे मानों (2 व 1 में 1, 3 व 5 में 3, 4 व 2 में 2) का नया एरे [1 3 2] लौटाता है।
Q. 75. निम्नलिखित ऑब्जेक्ट L = [1, 5, 'abc', 3.6] का डेटा टाइप क्या है?
What is the data type of the following object L = [1, 5, 'abc', 3.6]?
(A) List
(B) Dictionary
(C) Tuple
(D) Array
Correct Answer: (A) List
Explanation: चूंकि एलिमेंट्स स्क्वायर ब्रैकेट्स [ ] के अंदर लिखे गए हैं, इसलिए ऑब्जेक्ट L का डेटा टाइप List है।
Q. 76. निम्नलिखित में से कौन सी Python लैंग्वेज की विशेषता (Feature) नहीं है?
Which of the following is NOT a feature of the Python language?
(A) Interpreted language
(B) Portable
(C) High-level language
(D) Case Insensitive
Correct Answer: (D) Case Insensitive
Explanation: Python एक केस-सेंसिटिव (Case Sensitive) प्रोग्रामिंग भाषा है जिसमें छोटे और बड़े अक्षरों (जैसे name और Name) को अलग-अलग माना जाता है, इसलिए ‘Case Insensitive’ इसकी विशेषता नहीं है।
Q. 77. क्या Python कोड कंपाइल्ड (Compiled) होता है या इंटरप्रेटेड (Interpreted)?
Is Python code compiled or interpreted?
(A) Python code is both compiled and interpreted
(B) Python code is neither compiled nor interpreted
(C) Python code is only compiled to machine code directly
(D) None of the above
Correct Answer: (A) Python code is both compiled and interpreted
Explanation: Python में सोर्स कोड पहले आंतरिक रूप से बाइटकोड (.pyc) में कंपाइल होता है और फिर Python Virtual Machine (PVM) द्वारा इंटरप्रेट किया जाता है, इसलिए यह दोनों है।
Q. 78. फ्लोचार्ट और एल्गोरिदम किस लिए उपयोग किए जाते हैं?
Flowchart and Algorithms are used for ______.
(A) Better programming
(B) Efficient coding
(C) Easy testing and debugging
(D) All of the above
Correct Answer: (D) All of the above
Explanation: प्रोग्राम लिखने से पहले एल्गोरिदम और फ्लोचार्ट बनाने से बेहतर प्रोग्रामिंग, कुशल कोडिंग और आसान टेस्टिंग व डीबगिंग में मदद मिलती है।
Q. 79. निम्नलिखित कोड का आउटपुट निर्धारित करें:
Determine the output of the following code:
for i in range(20, 30, 10):
j = i / 2
print(j)
(A) 10
(B) 10.0 15.0
(C) 10.0
(D) None of the above
Correct Answer: (C) 10.0
Explanation: range(20, 30, 10) में केवल एक मान 20 आएगा (क्योंकि 30 शामिल नहीं होता), और Python में / ऑपरेटर हमेशा फ्लोट परिणाम देता है, इसलिए 20 / 2 = 10.0 प्रिंट होगा।
Q. 80. Python एक ______ ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग लैंग्वेज है।
Python is a ______ object-oriented programming language.
(A) Special-purpose only
(B) General-purpose
(C) Hardware-only
(D) Low-level
Correct Answer: (B) General-purpose
Explanation: Python एक जनरल-पर्पस (General-purpose) प्रोग्रामिंग भाषा है जिसका उपयोग वेब, डेटा साइंस, एआई, ऑटोमेशन और सॉफ्टवेयर विकास जैसे हर क्षेत्र में किया जा सकता है।
Q. 81. कौन सी विधि किसी दी गई प्रारंभिक अवस्था (Initial State) से अंतिम अवस्था (End State) तक किसी कार्य को पूरा करने के लिए अच्छी तरह से परिभाषित निर्देशों की एक सूची का उपयोग करती है?
Which method uses a list of well-defined instructions to complete a task starting from a given initial state to an end state?
(A) Program Counter
(B) Algorithm
(C) Compiler
(D) Syntax Error
Correct Answer: (B) Algorithm
Explanation: किसी भी समस्या को प्रारंभिक अवस्था से अंतिम परिणाम तक हल करने के लिए लिखे गए स्पष्ट और चरणबद्ध निर्देशों की सूची को एल्गोरिदम (Algorithm) कहते हैं।
Q. 82. Python में सभी कीवर्ड्स (Keywords) किस केस में होते हैं?
All keywords in Python are in ______.
(A) lower case
(B) UPPER CASE
(C) Capitalized
(D) None of the mentioned
Correct Answer: (D) None of the mentioned
Explanation: Python के लगभग सभी कीवर्ड्स छोटे अक्षरों (lower case) में होते हैं, लेकिन True, False और None ये तीन कीवर्ड्स Capitalized होते हैं; इसलिए ‘None of the mentioned’ सही उत्तर है।
Q. 83. फ्लोचार्ट में आकृतियों (Shapes) के बीच संबंध दर्शाने वाला कनेक्टर/प्रवाह चिन्ह कौन सा है?
______ is a connector showing the relationship/flow between the representative shapes in a flowchart.
(A) Box
(B) Arrow
(C) Parallelogram
(D) Oval
Correct Answer: (B) Arrow
Explanation: फ्लोचार्ट में विभिन्न बॉक्स या आकृतियों के बीच डेटा और लॉजिक के प्रवाह की दिशा (Flow of control) दिखाने के लिए तीर के निशान (Arrow / Flowline) का उपयोग होता है।
Q. 84. निम्नलिखित Python कोड print(round(0.5) - round(-0.5)) का आउटपुट क्या होगा?
What is the output of the Python code print(round(0.5) - round(-0.5))?
(A) 1.0
(B) 2.0
(C) 0
(D) -1.0
Correct Answer: (C) 0
Explanation: Python 3 में round() फंक्शन आधे (.5) पर होने पर निकटतम सम पूर्णांक (Nearest even integer) में राउंड करता है, इसलिए round(0.5) का मान 0 और round(-0.5) का मान भी 0 होगा (0 - 0 = 0)।
Q. 85. कौन पूरे प्रोग्राम को स्कैन करता है और उसे एक साथ (As a whole) मशीन कोड में ट्रांसलेट करता है?
______ scans the entire program and translates it as a whole into machine code.
(A) Interpreter
(B) Compiler
(C) Assembler
(D) Debugger
Correct Answer: (B) Compiler
Explanation: कंपाइलर (Compiler) पूरे हाई-लेवल सोर्स कोड को एक ही बार में स्कैन करके मशीन कोड में बदल देता है, जबकि इंटरप्रेटर एक-एक लाइन करके ट्रांसलेट करता है।
Q. 86. निम्नलिखित Python एक्सप्रेशन 4 + 3 % 5 का मान क्या होगा?
What will be the value of the following Python expression 4 + 3 % 5?
(A) 7
(B) 2
(C) 4
(D) 1
Correct Answer: (A) 7
Explanation: ऑपरेटर प्राथमिकता के अनुसार पहले मॉड्यूलो 3 % 5 हल होगा जिसका शेषफल 3 आएगा, और फिर 4 + 3 जुड़कर उत्तर 7 देगा।
Q. 87. नीचे दिए गए Python कोड का आउटपुट क्या होगा?
What is the output of the below Python code?
def say(message, times = 1):
print(message * times)
say(‘Hello’)
say(‘World’, 5)
(A) Hello and WorldWorldWorldWorldWorld
(B) Hello and World 5
(C) Hello and World,World,World,World,World
(D) HelloHelloHelloHelloHello
Correct Answer: (A) Hello and WorldWorldWorldWorldWorld
Explanation: पहली कॉल say(‘Hello’) में डिफ़ॉल्ट times=1 से Hello प्रिंट होगा, और दूसरी कॉल say(‘World’, 5) में स्ट्रिंग रिपीटेशन के कारण WorldWorldWorldWorldWorld प्रिंट होगा।
Q. 88. Python प्रोग्रामिंग के एप्लीकेशन क्षेत्र (Application Areas) कौन से हैं?
Which are the application areas of Python programming?
(A) Web Development
(B) Game Development
(C) Artificial Intelligence and Machine Learning
(D) All of the above
Correct Answer: (D) All of the above
Explanation: Python का उपयोग वेब डेवलपमेंट, गेम डेवलपमेंट, डेटा साइंस, आर्टिफिशियल इंटेलिजेंस (AI) और मशीन लर्निंग (ML) इन सभी क्षेत्रों में व्यापक रूप से किया जाता है।
Q. 89. निम्नलिखित कोड random.randrange(0, 50) द्वारा कौन सा नंबर कभी जनरेट नहीं किया जा सकता है?
Which of the following numbers can NEVER be generated by the following code: random.randrange(0, 50)?
(A) 0
(B) 49
(C) 50
(D) 25
Correct Answer: (C) 50
Explanation: random.randrange(start, stop) फंक्शन में stop वैल्यू (यहाँ 50) शामिल नहीं होती है; यह केवल 0 से 49 के बीच की ही कोई संख्या जनरेट कर सकता है।
Q. 90. यदि s = "PYTHON" है, तो print(s[-3]) का आउटपुट क्या होगा?
What is the output of print(s[-3]) if s = "PYTHON"?
(A) ‘Y’
(B) ‘T’
(C) ‘H’
(D) ‘O’
Correct Answer: (C) ‘H’
Explanation: नेगेटिव इंडेक्सिंग पीछे से -1 से शुरू होती है (N=-1, O=-2, H=-3), इसलिए s[-3] का आउटपुट अक्षर 'H' होगा।
Q. 91. आइडेंटिफायर्स (Identifiers) के साथ काम करते समय Python एक केस-सेंसिटिव लैंग्वेज है।
Python is a case-sensitive language when dealing with identifiers.
(A) True
(B) False
(C) Depends on OS
(D) None
Correct Answer: (A) True
Explanation: यह कथन बिल्कुल सत्य (True) है; Python में वेरिएबल या फंक्शन के नाम (Identifiers) केस-सेंसिटिव होते हैं, यानी myvar और MyVar को दो अलग-अलग वेरिएबल माना जाता है।
Q. 92. निम्नलिखित कोड क्या प्रिंट करेगा?
What will be printed by the code?
import numpy as np
a = np.array([1, 2, 3, 5, 8])
b = np.array([0, 3, 4, 2, 1])
c = a + b
c = c * a
print(c[2])
(A) 7
(B) 12
(C) 10
(D) 21
Correct Answer: (D) 21
Explanation: इंडेक्स 2 पर a[2] = 3 और b[2] = 4 है; पहले c = a + b से इंडेक्स 2 का मान 3 + 4 = 7 होगा, और फिर c = c * a से 7 * 3 = 21 प्राप्त होगा।
Q. 93. निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?
import numpy as np
ary = np.array([1, 2, 3, 5, 8])
ary = ary + 1
print(ary[1])
(A) 0
(B) 1
(C) 2
(D) 3
Correct Answer: (D) 3
Explanation: ary + 1 एरे के प्रत्येक एलिमेंट में 1 जोड़ देगा जिससे नया एरे [2, 3, 4, 6, 9] बनेगा, और इसके इंडेक्स 1 (ary[1]) पर मान 3 होगा।
Q. 94. निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?
import numpy as np
a = np.array([[1, 2, 3], [0, 1, 4]])
print(a.size)
(A) 1
(B) 5
(C) 6
(D) 4
Correct Answer: (C) 6
Explanation: NumPy में a.size एट्रिब्यूट एरे में मौजूद कुल एलिमेंट्स की संख्या बताता है; इस 2×3 एरे में कुल 6 एलिमेंट्स हैं।
Q. 95. निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?
import numpy as np
a = np.array([1, 2, 3])
print(a.ndim)
(A) 0
(B) 1
(C) 2
(D) 3
Correct Answer: (B) 1
Explanation: np.array([1, 2, 3]) एक वन-डायमेंशनल (1D) एरे है, इसलिए इसका डायमेंशन (a.ndim) 1 प्रिंट होगा।
Q. 96. निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?
import numpy as np
a = np.array([1, 2, 3, 4, 5])
print(a.size)
(A) 5
(B) 4
(C) 6
(D) 1
Correct Answer: (A) 5
Explanation: एरे [1, 2, 3, 4, 5] में कुल 5 संख्याएं मौजूद हैं, इसलिए a.size का आउटपुट 5 होगा।
Q. 97. साइंटिफिक कंप्यूटिंग के लिए NumPy का उपयोग अक्सर किन पैकेजों के साथ किया जाता है?
NumPy is often used along with packages like ______.
(A) Node.js only
(B) SciPy
(C) Matplotlib
(D) Both SciPy and Matplotlib
Correct Answer: (D) Both SciPy and Matplotlib
Explanation: वैज्ञानिक गणना और डेटा विजुअलाइजेशन का पूरा इकोसिस्टम बनाने के लिए NumPy का उपयोग अक्सर SciPy (वैज्ञानिक अल्गोरिदम) और Matplotlib (ग्राफ प्लॉटिंग) के साथ मिलकर किया जाता है।
Q. 98. निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?
import numpy as np
dt = np.dtype(‘i4’)
print(dt)
(A) int32
(B) int64
(C) int16
(D) float32
Correct Answer: (A) int32
Explanation: NumPy डेटा टाइप कोड ‘i4’ में ‘i’ का अर्थ साइन्ड इंटीजर (Signed Integer) और ‘4’ का अर्थ 4 बाइट्स (यानी 4 * 8 = 32 बिट्स) होता है, इसलिए यह int32 प्रिंट करेगा।
Q. 99. NumPy में परिभाषित सबसे महत्वपूर्ण N-dimensional एरे ऑब्जेक्ट टाइप को क्या कहा जाता है?
The most important N-dimensional array object type defined in NumPy is called ______.
(A) ndarray
(B) narray
(C) nd_array
(D) darray
Correct Answer: (A) ndarray
Explanation: NumPy की मुख्य विशेषता उसका N-डायमेंशनल एरे ऑब्जेक्ट है जिसे ndarray कहा जाता है, जिसमें एक ही डेटा टाइप के आइटम्स स्टोर होते हैं।
Q. 100. NumPy के ufunc में प्रयुक्त बफर का साइज सेट करने के लिए किस फंक्शन का उपयोग किया जाता है?
Which function sets the size of the buffer used in ufuncs in NumPy?
(A) setbufsize(size)
(B) bufsize(size)
(C) setsize(size)
(D) buffer(size)
Correct Answer: (A) setbufsize(size)
Explanation: NumPy के यूनिवर्सल फंक्शन्स (ufuncs) में आंतरिक बफर का आकार (जो 16 के गुणज में होता है) सेट करने के लिए np.setbufsize(size) फंक्शन का उपयोग किया जाता है।
Q. 101. रीशेपिंग (Reshaping) ऑपरेशन में यदि किसी डायमेंशन को ______ के रूप में दिया जाता है, तो अन्य डायमेंशन अपने आप कैलकुलेट हो जाते हैं।
If a dimension is given as ______ in a reshaping operation, the other dimensions are automatically calculated.
(A) 0
(B) -1 (Negative one)
(C) 1
(D) Infinite
Correct Answer: (B) -1 (Negative one)
Explanation: NumPy के reshape() फंक्शन में यदि किसी एक डायमेंशन का मान -1 दिया जाए, तो NumPy एरे की कुल लंबाई के आधार पर उस डायमेंशन का सही आकार अपने आप कैलकुलेट कर लेता है।
Q. 102. निम्नलिखित में से कौन सा कथन असत्य (False) है?
Which of the following statements is False?
(A) ndarray is also known as the axis array
(B) ndarray is an N-dimensional array object
(C) In NumPy, dimensions are called axes
(D) NumPy is written partially in C and Python
Correct Answer: (A) ndarray is also known as the axis array
Explanation: NumPy में डायमेंशन को axes तो कहा जाता है और ndarray को उपनाम array से भी जाना जाता है, लेकिन इसे ‘axis array’ नहीं कहा जाता; इसलिए विकल्प (A) असत्य है।
Q. 103. NumPy के प्रत्येक बिल्ट-इन डेटा टाइप का एक कैरेक्टर कोड होता है; कोड 'M' का क्या अर्थ है?
Each built-in data type in NumPy has a character code that uniquely identifies it; what is the meaning of code 'M'?
(A) timedelta
(B) datetime
(C) object
(D) Unicode
Correct Answer: (B) datetime
Explanation: NumPy डेटा टाइप कैरेक्टर कोड्स में 'M' का उपयोग datetime (तारीख और समय) को दर्शाने के लिए किया जाता है (जबकि 'm' का उपयोग timedelta के लिए होता है)।
Q. 104. Python में NumPy एरे पर reshape() फंक्शन का सही सिंटैक्स क्या है?
What is the syntax of the reshape() function in NumPy?
(A) reshape(shape, array)
(B) np.reshape(array, shape)
(C) array.shape(reshape)
(D) None of the above
Correct Answer: (B) np.reshape(array, shape)
Explanation: NumPy में किसी एरे को रीशेप करने का मानक सिंटैक्स numpy.reshape(array, shape) (या array.reshape(shape)) होता है।
Q. 105. NumPy एरे को Python लिस्ट में बदलने के लिए किसका उपयोग किया जाता है?
How to convert a NumPy array into a list?
(A) list(array)
(B) array.list
(C) np.to_list()
(D) tuple(array)
Correct Answer: (A) list(array)
Explanation: किसी 1D NumPy एरे को साधारण Python लिस्ट में बदलने के लिए बिल्ट-इन list(array) फंक्शन (या array.tolist() मेथड) का उपयोग किया जाता है।
Q. 106. निम्नलिखित में से कौन सा Python कैरेक्टर सेट (Character Set) का भाग नहीं है?
Which of the following is NOT a Python character set?
(A) Letters A-Z, a-z
(B) Digits 0-9
(C) White spaces and special symbols
(D) Images and Vector files
Correct Answer: (D) Images and Vector files
Explanation: Python के वैध कैरेक्टर सेट में अक्षर (A-Z, a-z), अंक (0-9), स्पेशल सिंबल, व्हाइटस्पेस और ASCII/Unicode कैरेक्टर्स आते हैं; इमेजेस और वेक्टर फाइलें कैरेक्टर सेट का हिस्सा नहीं होतीं।
Q. 107. निम्नलिखित में से कौन सा Python के साथ इंटरैक्ट करने का वैध मोड (Mode) नहीं है?
Which of the following is NOT a mode of interacting with Python?
(A) Interactive Mode
(B) Script Mode
(C) Hybrid Mode
(D) None of the above
Correct Answer: (C) Hybrid Mode
Explanation: Python में कोड चलाने के केवल दो मुख्य मोड होते हैं: Interactive Mode (कमांड लाइन पर तुरंत आउटपुट के लिए) और Script Mode (.py फाइल बनाकर चलाने के लिए); Hybrid Mode नाम का कोई मोड नहीं होता।
Q. 108. निम्नलिखित वेरिएबल a = '1001' का डेटा टाइप क्या होगा?
What will be the data type of the following variable a = '1001'?
(A) Integer
(B) String
(C) Float
(D) Boolean
Correct Answer: (B) String
Explanation: यद्यपि 1001 में अंक हैं, परंतु इसे सिंगल कोट्स '1001' के अंदर बंद किया गया है, इसलिए Python में इसका डेटा टाइप String (str) होगा।
Q. 109. Python कोडिंग की सबसे छोटी व्यक्तिगत इकाई (Smallest Individual Element) को क्या कहा जाता है?
The smallest individual element of Python coding is called a ______.
(A) Token
(B) Module
(C) Package
(D) File
Correct Answer: (A) Token
Explanation: किसी Python प्रोग्राम की सबसे छोटी सार्थक इकाई को टोकन (Token या Lexical Unit) कहा जाता है, जिसके अंतर्गत Keywords, Identifiers, Literals, Operators और Punctuators आते हैं।
Q. 110. निम्नलिखित फंक्शन द्वारा क्या रिटर्न किया जाएगा?
What is returned by the following function?
def length_of_list():
L = [3, 67, “cat”, [56, 57, “dog”], False]
return len(L)
(A) 4
(B) 5
(C) 7
(D) 6
Correct Answer: (B) 5
Explanation: इस लिस्ट में 3, 67, “cat”, सब-लिस्ट [56, 57, “dog”] (जिसे एक सिंगल एलिमेंट गिना जाएगा) और False को मिलाकर कुल 5 मुख्य एलिमेंट्स हैं।
Q. 111. निम्नलिखित कोड द्वारा क्या रिटर्न किया जाएगा?
What is returned by the following code?
def indexing():
alist = [3, 67, “cat”, 3.14, False]
return alist[2].upper()
(A) “cat”
(B) 67
(C) “CAT”
(D) Error
Correct Answer: (C) “CAT”
Explanation: लिस्ट alist में इंडेक्स 2 पर स्ट्रिंग “cat” है, और उस पर .upper() मेथड लगाने से वह बड़े अक्षरों में बदलकर “CAT” रिटर्न करेगा।
Q. 112. निम्नलिखित फंक्शन द्वारा क्या रिटर्न किया जाएगा?
What is returned by the following function?
def list_transformation():
alist = [4, 2, 8, 6, 5]
blist = alist * 2
blist[3] = 999
return blist
(A) [4, 2, 8, 999, 5, 4, 2, 8, 6, 5]
(B) [4, 2, 8, 999, 5, 4, 2, 8, 999, 5]
(C) [4, 2, 999, 6, 5]
(D) Error
Correct Answer: (A) [4, 2, 8, 999, 5, 4, 2, 8, 6, 5]
Explanation: alist * 2 से [4, 2, 8, 6, 5, 4, 2, 8, 6, 5] बनेगी, और फिर blist[3] = 999 करने से केवल इंडेक्स 3 पर मौजूद पहले 6 की जगह 999 हो जाएगा।
Q. 113. किसी लिस्ट में किसी आइटम की पोजीशन (इंडेक्स) पता करने के लिए आप किस मेथड का उपयोग करेंगे?
Which method would you use to figure out the position of an item in a list?
(A) index()
(B) find()
(C) append()
(D) pop()
Correct Answer: (A) index()
Explanation: Python लिस्ट में किसी दिए गए एलिमेंट की पहली इंडेक्स पोजिशन जानने के लिए list.index(item) मेथड का उपयोग किया जाता है (क्योंकि लिस्ट में find() मेथड नहीं होता)।
Q. 114. आप Python में एक खाली लिस्ट (Empty List) कैसे बनाते हैं?
How do you create an empty list in Python?
(A) L = []
(B) L = ()
(C) L = {}
(D) L = “”
Correct Answer: (A) L = []
Explanation: खाली स्क्वायर ब्रैकेट्स L = [] (या L = list()) लिखकर Python में एक खाली लिस्ट बनाई जाती है (जबकि () से टपल और {} से डिक्शनरी बनती है)।
Q. 115. किसी स्ट्रिंग में प्रत्येक व्यक्तिगत कैरेक्टर को किस तकनीक का उपयोग करके एक्सेस किया जा सकता है?
Each individual character in a string can be accessed using a technique called ______.
(A) Concatenation
(B) Indexing
(C) Replication
(D) Appending
Correct Answer: (B) Indexing
Explanation: स्ट्रिंग के किसी भी एकल अक्षर को उसके पोजिशन नंबर (जैसे s[0] या s[-1]) से प्राप्त करने की तकनीक को इंडेक्सिंग (Indexing) कहा जाता है।
Q. 116. लूप में जब कंडीशन False हो जाती है तो क्या होता है?
What will happen when the condition becomes False in a loop?
(A) The loop terminates
(B) The loop runs infinitely
(C) SyntaxError occurs
(D) The computer restarts
Correct Answer: (A) The loop terminates
Explanation: लूप तब तक चलता रहता है जब तक कंडीशन True रहती है; जैसे ही कंडीशन False होती है, लूप तुरंत समाप्त (Terminate) हो जाता है और कंट्रोल लूप के बाहर चला जाता है।
Q. 117. Python में टपल (Tuple) किस प्रकार का डेटा टाइप है?
Tuples are what kind of data types in Python?
(A) Mutable
(B) Immutable
(C) Dynamic size
(D) Unordered
Correct Answer: (B) Immutable
Explanation: Python में Tuple एक ऑर्डर्ड परंतु इम्यूटेबल (Immutable / अपरिवर्तनीय) डेटा टाइप है, अर्थात एक बार टपल बनने के बाद उसके मानों को बदला नहीं जा सकता।
Q. 118. फ्लोचार्ट में डिसीजन (Decision) को दर्शाने के लिए किस सिंबल का उपयोग किया जाता है?
Which symbol is used to represent a decision in a flowchart?
(A) Rectangle
(B) Oval
(C) Diamond
(D) Circle
Correct Answer: (C) Diamond
Explanation: फ्लोचार्ट में किसी शर्त की जांच या निर्णय (Decision Making – Yes/No या True/False) को दिखाने के लिए हीरे के आकार यानी Diamond सिंबल का उपयोग किया जाता है।
Q. 119. वह चार्ट जिसमें केवल फंक्शन फ्लो (मॉड्यूल संरचना) होता है और कोई कोड नहीं होता है, क्या कहलाता है?
The chart that contains only function flow and no code is called a ______.
(A) Structure chart
(B) Bar chart
(C) Pie chart
(D) Scatter plot
Correct Answer: (A) Structure chart
Explanation: सॉफ्टवेयर इंजीनियरिंग में स्ट्रक्चर चार्ट (Structure Chart) टॉप-डाउन डिजाइन में बिना किसी वास्तविक कोड के विभिन्न फंक्शन्स व मॉड्यूल्स के बीच पदानुक्रम और डेटा प्रवाह को दर्शाता है।
Q. 120. एक सिंगल CPU द्वारा दो या अधिक प्रोग्रामों के समवर्ती निष्पादन (Concurrent Execution) को क्या कहा जाता है?
Execution of two or more programs concurrently by a single CPU is known as ______.
(A) Multiprogramming / Multitasking
(B) Batch processing only
(C) Offline processing
(D) Manual processing
Correct Answer: (A) Multiprogramming / Multitasking
Explanation: एक ही CPU द्वारा समय-साझाकरण (Context Switching) के माध्यम से एक साथ कई प्रोग्रामों को समवर्ती रूप से चलाने को Multiprogramming या Multitasking कहा जाता है (कुछ प्रश्नपत्रों में विकल्प के अनुसार इसे Multiprocessing भी दिया जाता है)।
Q. 121. स्ट्रक्चर चार्ट (Structure Chart) में मॉड्यूल्स को किस आकृति द्वारा दर्शाया जाता है?
In structure charts, modules are described/represented as ______.
(A) Rectangles / Boxes
(B) Circles
(C) Arrows
(D) Diamonds
Correct Answer: (A) Rectangles / Boxes
Explanation: स्ट्रक्चर चार्ट में प्रत्येक मॉड्यूल या फंक्शन को एक आयताकार बॉक्स (Rectangle/Box) द्वारा दर्शाया जाता है और उनके बीच के संबंध को तीरों (Arrows) से दिखाया जाता है।
Q. 122. फाइल ऑब्जेक्ट infile से 2 कैरेक्टर पढ़ने के लिए हम किसका उपयोग करते हैं?
To read two characters from a file object infile, we use ______.
(A) infile.read(2)
(B) infile.read()
(C) infile.readline()
(D) infile.readlines()
Correct Answer: (A) infile.read(2)
Explanation: Python फाइल हैंडलिंग में read(n) मेथड फाइल पॉइंटर की वर्तमान स्थिति से केवल ‘n’ बाइट्स या कैरेक्टर्स को स्ट्रिंग के रूप में पढ़ता है, इसलिए 2 कैरेक्टर के लिए infile.read(2) का उपयोग होगा।
Q. 123. readlines() मेथड क्या रिटर्न करता है?
The readlines() method returns ______.
(A) A single character
(B) A list of lines
(C) An integer
(D) A tuple of words
Correct Answer: (B) A list of lines
Explanation: फाइल ऑब्जेक्ट का readlines() मेथड पूरी फाइल की सभी लाइनों को पढ़कर एक Python लिस्ट (list of strings) लौटाता है, जहाँ प्रत्येक लाइन लिस्ट का एक अलग एलिमेंट होती है।
Q. 124. केवल एक्सक्लूसिव क्रिएशन (Exclusive Creation) के लिए फाइल खोलने का सही एक्सेस मोड चुनें।
Select the correct access mode to open a file only for exclusive creation.
(A) ‘r’
(B) ‘w’
(C) ‘x’
(D) ‘a’
Correct Answer: (C) ‘x’
Explanation: Python 3 में फाइल खोलने के लिए मोड ‘x’ (Exclusive Creation) का उपयोग होता है; यदि फाइल पहले से मौजूद हो तो यह फाइल को ओवरराइट करने के बजाय FileExistsError देता है।
Q. 125. किसी फाइल में लाइनों की एक लिस्ट (List of lines) लिखने के लिए सही मेथड चुनें।
Select the correct method to write a list of lines to a file.
(A) write(list)
(B) writelines(list)
(C) writeline(list)
(D) dump(list)
Correct Answer: (B) writelines(list)
Explanation: स्ट्रिंग्स की किसी लिस्ट को एक साथ फाइल में लिखने के लिए writelines() मेथड का उपयोग किया जाता है (जबकि एकल स्ट्रिंग लिखने के लिए write() का उपयोग होता है)।
Q. 126. किसी फाइल को लाइन-बाय-लाइन (एक बार में एक लाइन) पढ़ने के लिए किस मेथड का उपयोग किया जाता है?
Which method is used to read a file line by line?
(A) readline()
(B) writelines()
(C) seek()
(D) tell()
Correct Answer: (A) readline()
Explanation: readline() मेथड फाइल में से अगली पूरी लाइन को एक स्ट्रिंग के रूप में पढ़ता है, जिससे फाइल को लूप में एक-एक लाइन करके आसानी से प्रोसेस किया जा सकता है।
Q. 127. अपेंडिंग (Appending) के साथ-साथ रीडिंग (Reading) के लिए फाइल खोलने का सही मोड चुनें।
Select the correct mode to open a file for appending as well as reading.
(A) r
(B) w
(C) a
(D) a+
Correct Answer: (D) a+
Explanation: मोड ‘a+’ फाइल को पढ़ने (Reading) और अंत में नया डेटा जोड़ने (Appending) दोनों के लिए खोलता है; यदि फाइल पहले से नहीं है तो यह नई फाइल भी बना देता है।
Q. 128. यदि ref_file = open(“my.txt”, “r”) पहले से खुला है, तो कौन सा कमांड उसे बंद करता है?
Which command below closes the already open file if ref_file = open(“my.txt”, “r”) has been written?
(A) close(ref_file)
(B) ref_file.close()
(C) ref_file.exit()
(D) stop(ref_file)
Correct Answer: (B) ref_file.close()
Explanation: Python में खुली हुई फाइल के रिसोर्सेज को सिस्टम मेमोरी से फ्री करने के लिए उस फाइल ऑब्जेक्ट पर .close() मेथड (ref_file.close()) कॉल किया जाता है।
Q. 129. निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the code?
import numpy as np
a = np.array([1, 2, 3])
print(type(a))
(A) <class ‘numpy.ndarray’>
(B) <class ‘list’>
(C) <class ‘tuple’>
(D) <class ‘int’>
Correct Answer: (A) <class ‘numpy.ndarray’>
Explanation: np.array() फंक्शन NumPy का N-डायमेंशनल एरे ऑब्जेक्ट बनाता है, इसलिए type(a) की क्लास हमेशा numpy.ndarray होती है।
Q. 130. निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the code?
import numpy as np
a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
print(a.size)
(A) 3
(B) 6
(C) 9
(D) 12
Correct Answer: (C) 9
Explanation: a.size किसी भी एरे में उपस्थित सभी रो और कॉलम के कुल एलिमेंट्स की संख्या बताता है; इस 3×3 मैट्रिक्स में कुल 9 एलिमेंट्स हैं।
Q. 131. किसी वेरिएबल को असाइन किए गए रॉ डेटा (Raw Data) को क्या कहा जाता है?
Raw data assigned to a variable is called a ______.
(A) Literal
(B) Keyword
(C) Operator
(D) Comment
Correct Answer: (A) Literal
Explanation: किसी वेरिएबल में सीधे तौर पर स्टोर किए गए स्थिर मान (Fixed raw value, जैसे 10, 3.14, “Hello”) को प्रोग्रामिंग में लिटरल (Literal) या कॉन्स्टेंट कहा जाता है।
Q. 132. Python में lstrip() मेथड किस लिए उपयोग किया जाता है?
The lstrip() method is used to ______.
(A) Delete all the leading characters (spaces from the left)
(B) Delete all the trailing characters
(C) Convert string to uppercase
(D) Split a string into a list
Correct Answer: (A) Delete all the leading characters (spaces from the left)
Explanation: स्ट्रिंग का lstrip() (Left Strip) मेथड किसी स्ट्रिंग की शुरुआत (बाईं ओर) से सभी अनावश्यक खाली जगहों (Spaces/Tabs) या दिए गए कैरेक्टर्स को हटा देता है।
Q. 133. फ्लोचार्ट में कंडीशन को टेस्ट करने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?
In a flowchart, which of the following is used for testing a condition?
(A) Process
(B) Terminal
(C) Input / Output
(D) Decision
Correct Answer: (D) Decision
Explanation: किसी भी शर्त (Condition) की जांच करने और उसके आधार पर अलग-अलग शाखाओं (Branches) में जाने के लिए फ्लोचार्ट में डिसीजन बॉक्स (डायमंड सिंबल) का उपयोग किया जाता है।
Q. 134. निम्नलिखित में से कौन सी फाइल में बेसिक I/O स्ट्रीम/कनेक्शन है?
Which of the following is the basic I/O connection in files?
(A) Standard Input
(B) Standard Output
(C) Standard Error
(D) All of the mentioned
Correct Answer: (D) All of the mentioned
Explanation: ऑपरेटिंग सिस्टम और Python में तीन मानक स्ट्रीम्स होती हैं: sys.stdin (Standard Input), sys.stdout (Standard Output) और sys.stderr (Standard Error); इसलिए ‘All of the mentioned’ सही है।
Q. 135. निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?
import numpy as np
a = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]])
print(a[2, 2])
(A) 6
(B) 11
(C) 10
(D) 7
Correct Answer: (B) 11
Explanation: इंडेक्सिंग 0 से शुरू होती है; इंडेक्स रो 2 तीसरी पंक्ति [9, 10, 11, 12] है, और उसका इंडेक्स कॉलम 2 तीसरा एलिमेंट 11 है, इसलिए आउटपुट 11 मिलेगा।
Q. 136. निम्नलिखित में से कौन सी भाषा कंप्यूटर द्वारा सीधे समझी जाती है?
Which of the following languages is understood directly by the computer?
(A) Machine Language
(B) Assembly Language
(C) High-level Language
(D) C Language
Correct Answer: (A) Machine Language
Explanation: कंप्यूटर का सीपीयू (हार्डवेयर) केवल बाइनरी कोड (0 और 1) से बनी मशीन लैंग्वेज (Machine Language) को सीधे समझता है; अन्य सभी भाषाओं को इसमें ट्रांसलेट करना पड़ता है।
Hope aapne M3-R5 O Level NIELIT January 2026 ke previous papers padh liye hain aur samajh bhi liya hai.
आज तक के सभी ओ-लेवल प्रीवियस पेपर्स को पढ़ना, डाउनलोड करना या मॉक टेस्ट देना है तो नीचे दिए गए बटन को दबाइये!
Kya aap M3-R5 O Level January 2026 ke previous papers ka mock test dena chahte hain?, Neeche diye gaye button par click karein.
Agar aap M3-R5 O Level January 2026 ke previous papers PDF mein download karna chahte hain?, to neeche diye gaye button par click karein.
Apna study experience humse neeche comment box mein zarur share karein. Agar aapko koi galti mile to humein batana na bhoolen. 😊