🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

Solved - O Level Python Paper January 2021

Ques 1 Report Error

निम्नलिखित पायथन प्रोग्राम का आउटपुट खोजें।

Find the output of following Python Programs.

a= “Meetmeatafterparty”
b= 13
print a+b

[A] 29

[B] 14

[C] error in code

[D] 15

Correct Answer : error in code


Ques 2 Report Error

निम्नलिखित पायथन प्रोग्राम का आउटपुट खोजें।

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) 

[A] 111

[B] 555

[C] 666

[D] error in code

Correct Answer : 111


Ques 3 Report Error

निम्नलिखित में से कौन सा एक अमान्य चर है?

Which of the following is an invalid variable?

[A] my_string_1

[B] foo

[C] __

[D] 1st_string

Correct Answer : 1st_string


Ques 4 Report Error

निम्नलिखित पायथन प्रोग्राम का आउटपुट खोजें।

Find the output of the following Python programs.

x=['ab','cd']
for i in x:
     i.upper()
print(x)

[A] ab

[B] cd

[C] ['ab','cd']

[D] ['cd','ab']

Correct Answer : ['ab','cd']


Ques 5 Report Error

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

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) 

[A] 2.0000 2 -8 3.77

[B] 2 3.77-8 3.77

[C] 2.000 3 -8 3.77

[D] 2.000 2 8 3.77

Correct Answer : 2.0000 2 -8 3.77


Ques 6 Report Error

निम्नलिखित पायथन प्रोग्रामों का आउटपुट पता करें:

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)

[A] [3, 2, 1, 0, 1, 4]

[B] [0, 1]

[C] [0, 1, 0, 1, 4]

[D] error in code

Correct Answer : [0, 1]


Ques 7 Report Error

मान लीजिए t=(1, 2, 4, 3), तो निम्नलिखित में से कौन सा गलत है?

Suppose t = (1, 2, 4, 3), which of the following is incorrect?

[A] print (t [3])

[B] t[3]=45

[C] print(max(t))

[D] print (Len(t))

Correct Answer : t[3]=45


Ques 8 Report Error

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

What will be the output of the following Python code?

t1 = (1, 2, 4, 3)
t2 = (1, 2, 3, 4)
print(t1<t2)

[A] True

[B] False

[C] Error

[D] (1, 2, 4, 3)

Correct Answer : False


Ques 9 Report Error

निम्नलिखित में से कौन सा कथन recursion के बारे में गलत है?

Which of the following statements is false about recursion ?

[A] Every recursive function must have a base case (प्रत्येक पुनरावर्ती फ़ंक्शन का एक आधार मामला होना चाहिए)

[B] Infinite recursion can occur if the base case isn't properly mentioned (यदि आधार मामले का उचित उल्लेख नहीं किया गया है तो अनंत पुनरावृत्ति हो सकती है)

[C] A recursive function makes the code easier to understand (पुनरावर्ती फ़ंक्शन कोड को समझना आसान बनाता है)

[D] Every recursive function must have a return value (प्रत्येक पुनरावर्ती फ़ंक्शन का एक रिटर्न मान होना चाहिए)

Correct Answer : Every recursive function must have a return value (प्रत्येक पुनरावर्ती फ़ंक्शन का एक रिटर्न मान होना चाहिए)


Ques 10 Report Error

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

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)

[A] Error

[B] Address of m

[C] 1

[D] 5

Correct Answer : 5


Ques 11 Report Error

पायथन एक उच्च स्तरीय, व्याख्या की गई, इंटरैक्टिव और ऑब्जेक्ट-ओरिएंटेड स्क्रिप्टिंग भाषा है। इसे अत्यधिक अपठनीय होने के लिए डिज़ाइन किया गया है।

Python is a high-level, interpreted, interactive and object-oriented scripting language. It is designed to be highly unreadable.

[A] TRUE

[B] FALSE

Correct Answer : FALSE


Ques 12 Report Error

पायथन कई अन्य भाषाओं से व्युत्पन्न है, जिनमें एबीसी, मोडुला-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.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 13 Report Error

पायथन में किसी विशेष फ़ंक्शन को एक से अधिक व्यवहार सौंपना और निष्पादित ऑपरेशन, शामिल ऑब्जेक्ट या तर्कों के प्रकार के अनुसार भिन्न होता है, जिसे ऑपरेटर ओवरलोडिंग के रूप में जाना जाता है।

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.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 14 Report Error

टपल में मानों तक पहुंचने के लिए, उस इंडेक्स पर उपलब्ध मान प्राप्त करने के लिए इंडेक्स या इंडेक्स के साथ स्लाइसिंग के लिए वर्गाकार कोष्ठकों का उपयोग करें।

To access values in tuple, use the square brackets for slicing along with the index or indices to obtain value available at that index.

[A] TRUE

