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