Solved - O Level Python Paper January 2026
Which Python method is used to convert 'neilit' into 'Neilit'?
'neilit' को 'Neilit' में convert करने के लिए कौन-सा Python method use किया जाता है?
[A] upper()
[B] lower()
[C] capitalize()
[D] title()
Correct Answer : capitalize()
निम्न Python code का output क्या होगा?
What will be the output of the following Python code?
L = [None] * 10
print(len(L)) [A] 1
[B] 10
[C] 0
[D] None
Correct Answer : 10
निम्न में से कौन-सी टेक्स्ट फाइल की file extension नहीं है?
Which of the following is not a file extension for text files?
[A] .txt
[B] .ini
[C] .rtf
[D] .dat
Correct Answer : .dat
प्रोग्रामिंग में refactoring का क्या अर्थ है?
What does refactoring mean in programming?
[A] Changing the functionality of the code
[B] Improving code structure without changing its behavior
[C] Writing code from scratch
[D] Deleting old code
Correct Answer : Improving code structure without changing its behavior
निम्न Python code का output क्या होगा?
What will be the output of the following Python code?
import math
print(math.copysign(3, -1)) [A] -3
[B] -3.0
[C] 3
[D] 1
Correct Answer : -3.0
पैकेज से मॉड्यूल आयात करने के लिए पायथन में किस ऑपरेटर का उपयोग किया जाता है?
Which operator is used in Python to import modules from packages?
[A] .
[B] *
[C] >
[D] &
Correct Answer : .
प्स्यूडोकोड के बारे में निम्न में से कौन सा सही है?
Which of the following is correct about pseudocode?
[A] It is executed by the computer
[B] It uses plain English to describe steps
[C] It is always written in Python
[D] It stores data in database
Correct Answer : It uses plain English to describe steps
Python में 2^5 का output क्या होगा?
What is the output of 2^5 in Python?
[A] 32
[B] 10
[C] 7
[D] 25
Correct Answer : 7
क्या output होगा?
What will be the output?
def factorial(x)
if x==0:
return 1
else:
return x*factorial(x-1)
print(factorial(3)) [A] 3
[B] 6
[C] 9
[D] 1
Correct Answer : 6
“hello” + 1 + 2 + 3 का output क्या होगा?
What will be the output of "hello" + 1 + 2 + 3?
[A] hello123
[B] hello
[C] Error
[D] hello6
Correct Answer : Error
Python ऐसी कौन-सी library प्रदान करता है जो image के type को पता करने में मदद करती है?
Python provides a library to determine the type of an image, one such library is ____?
[A] os
[B] imghdr
[C] math
[D] sys
Correct Answer : imghdr
2*3*8**3*4 का मान क्या होगा?
What will be the value of 2*3*8**3*4?
[A] 3072
[B] 4096
[C] 12288
[D] 1536
Correct Answer : 12288
Indirect Recursion की अवधारणा क्या है?
What is the concept of Indirect Recursion?
[A] A function calling itself directly
[B] A loop calling a function
[C] Two or more functions calling each other in a cycle
[D] A function without return statement
Correct Answer : Two or more functions calling each other in a cycle
NumPy में int32 data type की range क्या है?
What is the range of int32 data type in NumPy?
[A] 0 to 4,294,967,295
[B] −32,768 to 32,767
[C] −2,147,483,648 to 2,147,483,647
[D] −9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Correct Answer : −2,147,483,648 to 2,147,483,647
NumPy का उपयोग करके array का standard deviation निकालने का formula क्या है?
What is the formula to find standard deviation of an array using NumPy?
[A] numpy.mean(array)
[B] numpy.var(array)
[C] numpy.std(array)
[D] numpy.sum(array)
Correct Answer : numpy.std(array)
Pseudocode में hierarchy को कैसे दिखाया जाता है
Hierarchy in a pseudocode can be shown by
[A] Curly braces {}
[B] Semi colon ;
[C] Round bracket ()
[D] Indentation
Correct Answer : Indentation
प्रोग्रामिंग में refactoring का क्या अर्थ है
What does refactoring mean in programming
[A] Changing the functionality of the code
[B] Improving code structure without changing its behavior
[C] Writing code from scratch
[D] Deleting old code
Correct Answer : Improving code structure without changing its behavior
Python में seek() method का उद्देश्य क्या है
What is the purpose of the seek() method in Python
[A] To read data from a file / फ़ाइल से डेटा पढ़ने के लिए
[B] To write data into a file / फ़ाइल में डेटा लिखने के लिए
[C] To change the current file pointer position
[D] To close the file
Correct Answer : To change the current file pointer position
निर्देश द्वारा प्रदर्शित आउटपुट क्या होगा, प्रिंट(सूची[3]), यदि, सूची=[''प्रोग्रामिंग'', "और", "समस्या", "समाधान", "उपयोग"","पायथन"]
What will be the output displayed by the instruction, print(List[3]), if, List=[''Programming'', "and", "Problem ", "Solving", "using"","Python"]
[A] Solving
[B] Problem
[C] g
[D] b
Correct Answer : Solving
निम्नलिखित में से कौन-सी एक प्रोग्रामिंग भाषा है
Which of the following is a programming language
[A] HTML
[B] MS Word
[C] Python
[D] Windows
Correct Answer : Python
Python में if block के अंदर statements की संख्या कितनी हो सकती है
The number of statements inside an if block in Python is
[A] Only 1
[B] Only 2
[C] One or more
[D] None
Correct Answer : One or more
NumPy में array का shape बदलने के लिए कौन-सा method उपयोग किया जाता है
Which method is used in NumPy to change the shape of an array
[A] resize()
[B] reshape()
[C] shape()
[D] change()
Correct Answer : reshape()
Python में string के elements के index की data type क्या होती है
What is the data type of the index value of elements in a string in Python
[A] float
[B] int
[C] str
[D] bool
Correct Answer : int
प्रोग्रामिंग में एल्गोरिदम का उपयोग करने का निम्नलिखित में से कौन सा लाभ नहीं है?
Which of the following is not a benefit of using algorithms in programming
[A] improved efficiency
[B] improved accuracy
[C] improved security
[D] improved maintainability
Correct Answer : improved security
वैध निर्देश के निर्माण को नियंत्रित करने वाले औपचारिक व्याकरणिक नियम
The formal grammar rules governing the construction of valid instruction
[A] test case
[B] syntax
[C] program
[D] semantics
Correct Answer : syntax
Flowchart में किस symbol का उपयोग एक भाग से दूसरे भाग में continuation दिखाने के लिए किया जाता है
In a flowchart, which symbol is used as a connector to show continuation from one part to another
[A] Oval / अंडाकार
[B] Diamond / हीरा
[C] Circle / गोलाकार
[D] Rectangle / आयत
Correct Answer : Circle / गोलाकार
निम्न Python code का output क्या होगा
What will be the output of the following Python code
import math
print(math.copysign(3, -1)) [A] -3
[B] -3.0
[C] 3
[D] 1
Correct Answer : -3.0
Python में math module को import करने का सही syntax कौन सा है
Which of the following is the correct syntax to import the math module in Python
[A] import math
[B] Import math
[C] IMPORT math
[D] Import Math
Correct Answer : import math
प्स्यूडोकोड किसके लिए उपयोग किया जाता है
What is pseudocode used for
[A] To write actual code for computer
[B] To design the logic of a program
[C] To store data
[D] To execute programs
Correct Answer : To design the logic of a program
पैकेज से मॉड्यूल आयात करने के लिए पायथन में किस ऑपरेटर का उपयोग किया जाता है
Which operator is used in Python to import modules from packages
[A] .
[B] *
[C] >
[D] &
Correct Answer : .
Python में single-line comment के लिए कौन सा symbol इस्तेमाल होता है
Which symbol is used for a single-line comment in Python
[A] //
[B] #
[C] /* */
[D] --
Correct Answer : #
Dimensions को और किस नाम से जाना जाता है
Dimensions are also known as
[A] Rank
[B] Shape
[C] Size
[D] Axis
Correct Answer : Rank
प्स्यूडोकोड के बारे में निम्न में से कौन सा सही है
Which of the following is correct about pseudocode
[A] It is executed by the computer
[B] It uses plain English to describe steps
[C] It is always written in Python
[D] It stores data in database
Correct Answer : It uses plain English to describe steps
Python में 2^5 का output क्या होगा
What is the output of 2^5 in Python
[A] 32
[B] 10
[C] 7
[D] 25
Correct Answer : 7
हम सिस्टम में numPy कैसे स्थापित करते हैं
How we install numPy in system
[A] install numpy
[B] pip install python numpy
[C] pip install numpy
[D] pip install numpy python
Correct Answer : pip install numpy
क्या output होगा
What will be the output
def factorial(x)
if x==0:
return 1
else:
return x*factorial(x-1)
print(factorial(3)) [A] 3
[B] 6
[C] 9
[D] 1
Correct Answer : 6
sys मॉड्यूल क्यों उपयोग किया जाता है
Why is the sys module used in Python
[A] To access command-line arguments
[B] To create GUI
[C] To handle arrays
[D] To handle HTML
Correct Answer : To access command-line arguments
“hello” + 1 + 2 + 3 का output क्या होगा
What will be the output of "hello" + 1 + 2 + 3
[A] hello123
[B] hello
[C] Error
[D] hello6
Correct Answer : Error
Python ऐसी कौन-सी library प्रदान करता है जो image के type को पता करने में मदद करती है
Python provides a library to determine the type of an image, one such library is
[A] os
[B] imghdr
[C] math
[D] sys
Correct Answer : imghdr
2*3*8**3*4 का मान क्या होगा
What will be the value of 2*3*8**3*4
[A] 3072
[B] 4096
[C] 12288
[D] 1536
Correct Answer : 12288
Python में memory management के बारे में कौन-सा कथन सही है
Which of the following statements is true about memory management in Python
[A] Python automatically manages memory through garbage collection
[B] Memory management in Python is manually handled by the user
[C] Memory is only released when the program ends
[D] Memory is not managed in Python
Correct Answer : Python automatically manages memory through garbage collection
Python के जनक (Father of Python) कौन हैं
Who is the Father of Python
[A] Dennis Ritchie
[B] James Gosling
[C] Guido van Rossum
[D] Bjarne Stroustrup
Correct Answer : Guido van Rossum
print(sum(1,2,3)) का आउटपुट क्या होगा
Output of print(sum(1,2,3))
[A] 6
[B] Error
[C] 1
[D] 0
Correct Answer : Error
Indirect Recursion की अवधारणा क्या है
What is the concept of Indirect Recursion
[A] A function calling itself directly
[B] A loop calling a function
[C] Two or more functions calling each other in a cycle
[D] A function without return statement
Correct Answer : Two or more functions calling each other in a cycle
NumPy में int32 data type की range क्या है
What is the range of int32 data type in NumPy
[A] 0 to 4,294,967,295
[B] −32,768 to 32,767
[C] −2,147,483,648 to 2,147,483,647
[D] −9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Correct Answer : −2,147,483,648 to 2,147,483,647
Python में कौन-सा environment variable interpreter को बताता है कि imported modules कहाँ से load करने हैं
Which environment variable in Python tells the interpreter where to locate imported module files
[A] PYTHONPATH
[B] PYTHONSTARTUP
[C] PYTHONCASEOK
[D] PYTHONHOME
Correct Answer : PYTHONPATH
NumPy का उपयोग करके array का standard deviation निकालने का formula क्या है
What is the formula to find standard deviation of an array using NumPy
[A] numpy.mean(array)
[B] numpy.var(array)
[C] numpy.std(array)
[D] numpy.sum(array)
Correct Answer : numpy.std(array)
Python में Scope से क्या तात्पर्य है
What does Scope mean in Python
[A] Speed of program
[B] Memory size
[C] Area where a variable is accessible
[D] Syntax rule
Correct Answer : Area where a variable is accessible
Array dimension कैसे दर्शाते हैं
How are array dimensions represented
[A] Using length of array
[B] Using array.size
[C] Using array.shape
[D] Using array.type
Correct Answer : Using array.shape
Numpy क्या है
What is Numpy in Python
[A] A module for creating GUI
[B] A library for scientific computing and handling arrays
[C] A Python IDE
[D] A web framework
Correct Answer : A library for scientific computing and handling arrays
Tuple और List के बीच क्या अंतर है
What is the difference between Tuple and List in Python
[A] Tuple is mutable, List is immutable
[B] Tuple uses [ ] brackets, List uses ( )
[C] Tuple is immutable, List is mutable
[D] Both are immutable
Correct Answer : Tuple is immutable, List is mutable
डेटा फाइल को कहाँ रखा जाता है
Where is a data file usually stored
[A] In ram
[B] In disk
[C] Only in the cloud
[D] Inside Python interpreter
Correct Answer : In disk
निम्नलिखित NumPy कोड का output क्या होगा
What will be the output of the following NumPy code
import numpy as np
x = np.arange(1, 11, 2)
print(x) [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 11 2]
Correct Answer : [1 3 5 7 9]
while (1==3) कितनी बार चलेगा
How many times will while (1==3) execute
[A] Infinite times
[B] 3 times
[C] 1 time
[D] 0 times
Correct Answer : 0 times
8/4/2, 8/(4/2) का आउटपुट क्या होगा
Output of 8/4/2, 8/(4/2)
[A] 1.0, 4.0
[B] 1.0, 1.0
[C] 2.0, 4.0
[D] 2.0, 2.0
Correct Answer : 1.0, 4.0
NumPy का पूरा नाम क्या है
What is the full form of NumPy
[A] Numerical Python
[B] Network Python
[C] New Multiple Python
[D] Numeric Programming
Correct Answer : Numerical Python
Modular Programming क्या है
What is Modular Programming
[A] Writing the entire program in one block
[B] Dividing a program into small independent modules/functions
[C] Using only built-in functions
[D] Writing program without functions
Correct Answer : Dividing a program into small independent modules/functions
NumPy में किसी array का shape कैसे पता करते हैं
In NumPy, how do you find the shape of an array
[A] array.size
[B] array.length
[C] array.shape
[D] array.type
Correct Answer : array.shape
Python में कौन-सा Mutable Data Type है
Which is a mutable data type in Python
[A] Tuple
[B] String
[C] List
[D] Integer
Correct Answer : List
कौन-सी लेयर bytecode को execute करती है?
Which layer executes bytecode
[A] Python Compiler
[B] Python Virtual Machine (PVM)
[C] Operating System
[D] Hardware
Correct Answer : Python Virtual Machine (PVM)
निम्न में से कौन-सा कथन गलत है?
Which of the following statement is incorrect
[A] w mode is used to write into a file
[B] w+ mode is used to write into a file
[C] r mode is used to write into a file
[D] All
Correct Answer : r mode is used to write into a file
Tuple तेज़ क्यों होता है?
Tuple is faster because
[A] No dynamic resizing
[B] Only integers allowed
[C] Stores in stack
[D] Lightweight data type
Correct Answer : No dynamic resizing
Python variables के लिए memory allocation कौन करता है?
Which mechanism allocates memory to Python variables
[A] Programmer
[B] Python Memory Manager
[C] Compiler
[D] OS Directly
Correct Answer : Python Memory Manager
निम्न में से कौन-सा कथन सही है?
Which statement is true?
[A] A function can return multiple values
[B] Python only returns one value
[C] Functions cannot return tuples
[D] Function return type must be declared
Correct Answer : A function can return multiple values
myList[::-1] क्या करता है?
What does myList[::-1] do?
[A] Reverses myList
[B] Copies myList
[C] Removes the last element from myList
[D] Sorts myList in descending order
Correct Answer : Reverses myList
निर्देश द्वारा प्रदर्शित आउटपुट क्या होगा, प्रिंट(सूची[3]), यदि, सूची=[''प्रोग्रामिंग'', "और", "समस्या", "समाधान", "उपयोग"","पायथन"] ?
What will be the output displayed by the instruction, print(List[3]), if, List=[''Programming'', "and", "Problem ", "Solving", "using"","Python"]?
[A] Solving
[B] Problem
[C] g
[D] b
Correct Answer : Solving
dir() function किसके लिए?
dir() function is used to—
[A] Delete names
[B] List attributes of object
[C] Transfer modules
[D] Archive memory
Correct Answer : List attributes of object
DO…WHILE एक एग्जिट चेक्ड लूप है, इसका मतलब है कि लूप कम से कम _____ बार निष्पादित होगा।
DO…WHILE is exit checked loop, it means the loop will be executed at least _____.
[A] Once
[B] Twice
[C] Thrice
[D] Zero time
Correct Answer : Once
Python indentation उपयोग किया जाता है?
Python indentation is used for?
[A] Decoration
[B] Block definition
[C] Comment
[D] None
Correct Answer : Block definition
List को Series में बदलने के लिए कौन-सा function है?
Which function converts a list into a Series?
[A] pd.Series(list)
[B] list.Series()
[C] Series(list)
[D] pd.DataFrame(list)
Correct Answer : pd.Series(list)
Python में print(5*(2//3)) का आउटपुट क्या होगा?
(What will be the output of print(5*(2//3)) in Python?)
[A] 0
[B] 1
[C] 3
[D] 5
Correct Answer : 0
Function में global variable बदलने के लिए keyword?
Which keyword changes global variable inside function?
[A] public
[B] global
[C] global_var
[D] access
Correct Answer : global
SDK का पूरा नाम क्या है?
What is the full form of SDK?
[A] Software Development Kit
[B] System Development Knowledge
[C] Standard Development Kit
[D] Software Data Kit
Correct Answer : Software Development Kit
Python का डिफ़ॉल्ट IDE कौन सा है?
What is the default Python IDE?
[A] Sublime Text
[B] PyCharm
[C] IDLE
[D] VS Code
Correct Answer : IDLE
पायथन प्रोग्रामिंग में __फ़ंक्शन/विधि हैं।
There are __ Functions/Method in Python Programming
[A] 1
[B] 2
[C] 3
[D] 4
Correct Answer : 2
इस code का output क्या होगा? print(10/0)
What is the output of this code? print(10/0)
[A] 0
[B] Infinity
[C] ZeroDivisionError
[D] None
Correct Answer : ZeroDivisionError
डिफ़ॉल्ट रूप से, पायथन स्रोत फ़ाइलों को _ में एन्कोडेड माना जाता है
By default, Python source files are treated as encoded in _
[A] UTF-8
[B] UTF-16
[C] Both of the correct
[D] Both of the wrong
Correct Answer : UTF-8
कौन-सा loop entry-controlled होता है?
Which loop is entry-controlled?
[A] while
[B] for
[C] do-while
[D] Both A and B
Correct Answer : Both A and B
हम सिस्टम में numPy कैसे स्थापित करते हैं
How we install numPy in system?
[A] install numpy
[B] pip install python numpy
[C] pip install numpy
[D] pip install numpy python
Correct Answer : pip install numpy
निम्नलिखित में से किसका उपयोग एरे को पलटने के लिए किया जाता है?
Which of the following is used to reverse an array
[A] Traversing
[B] Swapping
[C] Searching
[D] Summing
Correct Answer : Swapping
q = [3,4,5,20,5,25,13] के लिए, q.pop(1) का output क्या होगा?
What will be the output of q.pop(1) for q = [3,4,5,20,5,25,13]?
[A] 3
[B] 4
[C] 5
[D] 20
Correct Answer : 4
क्या पायथन कोड संकलित या व्याख्यायित है?
Is python code compiled or interpreted
[A] python is only interpreted
[B] both compiled and interpreted
[C] neither compiled or interpreted
[D] python code is oy compiled
Correct Answer : both compiled and interpreted
ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग (OOP) किस भाषा ने शुरू की थी?
Which language introduced Object Oriented Programming (OOP
[A] Python
[B] Smalltalk
[C] C++
[D] Java
Correct Answer : Smalltalk
List mutable होती है। Mutable का अर्थ क्या है?
List is a mutable data structure. What does mutable mean
[A] Value can't change
[B] Value changes once
[C] Value can be changed
[D] Value becomes fixed
Correct Answer : Value can be changed
random.shuffle() method accepts the value of which data type
random.shuffle() method किस data type की value accept करता है?
[A] Integer
[B] String
[C] List
[D] Tuple
Correct Answer : List
Python में pow(2, 3, 5) का परिणाम क्या होगा?
(What will be the result of pow(2, 3, 5) in Python?)
[A] 1
[B] 2
[C] 3
[D] 8
Correct Answer : 3
What will be the output of "Welcome to the course of Python.".find('of', 0, 20)?
Welcome to the course of Python.".find('of', 0, 20) का output क्या होगा?
[A] True
[B] False
[C] -1
[D] 15
Correct Answer : -1
बाइनरी फ़ाइल में डेटा पढ़ने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?
Which of the following function is used to read the data in binary file?
[A] read()
[B] open()
[C] dump()
[D] load()
Correct Answer : load()
(What will be the output of the following NumPy code?)
निम्न NumPy कोड का आउटपुट क्या होगा?
x = np.arange(1, 11, 2)
print(x)
[A] [1 2 3 4 5]
[B] [1 3 5 7 9]
[C] [2 4 6 8 10]
[D] [1 3 5 7 9 11]
Correct Answer : [1 3 5 7 9]
Python किस संस्थान में विकसित किया गया?
Python was developed at which institute?
[A] Uniliver Labs
[B] IBM Labs
[C] Centrum Wiskunde & Informatica (CWI), Netherlands
[D] Verizon Labs
Correct Answer : Centrum Wiskunde & Informatica (CWI), Netherlands
NumPy में axis=0 का क्या मतलब है?
What does axis=0 mean in NumPy operations?
[A] Row-wise
[B] Column-wise
[C] Element-wise
[D] None
Correct Answer : Column-wise
निम्नलिखित कथनों के बाद आउटपुट क्या होगा?
What will be the output after the following statements?
x = 'Python' print(tuple(x))
[A] (‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’)
[B] (Python)
[C] [‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’]
[D] [‘Python’]
Correct Answer : (‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’)
function returns the current position of file pointer.
__________ फ़ंक्शन फ़ाइल सूचक की करंट स्थिति लौटाता है .
[A] get( )
[B] tell( )
[C] seek( )
[D] cur( )
Correct Answer : tell( )
Python में किसी variable (identifier) को खोजने का क्रम क्या है
(What is the order in which Python searches for an identifier?)
[A] Local → Global → Enclosing → Built-in
[B] Local → Enclosing → Global → Built-in
[C] Built-in → Global → Enclosing → Local
[D] Global → Local → Enclosing → Built-in
Correct Answer : Local → Enclosing → Global → Built-in
निम्नलिखित पायथन कोड स्निपेट को निष्पादित करने पर क्या त्रुटि उत्पन्न होती है?
What error occurs when you execute the following Python code snippet?
Apple=mango [A] NameError
[B] SyntaxError
[C] TypeError
[D] ValueError
Correct Answer : NameError
निम्नलिखित कथन में 'f' क्या है?
What is ‘f’ in the following statement ?
f=open(“Data.txt”, “r”) [A] File Name
[B] File Handle
[C] Mode of file
[D] File Handling
Correct Answer : File Handle
कौन सा मेथड किसी सूची में किसी तत्व की आवृत्ति गिनता है?
Which method counts the frequency of an element in a list?
[A] count()
[B] find()
[C] search()
[D] index()
Correct Answer : count()
कौन-सा method string के दोनों तरफ के extra spaces हटाता है
Which method removes extra spaces from both sides of a string?
[A] strip()
[B] remove()
[C] trim()
[D] cut()
Correct Answer : strip()
इस Python कोड का आउटपुट क्या होगा
What will be the output of this Python code?
str="Hello python"
print(str[-7:-4:1])
[A] py
[B] o p
[C] tho
[D] Hel
Correct Answer : o p
islower() फ़ंक्शन एक स्ट्रिंग में क्या जांचता है?
What does the islower()function check in a string?
[A] Checks if all characters are in lowercase
[B] Checks if all characters are in uppercase
[C] Checks if all characters are alphabets
[D] Checks if all characters are digits
Correct Answer : Checks if all characters are in lowercase