[B] FALSE

Correct Answer : FALSE


Ques 15 Report Error

डेटाबेस इंटरफेस के लिए पायथन मानक पायथन SB-API है। अधिकांश पायथन डेटाबेस इंटरफेस इस मानक का पालन करते हैं।

The Python standard for database interfaces is the Python SB-API. Most Python database interfaces adhere to this standard.

[A] TRUE

[B] FALSE

Correct Answer : FALSE


Ques 16 Report Error

यदि डेटा स्रोत के साथ कनेक्शन स्थापित किया जाता है, तो कनेक्शन ऑब्जेक्ट लौटा दिया जाता है और आगे उपयोग के लिए 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.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 17 Report Error

tell() विधि आपको फ़ाइल के भीतर वर्तमान स्थिति बताती है।

The tell() method tells you the current position within the file.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 18 Report Error

व्यक्तिगत ट्यूपल तत्वों को हटाना संभव है।

Removing individual tuple elements is possible.

[A] TRUE

[B] FALSE

Correct Answer : FALSE


Ques 19 Report Error

जब कोई पायथन स्क्रिप्ट कोई अपवाद उठाती है, तो उसे या तो अपवाद को तुरंत संभालना चाहिए अन्यथा वह समाप्त हो जाएगी और बंद हो जाएगी।

When a Python script raises an exception, it must either handle the exception immediately otherwise it terminates and quits.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 20 Report Error

पहला 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.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 21 Report Error

निम्नलिखित पायथन प्रोग्राम का आउटपुट ____ है

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

[A] 246

[B] 24

[C] 0

[D] Error

Correct Answer : 24


Ques 22 Report Error

आइए निम्नलिखित पायथन कोड पर विचार करें, इस कोड का आउटपुट है

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") 

[A] TRUE

[B] FALSE

[C] None

[D] Error

Correct Answer : TRUE


Ques 23 Report Error

पुनरावर्ती फ़ंक्शन आमतौर पर गैर-पुनरावर्ती फ़ंक्शन की तुलना में _______ मेमोरी स्थान लेते हैं।

Recursive functions usually take ________ memory space than non-recursive function.

[A] MORE

[B] LESS

[C] Can't say

[D] May be

Correct Answer : MORE


Ques 24 Report Error

पायथन प्रोग्रामिंग भाषा __________ द्वारा बनाई गई थी।

Python programming language was created by ____________.

[A] Denis Ritchie

[B] Guido van Rossum

[C] Wick van Rossum

[D] Rasmus Lerdorf

Correct Answer : Guido van Rossum


Ques 25 Report Error

पायथन प्रोग्रामिंग की ऑब्जेक्ट-ओरिएंटेड शैली या तकनीक का समर्थन करता है जो कोड को _______ के भीतर समाहित करता है।

Python supports Object-Oriented style or technique of programming that encapsulates code within ________ .

[A] Class

[B] Variable

[C] Objects

[D] None

Correct Answer : Objects


Ques 26 Report Error

__________ वर्तमान समय का क्षण, युग के बाद से सेकंड की एक फ्लोटिंग-पॉइंट संख्या लौटाता है।

______ returns the current time instant, a floating-point number of seconds since the epoch.

[A] time.time()

[B] time.epoch()

[C] Can't say

[D] None

Correct Answer : time.time()


Ques 27 Report Error

______ 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.

[A] built in

[B] local

[C] global

[D] none

Correct Answer : local


Ques 28 Report Error

ट्यूपल्स और सूचियों के बीच अंतर यह है कि ट्यूपल्स को सूचियों के विपरीत बदला नहीं जा सकता है और ट्यूपल्स _______ का उपयोग करते हैं, जबकि सूचियाँ वर्ग कोष्ठक का उपयोग करती हैं।

The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use _______ ,whereas lists use square brackets.

[A] parameter

[B] parentheses

[C] angle braces

[D] curly braces

Correct Answer : parentheses


Ques 29 Report Error

पायथन मिश्रित प्रकार वाले एक्सप्रेशन में आंतरिक रूप से संख्याओं को मूल्यांकन के लिए एक सामान्य प्रकार में परिवर्तित करता है। लेकिन कभी-कभी, __________पैरामीटर की आवश्यकताओं को पूरा करने के लिए एक संख्या को एक प्रकार से दूसरे प्रकार में स्पष्ट रूप से बाध्य करता है।

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.

[A] function

[B] operator

[C] both a and b

[D] both a and b are wrong.

Correct Answer : both a and b


Ques 30 Report Error

पायथन भाषा में सभी पैरामीटर (आर्गुमेंट) _________ द्वारा पास किए जाते हैं।

All parameters (arguments) in the Python language are passed by _______.

[A] reference

[B] value

[C] Can't say

[D] None

Correct Answer : reference


Related Papers
Latest Updates