Python
Questions No: 1/50

A syntax error in Python is detected during:
Python में syntax error कब detect होता है?

Questions No: 2/50

What will be the output of the following Python code?

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

Questions No: 3/50

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

Questions No: 4/50

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

Questions No: 5/50

Which file mode creates a new file but raises an error if it exists?
File mode में यदि file मौजूद नहीं है लेकिन पढ़ने से पहले create करनी है, तो कौन-सा mode उपयोग होगा?

Questions No: 6/50

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

Questions No: 7/50

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

Questions No: 8/50

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

Questions No: 9/50

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

Questions No: 10/50

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

Questions No: 11/50

Which loop condition is used in the algorithm to find the GCD of two numbers using Euclid's method?
Euclid's method से GCD निकालने वाले algorithm में कौन-सी loop condition उपयोग होती है?

Questions No: 12/50

What is the value of the following Python code?

>>>print(36 / 4)

Questions No: 13/50

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

Questions No: 14/50

What will be the output?

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

Questions No: 15/50

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

Questions No: 16/50

What will be printed?

x = 5
def f():
    global x
    x = 10
f()
print(x)

Questions No: 17/50

To start Python from the command prompt, use the command
कमांड प्रॉम्प्ट से पायथन शुरू करने के लिए, कमांड का उपयोग करें

Questions No: 18/50

What is the output?

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

Questions No: 19/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: 20/50

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

Questions No: 21/50

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

Questions No: 22/50

What is the output of the following code ?

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

Questions No: 23/50

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

Questions No: 24/50

What is the return type of following function ?

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

Questions No: 25/50

Which keyword allows modification of a global variable inside a function?
Function के अंदर global variable को modify करने के लिए कौन-सा keyword उपयोग होता है?

Questions No: 26/50

What is the output of following?

f = open("test.txt", "r")
f.seek(0)
print(f.tell())

Questions No: 27/50

Which of the following is incorrect regarding variables in Python?
पायथन में वेरिएबल्स के संबंध में निम्नलिखित में से कौन सा गलत है?

Questions No: 28/50

What is the output of following?

for i in range(5):
    if i == 3:
        continue
    print(i, end=" ")

Questions No: 29/50

Is Python case sensitive when dealing with identifiers?
क्या पहचानकर्ताओं के साथ व्यवहार करते समय पायथन केस सेंसिटिव है?

Questions No: 30/50

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

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

Questions No: 31/50

What will be the output of the following Python code?

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

Questions No: 32/50

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

Questions No: 33/50

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

Questions No: 34/50

What will be the output?

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

Questions No: 35/50

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

Questions No: 36/50

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

Questions No: 37/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: 38/50

What is the output of following?
निम्न code का output क्या होगा?

Questions No: 39/50

Which is a valid Constant in python
जो कि पायथन में एक मान्य स्थिरांक है

Questions No: 40/50

What will be the output?

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

Questions No: 41/50

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

Questions No: 42/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: 43/50

Which of the following is not a logical operator?
निम्नलिखित में से कौन एक लॉजिकल ऑपरेटर नहीं है?

Questions No: 44/50

What is the maximum possible length of an identifier for better redability? -
एक आइडेंटिफायर की अधिकतम संभव लंबाई क्या है?

Questions No: 45/50

Which of these are keyword?
इनमें से कौन से कीवर्ड हैं ?

Questions No: 46/50

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

Questions No: 47/50

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

Questions No: 48/50

What is the output of the following code?

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

Questions No: 49/50

What is the output of below program ?

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

Questions No: 50/50

What will be the output after following statements?

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