Python
Questions No: 1/50

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

Questions No: 2/50

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

Questions No: 3/50

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

Questions No: 4/50

What is the value of the following Python code?

>>>print(36 / 4)

Questions No: 5/50

which is a correct way to open a file in python
पायथन में फ़ाइल खोलने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

Questions No: 6/50

What is the output of the following code?

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

Questions No: 7/50

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

Questions No: 8/50

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

Questions No: 9/50

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

Questions No: 10/50

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

Questions No: 11/50

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

Questions No: 12/50

What is the return type of following function ?

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

Questions No: 13/50

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

Questions No: 14/50

Which statement will move file pointer 10 bytes backward from current position.
कौन सा स्टेटमेंट फाइल पॉइंटर को वर्तमान स्थिति से 10 बाइट पीछे ले जाएगा ।

Questions No: 15/50

What is the use of seek() method in files?
फाइलों में seek() फंक्शन का क्या उपयोग है?

Questions No: 16/50

How many keywords are there in python 3.7?
पायथन 3.7 में कितने कीवर्ड होते है?

Questions No: 17/50

What is the Full form of EOL?
EOL का फुल फॉर्म क्या है?

Questions No: 18/50

Raw data assigned to a variable is called as
एक वेरिएबल को असाइन किए गए रॉ डेटा को कहा जाता है

Questions No: 19/50

In which format Binary file contains information?
बाइनरी फ़ाइल में सूचना किस प्रारूप में होती है?

Questions No: 20/50

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

Questions No: 21/50

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

Questions No: 22/50

What will be the output of the following expression ?

x =4
print(x<<2)

Questions No: 23/50

What will be the output of the following Python code?

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

Questions No: 24/50

What is the output of the following code?

a=set('abc')
b=set('cdef')
print(a&b)

Questions No: 25/50

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

Questions No: 26/50

Work of tell() method in file processing is
फाइल प्रोसेसिंग में tell() फंक्शन का कार्य है

Questions No: 27/50

Which one of the following is not a python's predefined data type?
निम्नलिखित में से कौन सा एक पायथन का पूर्वनिर्धारित डेटा टाइप नहीं है

Questions No: 28/50

Which of the following error is returned by the given code ?

f = open("test.txt","w")
f.write(345)

Questions No: 29/50

What is the output of below program ?

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

Questions No: 30/50

What will be the output of the following Python code?

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

Questions No: 31/50

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

Questions No: 32/50

Which of the following error is returned when we try to open a file in write mode which does not exist?
जब हम किसी ऐसी फ़ाइल को राइट मोड में खोलने की प्रयास करते हैं जो मौजूद नहीं है तो निम्न में से कौन सी एरर दिखाई देती है

Questions No: 33/50

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

Questions No: 34/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: 35/50

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

Questions No: 36/50

Which of the following are valid escape sequences in Python ?
निम्नलिखित में से कौन से पायथन में वैध एस्केप सिक्वेन्स हैं?

Questions No: 37/50

which of the following will read entire content of file (file object 'f')?
निम्नलिखित में से कौन फ़ाइल (file object 'f') की संपूर्ण सामग्री को पढ़ेगा ?

Questions No: 38/50

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

Questions No: 39/50

What will the following code output? print(2 << 2)
निम्नलिखित कोड आउटपुट क्या होगा? print(2 << 2)

Questions No: 40/50

What is mean by 'rb' mode when working with binary file in python
पायथन में बाइनरी फ़ाइल के साथ काम करते समय 'rb' मोड का क्या अर्थ है?

Questions No: 41/50

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

Questions No: 42/50

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

Questions No: 43/50

What value does the following expression evaluate to ?

x = 5
while x < 10:
 print(x, end='')

Questions No: 44/50

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

Questions No: 45/50

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

Questions No: 46/50

What will be the output?

f = open("test.txt", "w")
f.write("Python")
f.seek(0)
print(f.read())

Questions No: 47/50

What will be written to the file?

f = open("test.txt", "w")
f.write("ABC")
f.write("DEF")
f.close()

Questions No: 48/50

Strings in Python are enclosed within ____.
पायथन में स्ट्रिंग्स को ____ के भीतर रखा जाता है।

Questions No: 49/50

Which is Special type of literal in Python
जो पाइथन में विशेष प्रकार का शाब्दिक है

Questions No: 50/50

Which of the following functions is used to open a file in Python?
पायथन में फ़ाइल खोलने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?