Jan 2021 M3-R5

1 / 20

Which of the following is an invalid variable ?
निम्नलिखित में से कौन सा एक अमान्य वैरिएबल है?

2 / 20

Python is derived from many other languages, including ABC, Modula-3, C, C++, Algol-68, SmallTalk, and Unix shell and other scripting languages.
पायथन कई अन्य भाषाओं से लिया गया है, जिनमें एबीसी, मॉड्यूला-3, सी, सी++, अल्गोल-68, स्मॉलटॉक और यूनिक्स शेल और अन्य स्क्रिप्टिंग भाषाएं शामिल हैं।

3 / 20

Find out the output of the following Python programs :
निम्नलिखित पायथन प्रोग्रामों का आउटपुट ज्ञात कीजिए:

def gfg(x,l=[ ]):
for i in range(x):
1.append(i*i)
print(l)
gfg(2)

4 / 20

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.
पायथन में किसी विशेष फ़ंक्शन के लिए एक से अधिक व्यवहारों का असाइनमेंट और निष्पादित ऑपरेशन, शामिल वस्तुओं या तर्कों के प्रकार के अनुसार भिन्न होता है, जिसे ऑपरेटर ओवरलोडिंग के रूप में जाना जाता है।

5 / 20

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.
पहला method_init_() एक विशेष विधि है, जिसे क्लास कन्स्ट्रक्टर या इनिशियलाइज़ेशन विधि कहा जाता है, जिसे पायथन तब कॉल करता है जब आप इस क्लास का नया इंस्टैंस बनाते हैं।

6 / 20

The Python standard for database interfaces is the Python SB-APL Most Python database interfaces adhere to this standard.
डेटाबेस इंटरफेस के लिए पायथन मानक पायथन एसबी-एपीएल है। अधिकांश पायथन डेटाबेस इंटरफेस इस मानक का पालन करते हैं।

7 / 20

What will be the output of the following Python code ?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>>tl=(l, 2, 4, 3)
>>>t2=(1, 2, 3, 4)
>>>tl<t2

8 / 20

What is the output of the following program ?
निम्नलिखित प्रोग्राम का आउटपुट क्या है?
a = 2
b = '3.77'
c = -8
strl = '{ 0:4f} { 0:3d} { 2} {1 }'. format (a, b, c)
print(strl)

9 / 20

Python is a high-level, interpreted, interactive and object-oriented scripting language. It is designed to be highly unreadable.
पायथन एक उच्च स्तरीय, व्याख्या की गई, इंटरैक्टिव और ऑब्जेक्ट-ओरिएंटेड स्क्रिप्टिंग भाषा है। इसे अत्यधिक अपठनीय होने के लिए डिज़ाइन किया गया है।

10 / 20

Find the output of following Python Programs.
निम्नलिखित पायथन प्रोग्राम का आउटपुट ज्ञात करें।

a = "Meetmeafterparty"
b = 13
print a + b

11 / 20

Suppose t = (1, 2, 4, 3), which of the following is incorrect ?
मान लीजिए t = (1, 2, 4, 3) तो निम्न में से कौन सा गलत है?

12 / 20

The tell() method tells you the current position within the file.
टेल () विधि आपको फ़ाइल के अंदर वर्तमान स्थिति बताती है।

13 / 20

Find the output of the following Python programs.
निम्नलिखित पायथन प्रोग्रामों का आउटपुट ज्ञात कीजिए।
x = ['ab', 'cd']
for i in x:
i.upper( )
print(x)

14 / 20

Which of the following statements is false about recursion ?
रिकर्सन के बारे में निम्नलिखित में से कौन सा कथन गलत है?

15 / 20

What will be the output of the following Python code ?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

import functools
1=[1, 2, 3, 4, 5]
m=functools.reduce(lambda x, y:x if x>y else y, l)
print(m)

16 / 20

When a Python script raises an exception, it must either handle the exception immediately otherwise it terminates and quits.
जब कोई पायथन स्क्रिप्ट अपवाद उठाती है, तो उसे या तो अपवाद को तुरंत संभालना चाहिए अन्यथा वह समाप्त हो जाती है और बंद हो जाती है।

17 / 20

Removing individual tuple elements is possible.
व्यक्तिगत ट्यूपल तत्वों को हटाना संभव है।

18 / 20

If a connection is established with the datasource, then a Connection Object is returned and saved into dbfor further use, otherwise db is set to None.
यदि डेटा स्रोत के साथ कनेक्शन स्थापित किया जाता है, तो कनेक्शन ऑब्जेक्ट लौटा दिया जाता है और आगे उपयोग के लिए db में सहेज लिया जाता है, अन्यथा db को None पर सेट कर दिया जाता है।

19 / 20

To access values in tuple, use the square brackets for slicing along with the index or indices to obtain value available at that index.
टपल में मानों तक पहुंचने के लिए, उस इंडेक्स पर उपलब्ध मान प्राप्त करने के लिए इंडेक्स या इंडेक्स के साथ स्लाइसिंग के लिए वर्गाकार कोष्ठकों का उपयोग करें।

20 / 20

Find the output of the following Python programs.
निम्नलिखित पायथन प्रोग्रामों का आउटपुट ज्ञात कीजिए।
class Ace:
def_init_(self, id):
self.id = id
id = 555
ace = Acc(ll 1)
print ace.id

Your score is

The average score is 54%

0%