Functions
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following ?
import sys
sys.stdout.write('Welcome\n')
sys.stdout.write('All\n') os.getlogin() क्या लौटाता है?
What does os.getlogin() return ?
पिकल.लोड() फ़ंक्शन को न्यूनतम _____ संख्या में पैरामीटर की आवश्यकता होती है
The pickle.load() function requires minimum _____ number of parameters
पायथन में object की लंबाई ज्ञात करने के लिए किस अंतर्निहित फ़ंक्शन का उपयोग किया जाता है?
Which built-in function is used to find the length of a object in Python?
किसी फ़ंक्शन के बाहर परिभाषित वेरिएबल को क्या कहा जाता है?
What is a variable defined outside a function referred to as ?
रीडलाइन() विधि क्या लौटाती है?
What does readlines() method return ?
सभी अक्षरों को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
Which function is used to read all the characters?
बाइनरी प्रारूप में डेटा लिखने के लिए उपयोग किया जाने वाला एक फ़ंक्शन:
A function used for writing data in the binary format :
रवि ने ओपन() फ़ंक्शन का उपयोग करके पायथन में एक फ़ाइल खोली लेकिन मोड निर्दिष्ट करना भूल गया। फ़ाइल किस मोड में खुलेगी?
Ravi opened a file in python using open( ) function but forgot to specify the mode. In which mode the file will open ?
रिक्त स्थान को भरें।
Fill in the blank.
Import pickle
f=open(“data.dat”, „rb?)
d=_____________.load(f)
f.close() कथन 2 के लिए उत्तर चुनें.
Choose the answer for statement 2.
import ___________ # statement 1
rec = [ ] while True:
rn = int(input("Enter"))
nm = input("Enter")
temp = [rn, nm]
rec.append(temp)
ch = input("Enter choice (Y/N)")
if ch.upper == "N":
break
f = open("stud.dat", "____________") #statement 2
__________ .dump(rec, f) #statement 3
_______.close( ) # statement 4 निम्नलिखित में से कौन सा फ़ंक्शन दो तर्क लेता है?
Which of the following function takes two arguments ?
पायथन में कौन सा फ़ंक्शन फ़ाइल खोलता है?
Which function opens file in python ?
कौन सा फ़ंक्शन स्ट्रिंग्स लौटाता है?
Which function returns the strings ?
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code ?
f=open("demo.txt","w+")
f.write("Welcome to Python")
f.seek(5)
a=f.read(5) कौन सा फ़ंक्शन दो तर्क लेता है?
Which of the function takes two arguments ?
पायथन फ़ंक्शंस में तर्क और पैरामीटर के बीच क्या अंतर है?
What is the difference between arguments and parameters in Python functions?
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following ?
import numpy as np
print ( np.minimum([ 2, 3, 4 ], [ 1, 5, 2 ])) निम्नलिखित का आउटपुट क्या होगा?
What is the output of the following code?
import numpy as np
a = np.array([1, 2, 3, 5, 8 ])
b = np.array([0, 1, 5, 4, 2 ])
c = a + b
c = c*a
print (c[2]) स्यूडोकोड: तापमान 25 डिग्री होने पर क्या मुद्रित होता है?
Pseudocode: What is printed when the temperature is 25 degrees?
If temperature > 30,
print "Hot",
elif temperature > 20,
print "Warm",
else
"Cold" निम्नलिखित प्रोग्राम का आउटपुट क्या है?
What is the output of the following program?
print(chr(ord(chr(97)))) ________ फ़ंक्शन अपने तर्क को एक संशोधित आकार के साथ लौटाता है, जबकि ________ विधि सरणी को ही संशोधित करती है।
The ________ function returns its argument with a modified shape, whereas the ________ method modifies the array itself.
पायथन प्रोग्रामिंग में __फ़ंक्शन/विधि हैं।
There are __ Functions/Method in Python Programming.
उस फ़ंक्शन के लिए डिफ़ॉल्ट रिटर्न मान क्या है जो स्पष्ट रूप से कोई मान नहीं लौटाता है?
What is the default return value for a function that does not return any value explicitly
तर्क में दिखाई देते हैं और पैरामीटर में दिखाई देते हैं।
Arguments appear in and parameters appear in
पायथन प्रोग्रामिंग में __फ़ंक्शन/विधि हैं
There are __ Functions/Method in Python Programming
प्रीति पायथन फंक्शन्स की विशेषताओं को समझने की कोशिश कर रही है। उसे वह विशेषता समझ नहीं आ रही है जो काम को छोटे-छोटे हिस्सों में बाँट देती है। निम्नलिखित में से उसके लिए उपयुक्त शब्द चुनिए
Preeti is trying to understand the features of python functions. She is not understanding the feature that distributes the work in small parts. Select the appropriate term for her out of the following:
राघव पायथन में एक फ़ंक्शन लिखना चाहता है। लेकिन उसे समझ नहीं आ रहा कि शुरुआत कैसे करे! फ़ंक्शन शुरू करने के लिए इस्तेमाल होने वाले कीवर्ड में से चुनें
Raghav wants to write a function in python. But he doesn't know how to start with it! Select the keyword used to start a function out of the following
जब तर्क1 को तर्क2 से विभाजित किया जाता है तो कौन सा फ़ंक्शन भागफल और शेषफल लौटाता है?
Which function returns the quotient and the remainder when argument1 is divided by argument2
निम्नलिखित फलन का अध्ययन कीजिए
Study the following function
import math
abs(math.sqrt(36)) निम्नलिखित में से कौन सा फ़ंक्शन कॉल करने का सही तरीका है
Which one of the following is the right way to call a function
Python में user-defined function का कौन-सा हिस्सा नहीं है
Which is NOT a part of a user-defined function (UDF) in Python