O Level Python Paper January 2026
Which Python method is used to convert 'neilit' into 'Neilit'?
'neilit' को 'Neilit' में convert करने के लिए कौन-सा Python method use किया जाता है?
upper()→ Converts all letters to uppercase (NEILIT)lower()→ Converts all letters to lowercase (neilit)capitalize()→ Converts only the first letter to uppercase and the rest to lowercase (Neilit) ✅title()→ Converts the first letter of each word to uppercase (Neilitfor a single word, but intended for multiple words)
Correct Answer: C) capitalize()
निम्न Python code का output क्या होगा?
What will be the output of the following Python code?
L = [None] * 10
print(len(L)) निम्न Python code का output क्या होगा?
What will be the output of the following Python code?
import math
print(math.copysign(3, -1)) Python में 2^5 का output क्या होगा?
What is the output of 2^5 in Python?
2^5 in Python is 7. Correct Answer: C) 7
क्या output होगा?
What will be the output?
def factorial(x)
if x==0:
return 1
else:
return x*factorial(x-1)
print(factorial(3)) निम्न Python code का output क्या होगा
What will be the output of the following Python code
import math
print(math.copysign(3, -1)) Python में 2^5 का output क्या होगा
What is the output of 2^5 in Python
The caret (^) is the Bitwise XOR operator. It compares the binary representations of the numbers:2 in binary is 0105 in binary is 101010 XOR 101 = 111, which is 7 in decimal.
Correct Answer: C) 7
क्या output होगा
What will be the output
def factorial(x)
if x==0:
return 1
else:
return x*factorial(x-1)
print(factorial(3)) निम्नलिखित NumPy कोड का output क्या होगा
What will be the output of the following NumPy code
import numpy as np
x = np.arange(1, 11, 2)
print(x) (What will be the output of the following NumPy code?)
निम्न NumPy कोड का आउटपुट क्या होगा?
x = np.arange(1, 11, 2)
print(x)
निम्नलिखित कथनों के बाद आउटपुट क्या होगा?
What will be the output after the following statements?
x = 'Python' print(tuple(x))
निम्नलिखित कथन में 'f' क्या है?
What is ‘f’ in the following statement ?
f=open(“Data.txt”, “r”) इस Python कोड का आउटपुट क्या होगा
What will be the output of this Python code?
str="Hello python"
print(str[-7:-4:1])