Python
Questions No: 1/50

The ______ mode of Python gives instant result of typed statement
पायथन का ______ मोड टाइप किए गए कथन का तुरंत परिणाम देता है

Questions No: 2/50

What is unpickling?
अनपिकलिंग क्या है

Questions No: 3/50

What keyword is used in Python to raise exceptions?
एक्सेप्शन उत्पन्न करने के लिए पायथन में किस कीवर्ड का उपयोग किया जाता है?

Questions No: 4/50

What will be the output of the following Python code snippet?

print(not(3>4))
print(not(1&1))

Questions No: 5/50

f.read(5) will read________from a file (file object 'f')
f.read(5) एक फ़ाइल से________ पढ़ेगा (file object 'f')

Questions No: 6/50

In which year was the Python language developed?
पायथन भाषा का विकास किस वर्ष हुआ था?

Questions No: 7/50

What will be the output of the following Python code?

i = 1
while False:
    if i%2 == 0:
        break
    print(i)
    i += 2

Questions No: 8/50

____ are the arguments passed to a function in correct positional order.
सही स्थिति क्रम में किसी फंक्शन को दिए गए आर्गुमेन्ट हैं।

Questions No: 9/50

Which one of the following is the correct extension of the Python file?
निम्नलिखित में से कौन सा पायथन फ़ाइल का सही एक्सटेंशन है?

Questions No: 10/50

What will be the output of the following Python code?

def foo(x):
    x = ['def', 'abc']
    return id(x)
q = ['abc', 'def']
print(id(q) == foo(q))

Questions No: 11/50

Given a function that does not return any value, What value is thrown by default when executed in shell.
ऐसे फ़ंक्शन को देखते हुए जो किसी भी वैल्यू को रिटर्न नहीं करता है, शेल में एक्सक्यूटेड होने पर डिफ़ॉल्ट रूप से कौन सी वैल्यू को हटा दिया जाता है।

Questions No: 12/50

Which of the following variable declaration is incorrect?
निम्नलिखित में से कौन सी वैरिएबल डिक्लेरेशन गलत है ?

Questions No: 13/50

If we open a file in write mode and file does not exists, which of the error will generate?
यदि हम एक फाइल को राइट मोड में खोलते हैं और फाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?

Questions No: 14/50

What will be the output of the following expression ?

x =4
print(x<<2)

Questions No: 15/50

If the else statement is used with a while loop, the else statement is executed when the condition becomes _____ .
यदि else स्टेटमेंट का प्रयोग 'व्हाइल' लूप के साथ किया जाता है, तो else स्टेटमेंट तब निष्पादित होता है जब कंडीशन हो जाती है।

Questions No: 16/50

What is the output of the following program:

i = 0
while i < 3:
    print (i)
    i=i+1
    print (i+1)

Questions No: 17/50

What does the 'r' mode signify when opening a file using open() in Python?
पायथन में ओपन() का उपयोग करके फ़ाइल खोलते समय 'r' मोड क्या दर्शाता है?

Questions No: 18/50

What will the value of a if a=~100
यदि a=~100 है तो a का मान क्या है?

Questions No: 19/50

What will be the output of the following Python code?

x = 'abcd'
for i in range(len(x)):
    print(i)

Questions No: 20/50

How many keywords present in the python programming language?
पायथन प्रोग्रामिंग भाषा में कितने कीवर्ड मौजूद हैं?

Questions No: 21/50

PVM is often called
PVM को अक्सर कहा जाता है

Questions No: 22/50

The syntax used to rename a file :
फ़ाइल का नाम बदलने के लिए प्रयुक्त सिंटैक्स:

Questions No: 23/50

What is the output of the following code?

x = 50
def func (x):
    x = 2
func (x)
print ('x is now', x)

Questions No: 24/50

What will be the output of the following Python code?

x = 'abcd'
for i in range(len(x)):
    print(i.upper())

Questions No: 25/50

A Function used for writing data in the binary format :
बाइनरी फॉर्मेट में डेटा लिखने के लिए उपयोग किया जाने वाला एक फंक्शन:

Questions No: 26/50

Which one is not the attribute of a file ?
इनमें से कौन एक फाइल की विशेषता नहीं है ?

Questions No: 27/50

What is the pickling?
पिकलिंग क्या है?

Questions No: 28/50

If a function doesn't have a return statement, which of the following does the function return ?
यदि किसी फंक्शन का रिटर्न स्टेटमेंट नहीं है, तो निम्न में से कौन सा फंक्शन रिटर्न होता है?

Questions No: 29/50

What will be the output of the following Python code snippet?

x = 'abcd'
for i in range(len(x)):
    print(x)
    x = 'a'

Questions No: 30/50

What will be the output after the following statements?

a = 0
b = 3
while a + b < 8:
       a += 1
       print(a, end='')

Questions No: 31/50

Which of these are keyword?
इनमें से कौन से कीवर्ड हैं ?

Questions No: 32/50

What will be the output of the following Python code?

x = "abcdef"
i = "i"
while i in x:
    print(i, end=" ")

Questions No: 33/50

Which of the following is an escape sequence for a new line character
निम्नलिखित में से कौन सा एक नए लाइन कैरेक्टर के लिए एस्केप सीक्वेंस कैरेक्टर है

Questions No: 34/50

What is the return type of following function ?

def func1():
       return 'mnp',22
print(type(func1()))

Questions No: 35/50

If return statement is not used inside the function, the function will return:
यदि फंक्शन के अंदर रिटर्न स्टेटमेंट का उपयोग नहीं किया जाता है, तो फंक्शन रिटर्न करेगा:

Questions No: 36/50

What will be the output of : infile.read(2)
निम्नलिखित कोड का आउटपुट क्या होगा? infile.read(2)

Questions No: 37/50

You do not have pay Python and you can view its source code too. it means Python is _______

Questions No: 38/50

Which one of the following is incorrect?
निम्नलिखित में से कौन सा गलत है?

Questions No: 39/50

Python Programs are typed in
Python प्रोग्राम टाइप किये जाते हैं

Questions No: 40/50

Hierarchy in a pseudo-code can be shown by:
सूड़ो-कोड में पदानुक्रम को द्वारा दिखाया जा सकता है|

Questions No: 41/50

What will be the output of the following Python code?

def foo():
    total += 1
    return total
total = 0
print(foo())

Questions No: 42/50

Identify the correct function call to read first 5 character of the file from the beginning
शुरुआत से फ़ाइल के पहले 5 अक्षर को पढ़ने के लिए सही फ़ंक्शन कॉल की पहचान करें

Questions No: 43/50

The program must be able to handle unexpected situation like wrong input or no input.

Questions No: 44/50

What does the following code print ?

if 2 + 5 == 8:
    print("TRUE")
else:
    print("FALSE")
print("TRUE")

Questions No: 45/50

What is the value of the following Python code?

>>>print(36 / 4)

Questions No: 46/50

How can assertions be disabled in Python?
पायथन में अभिकथनों को कैसे अक्षम किया जा सकता है?

Questions No: 47/50

What is the output of below program ?

def say(message, times =1):
    print(message * times)
say("Hello")
say("Word",5)

Questions No: 48/50

What will the following code output?

x=0
if x:
print("True")
else:
print("False")

Questions No: 49/50

How can you write data to a file in Python?
आप पायथन में किसी फ़ाइल में डेटा कैसे लिख सकते हैं?

Questions No: 50/50

What is the output of the following code? print(not False)
निम्नलिखित कोड का परिणाम क्या है? print(not False)