Python
Questions No: 1/50

Which of the following is not a relational opeartor in Python?
निम्नलिखित में से कौन पायथन में एक रिलेशनल ऑपरेटर नहीं है?

Questions No: 2/50

What will the following code output?

a=‘INFOMAX’ 
a=10
print(type(a))

Questions No: 3/50

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

Questions No: 4/50

Which statement will open file data.txt in append mode?
कौन सा स्टेटमेंट data.txt फाइल को एपेंड मोड में खोलेगा?

Questions No: 5/50

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

Questions No: 6/50

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

Questions No: 7/50

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

Questions No: 8/50

What does readlines() method return ?
रीडलाइन () मेथड क्या रिटर्न करता है?

Questions No: 9/50

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

Questions No: 10/50

What will be the output of the following Python code?

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

Questions No: 11/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: 12/50

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

Questions No: 13/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: 14/50

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

Questions No: 15/50

What is the output of the following code ?

def fun(a, b=6):
    a=a+b
    print(a)
fun(5, 4)

Questions No: 16/50

What value does the following expression evaluate to ?

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

Questions No: 17/50

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

Questions No: 18/50

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

Questions No: 19/50

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

Questions No: 20/50

____is a string literal denoted by triple quotes for providing the specifications of certain program elements.
____एक स्ट्रिंग अक्षर है जिसे कुछ प्रोग्राम एलिमेन्टो के स्पेशिफिकेशन को प्रोवाइड करने के लिए ट्रिपल कोट्स द्वारा दर्शाया जाता है।

Questions No: 21/50

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

Questions No: 22/50

Python is ________ Programming Language
पायथन एक _____ प्रोग्रामिंग है

Questions No: 23/50

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

Questions No: 24/50

Which can contain multiple lines of text.
जिसमें टेक्स्ट की कई पंक्तियाँ हो सकती हैं।

Questions No: 25/50

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

Questions No: 26/50

What is the output of the following program:

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

Questions No: 27/50

Which of the following mode will refer to binary data?
निम्न में से कौन सा मोड बाइनरी डेटा को संदर्भित करेगा?

Questions No: 28/50

The contents inside the "for loop" are separated by?
लूप के अंदर की सामग्री को _____ द्वारा अलग किया जाती है?

Questions No: 29/50

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

Questions No: 30/50

Can we write if / else into one line in python?
क्या हम पाइथन में एक लाइन में if / else लिख सकते हैं?

Questions No: 31/50

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

Questions No: 32/50

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

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

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

What will the following code output?

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

Questions No: 35/50

What will be the output after following statements?

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

Questions No: 36/50

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

Questions No: 37/50

What will be the output of the following Python code?

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

Questions No: 38/50

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

Questions No: 39/50

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

Questions No: 40/50

What is the output of below program ?

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

Questions No: 41/50

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

Questions No: 42/50

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

Questions No: 43/50

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

Questions No: 44/50

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

Questions No: 45/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: 46/50

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

Questions No: 47/50

In which language is Python written?
पायथन किस भाषा में लिखा गया है?

Questions No: 48/50

How is a code block indicated in Python?
पायथन में कोड ब्लॉक को कैसे दर्शाया जाता है?

Questions No: 49/50

What is the output of the following code?

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

Questions No: 50/50

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