Python
Questions No: 1/50

What will be the output of the following Python code?

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

Questions No: 2/50

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

Questions No: 3/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: 4/50

What will be the output of the following Python code?

x = ['ab', 'cd']  
for i in x:      
    x.append(i.upper())  
print(x)

Questions No: 5/50

When we open file in append mode the file pointer is at the ______ of the file.
जब हम अपेंड मोड में फाइल खोलते हैं तो फाइल पॉइंटर फाइल के _____ पर होता है।

Questions No: 6/50

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

Questions No: 7/50

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

Questions No: 8/50

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

Questions No: 9/50

What does a function return if there is no return statement?
यदि किसी फंक्शन में रिटर्न स्टेटमेंट नहीं है, तो वह फंक्शन क्या रिटर्न करेगा?

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

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

Questions No: 12/50

What will be the output?

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

Questions No: 13/50

What will be the output?

x = 10
def fun():
    global x
    x = 20
fun()
print(x)

Questions No: 14/50

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

Questions No: 15/50

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

Questions No: 16/50

What will be the output of the following Python code?

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

Questions No: 17/50

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

Questions No: 18/50

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

Questions No: 19/50

Which of the following mode argument is used in file to truncate ?
निम्नलिखित में से किन मोड आर्गुमेंट का उपयोग ट्रंकेट करने के लिए उपयोग किया जाता है?

Questions No: 20/50

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

Questions No: 21/50

what is 'f' in the following statement?

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

Questions No: 22/50

What will be the output of the following Python code?

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

Questions No: 23/50

Python is an example of which type of programming language?
पायथन किस प्रकार की प्रोग्रामिंग भाषा का उदाहरण है?

Questions No: 24/50

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

Questions No: 25/50

What is the output?

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

Questions No: 26/50

Which of these in not a core data type in python?
इनमें से कौन एक कोर डेटा प्रकार नहीं है?

Questions No: 27/50

in python which function is used to read CSV file
पायथन में CSV फ़ाइल को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

Questions No: 28/50

What will be the output after following statements?

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

Questions No: 29/50

What will the following code output?

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

Questions No: 30/50

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

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

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

Questions No: 33/50

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

Questions No: 34/50

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

Questions No: 35/50

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

Questions No: 36/50

What is the value of the following Python code?

>>>print(36 / 4)

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

Which of the following is not a valid identifier?
निम्न में से कौन सा वैध पहचानकर्ता नहीं है?

Questions No: 39/50

How many arguments a Python program can accept from the command line?
पायथन प्रोग्राम कमांड लाइन से कितने तर्क स्वीकार कर सकता है?

Questions No: 40/50

Which statement will return one line from a file (file object is f) ?
कौन सा स्टेटमेंट फ़ाइल (file object is 'f) से एक पंक्ति प्रस्तुत करेगा |

Questions No: 41/50

What does EOF stand for?
EOF का पूरा नाम क्या है?

Questions No: 42/50

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

Questions No: 43/50

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

Questions No: 44/50

Python supports the creation of anonymous functions at runtime, using a construct called
पायथन नामक एक कंस्ट्रक का उपयोग करते हुए रनटाइम पर अनाम कार्यो के निर्माण को सपोर्ट करता है

Questions No: 45/50

What will be the output of the following expression ?

x =4
print(x<<2)

Questions No: 46/50

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

Questions No: 47/50

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

Questions No: 48/50

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

Questions No: 49/50

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

Questions No: 50/50

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