O Level Python Paper July 2025

Read the instructions carefully before you begin

101
Questions
120
Minutes
+1
Per correct
−0
Negative
  1. The test contains 100 questions, each with 4 options and only one correct answer.
  2. Scroll through questions on the left. Tap an option to mark it — it fills automatically on the OMR sheet on the right.
  3. On mobile, tap the round button to open the OMR sheet, and tap it again (or the close icon) to go back to questions.
  4. You can tap any bubble directly on the OMR sheet to jump straight to that question.
  5. The timer starts as soon as you click Start Test and cannot be paused.
  6. The test will auto-submit when the time runs out, so submit early if you finish sooner.
  7. Do not refresh or close the browser tab during the test.
  1. इस टेस्ट में 100 प्रश्न हैं, हर प्रश्न में 4 विकल्प हैं और केवल एक सही उत्तर है।
  2. बाईं ओर प्रश्न स्क्रॉल करें। विकल्प पर टैप करते ही वह दाईं ओर OMR शीट पर अपने आप भर जाएगा।
  3. मोबाइल पर, OMR शीट खोलने के लिए गोल बटन दबाएँ, वापस जाने के लिए फिर से दबाएँ या क्लोज़ आइकॉन पर टैप करें।
  4. आप OMR शीट पर किसी भी बबल पर सीधे टैप करके उस प्रश्न पर जा सकते हैं।
  5. "Start Test" पर क्लिक करते ही टाइमर शुरू हो जाएगा और इसे रोका नहीं जा सकता।
  6. समय समाप्त होने पर टेस्ट अपने आप सबमिट हो जाएगा, इसलिए जल्दी पूरा करने पर पहले सबमिट करें।
  7. टेस्ट के दौरान ब्राउज़र टैब को रिफ्रेश या बंद न करें।
The timer will start immediately after you click Start Test.
Candidate Roll: LZ-19955
0/100 answered
120:00
1

What will be the output of q.pop(1) for q = [3,4,5,20,5,25,13]?

q = [3,4,5,20,5,25,13] के लिए, q.pop(1) का output क्या होगा?

2

What is the correct value of the following expression?

निम्नलिखित expression का सही मान क्या होगा?

2 + 3 * 4 - 6
3

What will be the output of the following NumPy code?

निम्न NumPy कोड का आउटपुट क्या होगा?

x = np.arange(1, 11, 2)
print(x)
4

What will be the output of math.log(64,2)?

math.log(64,2) का आउटपुट क्या होगा?

5

