O Level Python Paper January 2021
निम्नलिखित पायथन प्रोग्राम का आउटपुट खोजें।
Find the output of following Python Programs.
a= “Meetmeatafterparty”
b= 13
print a+b
निम्नलिखित पायथन प्रोग्राम का आउटपुट खोजें।
Find the output of the following Python programs.
class Acc:
def __init__(self, id):
self.id = id
id = 555
acc = Acc(111)
print (acc.id)
निम्नलिखित में से कौन सा एक अमान्य चर है?
Which of the following is an invalid variable?
निम्नलिखित पायथन प्रोग्राम का आउटपुट खोजें।
Find the output of the following Python programs.
x=['ab','cd']
for i in x:
i.upper()
print(x)
निम्नलिखित प्रोग्राम का आउटपुट क्या है?
What is the output of the following program?
a = 2
b= '3.77'
c = - 8
str1= '{0:4f} {0:3d} {2} {1}'. format(a, b, c)
print(str1)
निम्नलिखित पायथन प्रोग्रामों का आउटपुट पता करें:
Find out the output of the following Python programs:
def gfg(x,l=[]):
for i in range(x):
l.append(i*i)
print(l)
gfg(2)
मान लीजिए t=(1, 2, 4, 3), तो निम्नलिखित में से कौन सा गलत है?
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
t1 = (1, 2, 4, 3)
t2 = (1, 2, 3, 4)
print(t1<t2)
निम्नलिखित में से कौन सा कथन recursion के बारे में गलत है?
Which of the following statements is false about recursion ?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
import functools
l=[1, 2, 3, 4, 5]
m=functools.reduce(lambda x, y:x if x>y else y, l)
print(m)
पायथन एक उच्च स्तरीय, व्याख्या की गई, इंटरैक्टिव और ऑब्जेक्ट-ओरिएंटेड स्क्रिप्टिंग भाषा है। इसे अत्यधिक अपठनीय होने के लिए डिज़ाइन किया गया है।
Python is a high-level, interpreted, interactive and object-oriented scripting language. It is designed to be highly unreadable.
पायथन कई अन्य भाषाओं से व्युत्पन्न है, जिनमें एबीसी, मोडुला-3, सी, सी++, एल्गोल-68, स्मॉलटॉक, और यूनिक्स शेल तथा अन्य स्क्रिप्टिंग भाषाएं शामिल हैं।
Python is derived from many other languages, including ABC, Modula-3, C, C++, Algol-68, SmallTalk, and Unix shell and other scripting languages.
पायथन में किसी विशेष फ़ंक्शन को एक से अधिक व्यवहार सौंपना और निष्पादित ऑपरेशन, शामिल ऑब्जेक्ट या तर्कों के प्रकार के अनुसार भिन्न होता है, जिसे ऑपरेटर ओवरलोडिंग के रूप में जाना जाता है।
In Python assignment of more than one behaviour to a particular function and the operation performed varies by the types of objects or arguments involved are known as operator overloading.
टपल में मानों तक पहुंचने के लिए, उस इंडेक्स पर उपलब्ध मान प्राप्त करने के लिए इंडेक्स या इंडेक्स के साथ स्लाइसिंग के लिए वर्गाकार कोष्ठकों का उपयोग करें।
To access values in tuple, use the square brackets for slicing along with the index or indices to obtain value available at that index.
डेटाबेस इंटरफेस के लिए पायथन मानक पायथन SB-API है। अधिकांश पायथन डेटाबेस इंटरफेस इस मानक का पालन करते हैं।
The Python standard for database interfaces is the Python SB-API. Most Python database interfaces adhere to this standard.
यदि डेटा स्रोत के साथ कनेक्शन स्थापित किया जाता है, तो कनेक्शन ऑब्जेक्ट लौटा दिया जाता है और आगे उपयोग के लिए db में सहेज लिया जाता है, अन्यथा db को None पर सेट कर दिया जाता है।
If a connection is established with the datasource, then a Connection Object is returned and saved into db for further use, otherwise db is set to None.
tell() विधि आपको फ़ाइल के भीतर वर्तमान स्थिति बताती है।
The tell() method tells you the current position within the file.
व्यक्तिगत ट्यूपल तत्वों को हटाना संभव है।
Removing individual tuple elements is possible.
जब कोई पायथन स्क्रिप्ट कोई अपवाद उठाती है, तो उसे या तो अपवाद को तुरंत संभालना चाहिए अन्यथा वह समाप्त हो जाएगी और बंद हो जाएगी।
When a Python script raises an exception, it must either handle the exception immediately otherwise it terminates and quits.
पहला method_init_() एक विशेष विधि है, जिसे क्लास कंस्ट्रक्टर या इनिशियलाइज़ेशन विधि कहा जाता है जिसे पायथन तब कॉल करता है जब आप इस क्लास का एक नया इंस्टेंस बनाते हैं।
The first method_init_() is a special method, which is called class constructor or initialization method that Python calls when you create a new instance of this class.
निम्नलिखित पायथन प्रोग्राम का आउटपुट ____ है
The output of following Python program is _____.
r = lambda q: q*2
s = lambda q: q * 3
x = 2
x = r(x)
x = s(x)
x = r(x)
print x
आइए निम्नलिखित पायथन कोड पर विचार करें, इस कोड का आउटपुट है
Let consider the following Python code. The output of this code is ____
a = True
b = False
c = False
if a or b and c:
print("TRUE")
else:
print("FALSE")
पुनरावर्ती फ़ंक्शन आमतौर पर गैर-पुनरावर्ती फ़ंक्शन की तुलना में _______ मेमोरी स्थान लेते हैं।
Recursive functions usually take ________ memory space than non-recursive function.
पायथन प्रोग्रामिंग भाषा __________ द्वारा बनाई गई थी।
Python programming language was created by ____________.
पायथन प्रोग्रामिंग की ऑब्जेक्ट-ओरिएंटेड शैली या तकनीक का समर्थन करता है जो कोड को _______ के भीतर समाहित करता है।
Python supports Object-Oriented style or technique of programming that encapsulates code within ________ .
__________ वर्तमान समय का क्षण, युग के बाद से सेकंड की एक फ्लोटिंग-पॉइंट संख्या लौटाता है।
______ returns the current time instant, a floating-point number of seconds since the epoch.
______ variables को केवल उस फ़ंक्शन के अंदर ही एक्सेस किया जा सकता है जिसमें उन्हें घोषित किया गया है, जबकि वैश्विक चर को पूरे प्रोग्राम बॉडी में सभी फ़ंक्शन द्वारा एक्सेस किया जा सकता है
The ______ variables can be accessed only inside the function in which they are declared, whereas global variables can be accessed throughout the program body by all functions.
ट्यूपल्स और सूचियों के बीच अंतर यह है कि ट्यूपल्स को सूचियों के विपरीत बदला नहीं जा सकता है और ट्यूपल्स _______ का उपयोग करते हैं, जबकि सूचियाँ वर्ग कोष्ठक का उपयोग करती हैं।
The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use _______ ,whereas lists use square brackets.
पायथन मिश्रित प्रकार वाले एक्सप्रेशन में आंतरिक रूप से संख्याओं को मूल्यांकन के लिए एक सामान्य प्रकार में परिवर्तित करता है। लेकिन कभी-कभी, __________पैरामीटर की आवश्यकताओं को पूरा करने के लिए एक संख्या को एक प्रकार से दूसरे प्रकार में स्पष्ट रूप से बाध्य करता है।
Python converts numbers internally in an expression containing mixed types to a Common type for evaluation. But sometimes, coerce a number explicitly from one type to another to satisfy the requirements of ______ parameter.
पायथन भाषा में सभी पैरामीटर (आर्गुमेंट) _________ द्वारा पास किए जाते हैं।
All parameters (arguments) in the Python language are passed by _______.