Python
Questions No: 1/50

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

Questions No: 2/50

Python uses a/an _______ to convert source code
सोर्स कोड को परिवर्तित करने के लिए पायथन _______ का उपयोग करता है

Questions No: 3/50

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

Questions No: 4/50

Given a function that does not return any value, what value is shown when executed at the shell ?
एक फ़ंक्शन जो कोई मान नहीं लौटाता है ,शेल पर निष्पादित होने पर कौन सा मान दिखाया जाता है

Questions No: 5/50

What will be the output of the following Python code?

i = 1
while True:
    if i%7 == 0:
        break
    print(i)
    i += 1

Questions No: 6/50

What is the output of the following code?

print(True and False)

Questions No: 7/50

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

Questions No: 8/50

Which bitwise operator represents XOR?
कौन सा बिटवाइज़ ऑपरेटर XOR को दर्शाता है?

Questions No: 9/50

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

Questions No: 10/50

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

Questions No: 11/50

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

Questions No: 12/50

Which function reads all lines into a list from file?
कौन सा फंक्शन फाइल से सभी लाइनों को सूची में पढ़ता है?

Questions No: 13/50

Which of the following functions is a built-in function in pythonn
निम्न में से कौन सा फंक्शन पायथन में बिल्ट-इन फंक्शन है

Questions No: 14/50

What is the output of the following?

x=123
for i in x:
    print(i)

Questions No: 15/50

Which of the following is used to define a block of code in Python language ?
पायथन लैंग्वेज में कोड के ब्लॉक को परिभाषित करने के लिए निम्न में से किसका प्रयोग किया जाता है?

Questions No: 16/50

It refers to the ability of an application to run on different platforms with or without minimal changes.
यह किसी एप्लिकेशन की न्यूनतम परिवर्तनों के साथ या उसके बिना विभिन्न प्लेटफ़ॉर्म पर चलने की क्षमता को संदर्भित करता है

Questions No: 17/50

What will be the output of the following code?

f=open("demo.txt","r")
print(f.tell())

Questions No: 18/50

Which denotes file binary mode?
फ़ाइल बाइनरी मोड को कौन दर्शाता है?

Questions No: 19/50

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

Questions No: 20/50

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

Questions No: 21/50

What is the output of below program ?

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

Questions No: 22/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: 23/50

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

Questions No: 24/50

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

Questions No: 25/50

The function which reads one line from standards input and returns it as a string (removing the trailing newline)
वह फंक्शन जो स्टैण्डर्ड इनपुट से एक पंक्ति रीड करता है और इसे स्ट्रिंग के रूप में लौटाता है (ट्रेलिंग न्यूलाइन को हटाते हुए)

Questions No: 26/50

What will be the output of following?

Y=[2,5J,6]
Y.sort()

Questions No: 27/50

Which of the following statements about Python is true?
पाइथन के बारे में निम्नलिखित में से कौन सा कथन सत्य है?

Questions No: 28/50

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

Questions No: 29/50

What will be the output of the following pseudocode, where ^ represent XOR operation ?

Integer a, b, c
set b = 4, a = 3
c =a ^ b
Print c

Questions No: 30/50

Each line of a text file is terminated by a special character, called the ___
टेक्स्ट फाइल की प्रत्येक पंक्ति को एक विशेष कैरेक्टर द्वारा समाप्त किया जाता है, जिसे ____ कहा जाता है।

Questions No: 31/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: 32/50

What will be the output of the following Python code?

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

Questions No: 33/50

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

Questions No: 34/50

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

Questions No: 35/50

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

Questions No: 36/50

What will be the output?

def fun(a,b=5,c=10):
    print(a+b+c)
fun(2,c=20)

Questions No: 37/50

What is the output?

f = open("test.txt", "w")
f.write("Python")
print(f.tell())
f.close()

Questions No: 38/50

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

Questions No: 39/50

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

Questions No: 40/50

Which data type stores text in Python?
पाइथन में टेक्स्ट को स्टोर करने के लिए किस डेटा टाइप का उपयोग किया जाता है?

Questions No: 41/50

What happens if the file does not exist?

f = open("abc.txt", "r")

Questions No: 42/50

The data type whose representation is known are called
वह डेटा प्रकार जिसका प्रतिनिधित्व ज्ञात हो, कहलाते हैं

Questions No: 43/50

Which of the following statements is used to check if a file exists in Python?
निम्नलिखित में से किस फंक्शन का उपयोग यह जांचने के लिए किया जाता है कि कोई फ़ाइल पायथन में मौजूद है या नहीं?

Questions No: 44/50

Which of the following is an invalid mode?
निम्न में से कौन सा अमान्य मोड है?

Questions No: 45/50

Which symbol is used to write single line comment ?
सिंगल लाइन कमेंट लिखने के लिए किस चिन्ह का प्रयोग किया जाता है ?

Questions No: 46/50

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

Questions No: 47/50

Which argument type allows specifying parameter names during function call?
किस प्रकार के तर्क से फंक्शन कॉल के दौरान पैरामीटर नाम निर्दिष्ट किए जा सकते हैं?

Questions No: 48/50

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

Questions No: 49/50

Which of the following is not valid Python identifiers?
निम्नलिखित में से कौन वैध पायथन आइडेंटिफायर नहीं है?

Questions No: 50/50

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