Python
Questions No: 1/50

Which function is used to read all the characters from file?
फ़ाइल से सभी वर्णों को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

Questions No: 2/50

______ are additional readable information to clarify the statement in python.
______ पायथन में कथन को स्पष्ट करने के लिए अतिरिक्त पठनीय जानकारी है।

Questions No: 3/50

What will be the output of the following Python code?

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

Questions No: 4/50

What will be the output of the following Python code?

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

Questions No: 5/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: 6/50

What does the following code print ?

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

Questions No: 7/50

What will the following code output?

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

Questions No: 8/50

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

Questions No: 9/50

Give the output of: print(2^5)
इसका आउटपुट क्या होगा : print(2^5)

Questions No: 10/50

Debugging is the process of fixing a______in the software.
डिबगिंग सॉफ्टवेयर में ______ को ठीक करने की प्रक्रिया है।

Questions No: 11/50

Which of the following words is not a keyword of python language?
निम्नलिखित में से कौन सा शब्द नहीं पायथन लैंग्वेज का कीवर्ड है?

Questions No: 12/50

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

Questions No: 13/50

How many keywords are there in Python 3.0 version?
Python 3.0 संस्करण में कितने कीवर्ड हैं?

Questions No: 14/50

In what language is the Python programming language written?
पायथॉन प्रोग्रामिंग भाषा किस भाषा में लिखी गई है?

Questions No: 15/50

What is the default mode for files in Python?
पायथन में फ़ाइलों के लिए डिफ़ॉल्ट मोड क्या है?

Questions No: 16/50

What will be the output of the following expression ?

x =4
print(x<<2)

Questions No: 17/50

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

Questions No: 18/50

What is the output of the following code ?

def disp(*arg):
    for i in arg:
        print(i)
disp(name="Rajat", age="20")

Questions No: 19/50

In order to store values in terms of key and value we use what core data type.
की और वैल्यू के संदर्भ में वैल्यूज को स्टोर करने के लिए हम किस कोर डेटा प्रकार का यूज़ करते हैं।

Questions No: 20/50

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

Questions No: 21/50

Which of the following is not a keyword ?
निम्नलिखित में से कौन सा कीवर्ड नहीं है?

Questions No: 22/50

What will be the result of the expression : print(10 or 0) ?
print(10 or 0 ) : का परिणाम क्या होगा?

Questions No: 23/50

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

Questions No: 24/50

What will be the output of the following Python code?

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

Questions No: 25/50

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

Questions No: 26/50

What will be the result of the expression: 15 and 10?
व्यंजक 15 और 10 का परिणाम क्या होगा?

Questions No: 27/50

Which of the following will run without errors?
निम्नलिखित में से कौन सी त्रुटियों के बिना चलेगा?

Questions No: 28/50

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

Questions No: 29/50

what will the output of : print(5&3)
इसका आउटपुट क्या होगा: print(5&3)

Questions No: 30/50

Which mode creates a new file if the file does not exist?
यदि फ़ाइल मौजूद नहीं है तो कौन सा मोड एक नई फाइल बनाता है?

Questions No: 31/50

Which of the following is not a correct mode to open a file ?
फ़ाइल खोलने के लिए निम्न में से कौन सा सही मोड नहीं है?

Questions No: 32/50

What will be the output of the following Python code ?

def display(b,n):
    while n>0:
        print(b,end='')
        n=n-1
display('z',3)

Questions No: 33/50

Which of the following is the correct way to write multiple lines to a file in Python?
पायथन में किसी फ़ाइल में एक से अधिक पंक्तियाँ लिखने का सही तरीका निम्नलिखित में से कौन सा है?

Questions No: 34/50

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

Questions No: 35/50

Which method is used to read the entire content of a file as a string in Python?
पायथन में फ़ाइल के पूरे डाटा को स्ट्रिंग के रूप में पढ़ने के लिए किस फंक्शन का उपयोग किया जाता है?

Questions No: 36/50

What will be the output of the following Python code?

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

Questions No: 37/50

Which can not be a variable in python
जो कि Python में वेरिएबल नहीं हो सकता

Questions No: 38/50

Which of the following data types is not supported in python?
पायथन में निम्नलिखित में से कौन सा डेटा टाइप सपोर्ट नहीं करता है।

Questions No: 39/50

How can you close a file in Python after processing?
प्रसंस्करण के बाद आप पायथन में किसी फ़ाइल को कैसे बंद कर सकते हैं?

Questions No: 40/50

The tiny individual unit in python program is known as
पायथन प्रोग्राम में छोटी व्यक्तिगत इकाई को कहा जाता है

Questions No: 41/50

What is the output of the following code?

count=0
while count<3:
print(count,end=" ")
count+=1

Questions No: 42/50

What is full form of CSV?
सीएसवी का फुल फॉर्म क्या है?

Questions No: 43/50

What will be the output after following statements?

x = 2
if x < 5:
     print(x)
else:
    pass

Questions No: 44/50

Python code can run on a variety of platforms, it means Python is a _____ language.
पायथन कोड विभिन्न प्लेटफार्मों पर चल सकता है, इसका मतलब है कि पायथन एक _____ भाषा है।

Questions No: 45/50

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

Questions No: 46/50

What will be the output of the following Python code?

for i in range(5):
    if i == 5:
        break
    else:
        print(i)
else:
    print("Here")

Questions No: 47/50

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

Questions No: 48/50

What is the output of the following code?

def s(n1):
    print(n1)
    n1=n1+2
n2=4
s(n2)
print(n2)

Questions No: 49/50

The syntax of seek() is: file_object.seek(offset [, reference_point]) What does the reference_point indicate?
seek () का सिंटैक्स है: file_object.seek(offset [, Reference_point]) रेफरेंस_पॉइंट क्या दर्शाता है?

Questions No: 50/50

What is the return type of function id?
फ़ंक्शन आईडी का रिटर्न प्रकार क्या है?