Functions
टेक्स्ट प्रदर्शित करने के लिए किस पायथन फ़ंक्शन का उपयोग किया जाता है?
Which Python function is used to display text?
निम्नलिखित प्रोग्राम का आउटपुट क्या है:
What is the output of the following program :
def myfunc(a):
a = a + 2
a = a * 2
return a
print myfunc(2) निम्नलिखित कोड स्निपेट का आउटपुट क्या है:
What is the output of the following code snippet:
print(type("Hello, World!")) निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
from math import factorial
print(math.factorial(5)) यदि a 4 है और b 11 है तो,
if a is 4 and b is 11 then,
print(a//b) नीचे दिए गए कोड स्निपेट में var का डेटाटाइप क्या होगा?
What will be the datatype of the var in the below code snippet?
var = 10
print(type(var))
var = "Hello"
print(type(var)) निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
for i in range(int(2.0)):
print(i) निम्नलिखित कोड निष्पादित होने पर कौन सा फ़ंक्शन कॉल किया जाता है?
Which function is called when the following code is executed?
f = foo()
format(f) कौन सा फ़ंक्शन + ऑपरेटर को ओवरलोड करता है?
Which function overloads the + operator?
निम्नलिखित का आउटपुट क्या है?
What is the output of the following?
for i in '':
print (i) निम्नलिखित का आउटपुट क्या है?
What is the output of the following?
What is the output of the following?
x = ['ab', 'cd']
print(len(map(list, x))) निम्नलिखित पायथन कोड का आउटपुट क्या है?
What is the output of the following Python code?
print(int()) निम्नलिखित कोड का आउटपुट है
Output of the following code is
print(40,50,60,sep="!",end=",") कोड पर विचार करें, p का मान क्या है?
Consider the code, What is the value of p?
p=q=r=30 पायथन में वेरिएबल डिक्लेरेशन का सिंटैक्स क्या है?
What is the syntax of variable declaration in Python?
फ़ाइल प्रबंधन में, इस शब्द का क्या अर्थ है
In file handling, what does this terms means “r, a”?
ओम पायथन में शब्दकोश की अवधारणा सीख रहा है। उन्होंने तत्वों के एक समूह से संबंधित शब्दकोश के बारे में कुछ पढ़ा। लेकिन वह यह शब्द भूल गया कि तत्वों का समुच्चय किस प्रकार का है, नीचे दिए गए विकल्पों से सुझाव दीजिए:
Om is learning the concept of a dictionary in python. He read something about a dictionary related to a set of elements. But he forgot the term which type of set of elements, suggest from the below-given options:
पायथन में __init__ विधि क्या करती है?
What does the __init__ method do in Python?
इसका आउटपुट क्या होगा:
What will be the output of :
t=(4,5,6)
del t[1]
print(t) निम्नलिखित में से कौन सा कथन आउटपुट (4,5) प्रिंट करता है?
Which of the following statements prints the output (4,5)?
निम्नलिखित कोड का आउटपुट क्या होगा:
What will be the output of the following code:
t=(4,5,6,7,8,9,3,2,1)
print(t[5:-1]) पायथन में रेंज फ़ंक्शन का उद्देश्य क्या है?
What is the purpose of the range function in Python?
निम्नलिखित में से कौन सा वैध फ़ंक्शन नाम है?
Which of the following is a valid function name?
एक ऑब्जेक्ट बनाने के लिए आपको पहले बनाना होगा
To create an object you must first create
उपयोगकर्ता का इनपुट प्राप्त करने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?
Which of the following functions is used to get the user's input?
संरचनात्मक प्रोग्रामिंग में टॉप-डाउन दृष्टिकोण का पालन किया जाता है।
Top-down approach is followed in structural programming.
JSON फ़ाइल को सेव करने के लिए किस एक्सटेंशन का उपयोग किया जाता है?
What extension is used to save a JSON file ?
अनधिकृत उपयोगकर्ताओं से डेटा को सुरक्षित रखने के लिए उसकी कोडिंग को ________ कहा जाता है।
The coding of data to keep it safe from unauthorized users is called ________.
लैम्ब्डा फ़ंक्शन पायथन में def का उपयोग करके परिभाषित नियमित फ़ंक्शन से कैसे भिन्न है?
How is a lambda function different from a regular function defined using def in Python?
डिफ़ॉल्ट तर्क के बारे में निम्नलिखित में से कौन सा सत्य है
Which of the following is true about the default argument
फ़ंक्शन हेडर में निर्दिष्ट डिफ़ॉल्ट मान पैरामीटर फ़ंक्शन कॉलिंग स्टेटमेंट में वैकल्पिक हो जाता है।
The default valued parameter specified in the function header becomes optional in the function calling statement.
अनुक्रम तर्क का उपयोग __________ करते समय नहीं किया जाएगा।
The sequence logic will not be used while __________.
सबसे खराब स्थिति में, त्वरित प्रकार की समय जटिलता का क्रम है:
In worst case, the order of time complexity of Quick sort is :
सभी निर्देश एक के बाद एक निष्पादित होते हैं।
All instructions are executed one after other.
टूल ________ का यूज़ प्रोग्राम डिजाइन के लिए किया जाता है।
Tool ________ is used for program design.
वेब अनुप्रयोगों के निर्माण के लिए निम्नलिखित में से कौन से फ्रेमवर्क पायथन में लोकप्रिय विकल्प हैं?
Which of the following frameworks are popular choices for building web applications in Python?
आप संख्याओं नामक सूची के दूसरे तत्व तक कैसे पहुँचते हैं?
How do you access the second element of a list named numbers?
________ मोड फ़ाइल के अंत में मौजूदा फ़ाइल में डेटा जोड़ने की अनुमति देता है।
The ________ mode allows adding data into the existing file at the end of the file.
आप myList नामक सूची के अंतिम तत्व तक कैसे पहुँचते हैं?
How do you access the last element of a list named myList?
निम्नलिखित प्रोग्राम का आउटपुट क्या है?
What is the value of the following Python code ?
>>>print(36 / 4) निम्नलिखित में से कौन सा एक अमान्य चर है?
Which of the following is an invalid variable ?
जब आप जिस फ़ाइल को खोलने का प्रयास करते हैं वह मौजूद नहीं होती है तो पायथन द्वारा कौन सा अपवाद उठाया जाता है?
Which exception is raised by Python when a file you try to open does not exist?
निम्नलिखित में से कौन सा डेटा प्रकार पायथन में समर्थित नहीं है?
Which of the following data types is not supported in python ?
निम्नलिखित में से कौन सा स्केलर डेटा प्रकार है?
Which of the following is a Scalar Data type ?
>>>फ्लोट(‟12.6‟) का आउटपुट क्या है
What is the output of >>>float(?12.6?)
निम्नलिखित में से कौन सा वैध पहचानकर्ता नहीं है?
Which of the following is not a valid identifier?
पहचानकर्ता का अमान्य नाम कौन सा है?
Which is invalid name of identifier?
पढ़ने और लिखने के लिए पायथन में फ़ाइल खोलने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?
Which of the following is used to open a file in Python for reading and writing?