What will be the output of print(5*(2//3)) in Python?

Python में print(5*(2//3)) का आउटपुट क्या होगा?

6

What does list comprehension syntax look like in Python?

Python में list comprehension का syntax कैसा होता है?

7

How many comparison operators are there in Python?

Python में कितने comparison operators होते हैं?

8

What will be the output of q.pop(1) for q = [3,4,5,20,5,25,13]?

q = [3,4,5,20,5,25,13] के लिए, q.pop(1) का output क्या होगा?

9

Language efficiency can be achieved through:

भाषा दक्षता (language efficiency) कैसे प्राप्त की जा सकती है?

10

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 क्या होगा?

11

How does a child class access the properties of a parent class in Python?

Python में child class parent class की properties कैसे access करती है?

12

What will be the value of x in the following Python expression?

निम्नलिखित Python अभिव्यक्ति में x का मान क्या होगा?


x = int(43.55+2/2)
print(x)

13

What is the value of 6 factorial (6!)?

6 का factorial (6!) क्या होगा?

14

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?


t = (1,2)
print(2*t)

15

Functions that do not return any value are known as:

ऐसी functions जो कोई मान (value) वापस नहीं करती हैं, उन्हें क्या कहा जाता है?

16

What will be the output of "A" + "BC" in Python?

Python में "A" + "BC" का आउटपुट क्या होगा?

17

What is a multidimensional array in NumPy called?

NumPy में multidimensional array को क्या कहते हैं?

18

What will be the output of the following Python code?

निम्न Python code का आउटपुट क्या होगा?


for i in [1, 2, 3, 4][::-1]:
    print(i)
19

What is the last thing printed when the following code is run?

निम्नलिखित कोड चलाने पर अंतिम बार क्या मुद्रित होता है?


number = 0
while number <= 10:
    print("Number: ", number)
    number = number + 1

20

What will be the output of the following Python code?

नीचे दिए गए Python कोड का आउटपुट क्या होगा?


def cube(x):
    return (x*x*x)

x = cube(3)
print(x)

21

What will be the output of print(~100) in Python?

Python में print(~100) का आउटपुट क्या होगा?

22

What will be the output of this Python code?

इस Python कोड का आउटपुट क्या होगा?

str="Hello python"
print(str[-7:-4:1])

23

What is the value of a,b,c after executing the following code?

निम्नलिखित कोड चलाने के बाद a,b,c का मान क्या होगा?

a,b,c=23,15,16
b,c,a=a+6,b+3,c+6
print(a,b,c)

24

What does the pickle module do in Python?

pickle module क्या करता है?

25

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?


x=10
y=5
x,y=y,x
print(x,y)

26

What will be the output of: 22//3 + 3/3 ?

22//3 + 3/3 का आउटपुट क्या होगा?


27

What is the full form of EOF?

EOF का full form क्या है?

28

random.shuffle() method accepts the value of which data type?

random.shuffle() method किस data type की value accept करता है?

29

In Python, if a return statement has no value, what does it return?

Python में यदि return statement के साथ कोई value नहीं दी जाए, तो वह क्या लौटाता है?

30

What is the output of &#039;abcdefg&#039;[2:5]?

&#039;abcdefg&#039;[2:5] का output क्या होगा?

31

What is the output of Python code?

पायथन कोड का आउटपुट क्या है?

my_list = [3,1,4,1,5]
print(max (my_list))
32

Which operator has the highest precedence in Python?

Python में highest precedence किस operator की होती है?

33

If a and b are numpy arrays with the same shape, what does np.stack((a,b)) do?

अगर a और b एक जैसे shape की numpy arrays हैं, तो np.stack((a,b)) का क्या काम है?

34

What is the output of 4 + 2**5 // 10?

4 + 2**5 // 10 का output क्या होगा?

35

What is the value of 2**3 + 5**2?

2**3 + 5**2 का मान क्या होगा?

36

If s = &quot;Information&quot;, what is the output of print(s[2:8])?

अगर s = &quot;Information&quot; हो, तो print(s[2:8]) का output क्या होगा?

37

What is the purpose of == operator in Python?

Python में == ऑपरेटर का उपयोग किसलिए होता है?

38

Python supports the creation of anonymous functions at runtime, using a construct called —–

Python रनटाइम पर गुमनाम (anonymous) functions बनाने के लिए जिस construct का उपयोग करता है, उसे क्या कहा जाता है?

39

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?


word = "Snow world"
print(word[4:7])
40

Which NumPy function is used to find the median of an array?

किस NumPy function से array का median निकाला जाता है?

41

What is the symbol of logical OR operator in Python?

Logical OR operator का symbol क्या है?

42

What will be the output of &quot;A&quot; + &quot;BC&quot; in Python?

Python में &quot;A&quot; + &quot;BC&quot; का आउटपुट क्या होगा?

43

What will be the result of the following Python code?

Python में नीचे दिए गए कोड का परिणाम क्या होगा?


x = (1, 2, 3)
x[0] = 3


44

What is a variable defined inside a function in Python called?

Python में function के अंदर define किया गया variable क्या कहलाता है?

45

What is the decimal value of binary number 110001?

Binary संख्या 110001 का decimal में मान क्या होगा?

46

What is the difference between break and continue in Python?

Python में break और continue का अंतर क्या है?

47

Which keyword is used to define a function in Python?

Python में कौन सा keyword function define करने के लिए प्रयोग होता है?

48

What will be the output of print(9//4*3 - 6*3//4) in Python?

Python में print(9//4*3 - 6*3//4) का आउटपुट क्या होगा?

49

What is the best way to calculate factorial in Python?

Python में factorial निकालने के लिए सबसे अच्छा तरीका क्या है?

50

What does the type() function do in Python?

Python में type() function का क्या काम है?

51

What will be the output of the following Python code?

Python में नीचे दिए गए कोड का आउटपुट क्या होगा?


L = [1, 2, 3, 4, 5]
print([x & 1 for x in L])

52

What will range(5) generate?

Python में range(5) का आउटपुट क्या होगा?

53

Which of the following statements won’t be printed when this Python code is run?

इस पायथन कोड को चलाने पर निम्नलिखित में से कौन सा कथन मुद्रित नहीं होगा?


for letter in 'Python':
    if letter == 'h':
        continue
    print('Current Letter : ' + letter)

54

Which method is used to truncate a number in Python?

Python में truncation करने के लिए कौन सा method प्रयोग किया जाता है?

55

What does the write() function return in Python?

Python में write() function क्या return करता है?

56

What will be the types printed by the following Python code?

निम्न Python कोड के आउटपुट में types क्या होंगी?


print(type(5/2))
print(type(5//2))

57

What is the order in which Python searches for an identifier?

Python में किसी variable (identifier) को खोजने का क्रम क्या है?

58

Which of the following loops always executes the loop body at least once, even if the condition is false?

नीचे दिए गए में से कौन सा loop कम से कम एक बार ज़रूर execute होता है, चाहे condition false हो?

59

What will be the output of the following Python code?

नीचे दिए गए Python कोड का आउटपुट क्या होगा?


x = 15

def f1(a, b=x):
    print(a, b)

f1(4)

60

What will be the result of pow(2, 3, 5) in Python?

Python में pow(2, 3, 5) का परिणाम क्या होगा?

61

What is the purpose of the index() method in a Python list?

Python list की index() विधि का क्या उद्देश्य है?

62

Which function is used to create an array in NumPy?

NumPy में array बनाने के लिए कौन सा function उपयोग किया जाता है?

63

What is a nested function in Python?

Python में nested function क्या होती है?

64

What will be the data types of variables a and b?

a और b वेरिएबल का डेटा टाइप क्या होगा?


var a = 10
var b = "Manish"

65

If x = 1, then what will be the result of x &lt;&lt; 2?

यदि x = 1 है, तो x &lt;&lt; 2 का परिणाम क्या होगा?

66

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?


print(-18//4)

67

What will be the output of: 1011 ?

1011 का आउटपुट क्या होगा?

68

Which NumPy function is used to create an identity matrix?

NumPy में identity matrix बनाने के लिए क्या उपयोग किया जाता है?

69

In a flowchart, which symbol is used for division (decision making)?

Flowchart में निर्णय (decision) के लिए कौन सा symbol उपयोग किया जाता है?

70

What is the output of the following NumPy code?

निम्नलिखित NumPy कोड का आउटपुट क्या होगा?


arr = np.array([1,2,3,4,5])
print(np.sum(arr))

71

What will be the output of the following Python code?

Python में नीचे दिए गए कोड का आउटपुट क्या होगा?


L = [1, 2, 3, 4, 5]
print([x & 1 for x in L])

72

What will be the output of this code?

इस कोड का आउटपुट क्या होगा?


a = 5
b = 1
c = 1 ^ 5
print(c)
73

Is it correct to import NumPy module like this?

क्या NumPy module को ऐसे import करना सही है?


import numpy as np

74

Which operator is overloaded by the method _gt_() ?

कौन सा ऑपरेटर _gt_() overload किया जाता है?

75

Which symbol is used to write a single line comment in Python?

Python में single line comment लिखने के लिए कौन सा symbol प्रयोग होता है?

76

Which of the following can be used to create NumPy arrays?

NumPy में array बनाने के लिए निम्न में से कौन सा method प्रयोग कर सकते हैं?

77

What is the correct extension of a Python file?

Python फाइल की सही extension क्या है?

78

Which of the following is an entry control loop in Python?

Python में कौन सा loop entry control loop है?

79

In Python, which method is used to format date and time as a string?

Python में date और time को specific format में string में बदलने के लिए कौन सा method प्रयोग होता है?

80

What is the maximum length of an identifier in Python?

Python में identifier (जैसे variable, function name) की अधिकतम लंबाई कितनी हो सकती है?

81

The formal grammar rules governing the construction of valid instructions are called:

मान्य निर्देशों (instructions) के निर्माण को नियंत्रित करने वाले formal grammar rules को क्या कहते हैं?

82

How is data stored in a Python dictionary?

Python dictionary में data कैसे store होता है?

83

What is the full form of EOL?

EOL का full form क्या है?

84

Which of the following is NOT a valid Python arithmetic operator?

Python में कौन सा valid arithmetic operator नहीं है?

85

What is the value of range(0)?

range(0) की value क्या है?

86

Which function is used to accept console input in Python?

Python में console से input लेने के लिए कौन सा function प्रयोग होता है?

87

What will be the output?

Python में इस code का output क्या होगा?


a = 9
b = 1
print(a | b)

88

What will be the output of the following function?

नीचे दिए गए function का output क्या होगा?


def C2F(c):
    return c*9/5+32
print(C2F(100))
print(C2F(0))

89

Which of the following is NOT a popular assembler?

नीचे में से कौन सा popular assembler नहीं है?

90

Which of the following is NOT a popular assembler?

नीचे में से कौन सा popular assembler नहीं है?

91

What is the full form of NumPy?

NumPy का full form क्या है?

92

Which mode is used to open a file in append mode?

Append mode में file खोलने के लिए कौन सा mode इस्तेमाल होता है?

93

What will be the output of int(&#039;101&#039;)?

int(&#039;101&#039;) का output क्या होगा?

94

Which of the following is an immutable object?

नीचे दिए गए में से कौन सा immutable object है?

95

What do we call a function whose name is chosen by the programmer?

Python में खुद से बनाए गए function को क्या कहते हैं?

96

What will be the output of print(len(&#039;hello&#039;))?

print(len(&#039;hello&#039;)) का output क्या होगा?

97

What will be the output of &quot;abcde&quot;[::-1]?

&quot;abcde&quot;[::-1] का output क्या होगा?

98

Which are attributes related to file objects?

File object के कौन से attributes होते हैं?

99

Which method is used to add an element to a set in Python?

Python में set को जोड़ने के लिए कौन सी method प्रयोग होती है?

100

What will be the output of factorial(5) from the math module?

math module से factorial(5) का output क्या होगा?

101

Which of the following is NOT a Python keyword?

Python का कौन सा शब्द keyword नहीं है?

OMR Answer Sheet
Unmarked Marked Current
OMR Answer Sheet

Test submitted

Thanks, Candidate! Your responses have been recorded.

0
Answered
0
Unanswered

Hook this screen up to your backend to show the actual score.