Solved - O Level Python Paper January 2025
पायथन में निम्नलिखित अभिव्यक्ति का मूल्यांकन किस रूप में किया जाएगा?
What will the following expression be evaluated to in Python?
print(15.0 / 4 + (8 + 3.0)) [A] 14.75
[B] 14.0
[C] 15
[D] 15.5
Correct Answer : 14.75
फ्लोचार्ट में काउंटर का उपयोग किस लिए किया जाता है?
What is a counter used for in a flowchart?
[A] To track the number of iterations or occurrences
[B] To perform arithmetic operations
[C] To store temporary values
[D] To make decisions
Correct Answer : To track the number of iterations or occurrences
पायथन में संख्याओं को घात तक बढ़ाने के लिए प्रयुक्त ऑपरेटर का नाम बताइए?
Name the operator used in Python to raise numbersto the power?
[A] itwise Operators
[B] Exponentiation Operator
[C] Identify Operator
[D] Membership Operators
Correct Answer : Exponentiation Operator
उस चीज़ का नाम बताइए जो डुप्लिकेट मानों की अनुमति नहीं देती है?
Name the thing which does not allow duplicate values?
[A] Set
[B] lists
[C] Tuples
[D] None of the above
Correct Answer : Set
उस कथन का नाम बताइए जिसका उपयोग एक मॉड्यूल के सभी कार्यात्मकता को दूसरे में आयात करने के लिए किया जाता है।
Name the statement which is used to import all thefunctionally of one module into another.
[A] import
[B] asset
[C] try
[D] Exception
Correct Answer : import
टुपल में किसी मान तक कैसे पहुँचें?
How to access a value in Tuple?
[A] mytuple (1)
[B] mytuple [1]
[C] mytuple {1}
[D] None of the above
Correct Answer : mytuple [1]
NumPy में multidimensional array को क्या कहते हैं?
What is a multidimensional array in NumPy called?
[A] nparray
[B] ndarray
[C] listarray
[D] tuplearray
Correct Answer : ndarray
'abcdefg'[2:5] का output क्या होगा?
What is the output of 'abcdefg'[2:5]?
[A] cde
[B] def
[C] bcd
[D] cd
Correct Answer : cde
निम्न में से कौन-सा कथन binary files के लिए सही नहीं है
Which of the following is not a correct statement for binary files?
[A] Easy for carrying data into buffer
[B] Much faster than other file systems
[C] Characters translation is not required
[D] Every line ends with new line character ‘\n’
Correct Answer : Every line ends with new line character ‘\n’
PEP किसके लिए है?
PEP refers to?
[A] Python Enhancement Proposal
[B] Python Easy Program
[C] Program Execution Process
[D] Proper Execution Proposal
Correct Answer : Python Enhancement Proposal
निम्नलिखित कथन का परिणाम क्या होगा
What will be the output of following statement ?
>>>”m”+”nl” [A] ‘m+nl’
[B] ‘mnl’
[C] ‘m nl’
[D] ‘m’
Correct Answer : ‘mnl’
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code
t = (1,2)
print(2*t)
[A] (1,2,3,4)
[B] (1,2,1,2)
[C] (1,1,2,2)
[D] (1,1,2,2)
Correct Answer : (1,2,1,2)
Tuple बनाने के लिए कौन-सा symbol
Which symbol is used to define a tuple?
[A] []
[B] {}
[C] ()
[D] <>
Correct Answer : ()
x का डेटाटाइप क्या है
What is the datatype of x ?
import numpy as np
a=np.array([1,2,3,4])
x= a.tolist()
[A] int
[B] array
[C] tuple
[D] list
Correct Answer : list
Python में list comprehension का syntax कैसा होता है?
What does list comprehension syntax look like in Python
[A] [expression for item in list]
[B] (expression item list)
[C] list(expression in item)
[D] newlist(expression)
Correct Answer : [expression for item in list]
pickle module क्या करता है?
What does the pickle module do in Python?
[A] Encrypt data
[B] Save images
[C] Serialize and deserialize Python objects
[D] Sort lists
Correct Answer : Serialize and deserialize Python objects
4 + 2**5 // 10 का output क्या होगा?
What is the output of 4 + 2**5 // 10?
[A] 6
[B] 7
[C] 8
[D] 3
Correct Answer : 7
Pandas Series क्या है
Pandas Series is
[A] 1-dimensional labeled array
[B] 2-dimensional table
[C] 3-dimensional matrix
[D] Python function
Correct Answer : 1-dimensional labeled array
Python में function को समाप्त करने के लिए कौन सा keyword प्रयोग किया जाता है?
Which keyword is used to end a function in Python?
[A] end
[B] return
[C] stop
[D] exit
Correct Answer : return
Index सीमा से बाहर होने पर कौन-सा error?
Which exception is raised when index is out of range
[A] ValueError
[B] IndexError
[C] KeyError
[D] OverflowError
Correct Answer : IndexError
अगर s = "Information" हो, तो print(s[2:8]) का output क्या होगा
If s = "Information", what is the output of print(s[2:8])?
[A] format
[B] formatio
[C] nformat
[D] formatn
Correct Answer : format
पायथन में किस मॉड्यूल का उपयोग नेटवर्क सॉकेट के साथ काम करने के लिए किया जा सकता
which module in python can be used for working with network socket?
[A] http
[B] . urllib
[C] . socket
[D] header
Correct Answer : . socket
Python का जनक किसे कहा जाता है?
Who is known as the father of Python?
[A] Dennis Ritchie
[B] Bjarne Stroustrup
[C] James Gosling
[D] Guido van Rossum
Correct Answer : Guido van Rossum
निम्नलिखित Python अभिव्यक्ति में x का मान क्या होगा?
What will be the value of x in the following Python expression?
x = int(43.55+2/2)
print(x)
[A] 43
[B] 44
[C] 22
[D] 23
Correct Answer : 44
6 का factorial (6!) क्या होगा?
What is the value of 6 factorial (6!)?
[A] 720
[B] 120
[C] 36
[D] 60
Correct Answer : 720
Structured data को tabular format में store करने के लिए कौन-सा file type उपयोग किया जाता है?
Which file type is used for storing structured data in tabular format
[A] Text file
[B] CSV file
[C] JSON file
[D] None
Correct Answer : CSV file
कौन-से arguments का order जरूरी होता है?
Which type of arguments follow the order strictly
[A] Default arguments
[B] Keyword arguments
[C] Positional arguments
[D] Variable arguments
Correct Answer : Positional arguments
Python रनटाइम पर गुमनाम (anonymous) functions बनाने के लिए जिस construct का उपयोग करता है, उसे क्या कहा जाता है?
Python supports the creation of anonymous functions at runtime, using a construct called
[A] pi
[B] anonymous
[C] lambda
[D] none of the mentioned
Correct Answer : lambda
2**3 + 5**2 का मान क्या होगा?
What is the value of 2**3 + 5**2?
[A] 17
[B] 33
[C] 35
[D] 28
Correct Answer : 33
Binary file को पढ़ने के लिए कौन-सा mode उपयोग होता है
Which file mode is used to handle binary file for reading
[A] rb
[B] rw
[C] r
[D] w
Correct Answer : rb
raise keyword किस लिए?
raise keyword is used to—
[A] Handle exception
[B] Generate exception
[C] Stop program
[D] Log errors
Correct Answer : Generate exception
काजल ने एक फ़ाइल को एक खास मोड में खोला। फ़ाइल खोलने के बाद, वह उस मोड को भूल गया। उस मोड के बारे में रोचक तथ्य ये हैं कि "अगर फ़ाइल मौजूद नहीं है, तो एक नई फ़ाइल बनाई जाएगी" और "उस मोड में फ़ाइल खोलने पर फ़ाइल हैंडल फ़ाइल के अंत में होगा।" उसे सही मोड पहचानने में मदद करें।
Kajal opened a file in a certain mode. After opening the file, he forgot the mode. The interesting facts about that mode are " If the file doesn't exist, then a new file will be created" and "After opening file in that mode the file handle will be at the end of the file" Help him to identify the correct mode.
[A] read mode
[B] write mode
[C] append mode
[D] binary and read mode
Correct Answer : append mode
यदि x = 1 है, तो x << 2 का परिणाम क्या होगा?
If x = 1, then what will be the result of x << 2?
[A] 4
[B] 2
[C] 1
[D] 8
Correct Answer : 4
Exception आने पर कौन-सा block उसे handle करता है
Which block handles the exception if it occurs?
[A] try
[B] except
[C] finally
[D] else
Correct Answer : except
फ़्लोचार्ट में एक इनपुट या आउटपुट इंस्ट्रक्शन द्वारा दर्शाया जाता है
In a flowchart an input or output instruction is represented by
[A] rectangle
[B] rhombus
[C] parallelogram
[D] circle
Correct Answer : parallelogram
जब हम किसी फ़ाइल को read मोड में खोलने का प्रयास करते हैं जो मौजूद नहीं है तो निम्नलिखित में से कौन सी त्रुटि वापस आती है?
Which of the following error is returned when we try to open a file in read mode which does not exist ?
[A] File Found Error
[B] File Not Exist Error
[C] File Not Found Error
[D] None of the above
Correct Answer : File Not Found Error
कौन-सा module command line arguments को handle करता है
Which module handles command line arguments?
[A] sys
[B] os
[C] math
[D] string
Correct Answer : sys
List में अलग-अलग data types हो सकते हैं। इसे क्या कहा जाता है
Lists allow different types in a single list. This feature is called
[A] Dynamic typing
[B] Mixed storage
[C] Heterogeneous
[D] Stack model
Correct Answer : Heterogeneous
Python में break और continue का अंतर क्या है?
What is the difference between break and continue in Python
[A] break skips next iteration, continue exits loop
[B] break exits loop, continue skips current iteration
[C] both do same work
[D] both only work in functions
Correct Answer : break exits loop, continue skips current iteration