Functions
नीचे दिया गया ऑब्जेक्ट किस डेटा प्रकार का है?
What data type is the object below ?
L=[1, 23, 'hello', 1] जब हम सूची ("hello ") निष्पादित करते हैं तो आउटपुट क्या होता है?
What is the output when we execute list("hello") ?
निम्नलिखित ऑब्जेक्ट का डेटा प्रकार क्या है?
What is the data type of following object ?
A = [5,?abc?,3.2,6] निम्नलिखित कोड का आउटपुट क्या है?
What is the output of following code ?
A=[[1,2,3], [4,5,6], [7,8,9]]
print(A[1][:]) निम्नलिखित कोड का परिणाम क्या है ?
What will be the output for the following code ?
a = list(range(10))
del a[::2] for i in a:
i+=1
print(a) निम्नलिखित छद्म कोड का आउटपुट क्या होगा, जहां ʌ XOR ऑपरेशन का प्रतिनिधित्व करता है?
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 निम्नलिखित फ़ंक्शन का रिटर्न प्रकार क्या है?
What is the return type of following function ?
def func1():
return "mnp",22 निम्नलिखित में से कौन सा फ़ंक्शन पायथन में एक अंतर्निहित फ़ंक्शन है?
Which of the following functions is a built-in function in python ?
Math.fact(6) द्वारा लौटाया गया मान क्या है?
What is the value returned by math.fact(6)?
निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा?
What will be the output of the following Python function ?
Import math
abs (math.sqrt (961)) print(math.factorial(4.5)) का आउटपुट क्या होगा?
What will be the output of print(math.factorial(4.5))?
रीडलाइन्स () मेथड रिटर्न करती है __________
The readlines() method returns ____________
ओपन () फ़ंक्शन एक फ़ाइल ऑब्जेक्ट लौटाता है जिसे ______________ कहा जाता है
open( ) function returns a file object called ______________
मानक इनपुट से पाठ की एक पंक्ति को पढ़ने के लिए कौन से दो अंतर्निर्मित कार्य हैं, जो डिफ़ॉल्ट रूप से कीबोर्ड से आते हैं?
Which are the two built-in functions to read a line of text from standard input, which by default comes from the keyboard?
निम्नलिखित कोड से कितने नंबर प्रिंट होंगे?
How many numbers will be printed by the following code ?
def fun(a, b):
for x in range(a, b+1):
if x%3==0:
print(x, end= " ")
fun(100, 120) निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
def disp(*arg):
for i in arg:
print(i)
disp("Rajat", "20") निम्न कोड स्निपेट क्या करता है?
What does the following code snippet do?
x = 5
print(type(x)) print() फ़ंक्शन में sep आर्गुमेंट क्या करता है?
What does the sep argument in the print() function do?
असेंबलर का प्राथमिक कार्य क्या है?
What is the primary function of an assembler?
पायथन में input() फ़ंक्शन का उद्देश्य क्या है?
What is the purpose of the input() function in Python?
निम्नलिखित छद्म कोड क्या करता है: READ num1, num2 SET multi to num1*num2 WRITE multi?
What does the following pseudocode do: READ num1, num2 SET multi to num1*num2 WRITE multi?
निम्नलिखित में से कौन सा नंबर निम्नलिखित कोड द्वारा कभी भी उत्पन्न नहीं किया जा सकता है:
Which of the following number can never be generated by the following code :
random.randrange(0, 50) निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा, यह मानते हुए कि यादृच्छिक मॉड्यूल पहले ही आयात किया जा चुका है?
What will be the output of the following Python function, assuming that the random module has already been imported?
random.uniform(3,4) निम्नलिखित पायथन कोड का आउटपुट या तो 1 या 2 है।
The output of the following Python code is either 1 or 2.
import random
random.randint(1,2) निम्नलिखित कोड से कितने नंबर प्रिंट होंगे?
How many numbers will be printed by the following code ?
def fun(a, b):
for x in range(a, b + 1):
if x % 3 == 0:
print(x, end=" ")
fun(100, 120) किसी फ़ंक्शन के प्रोटोटाइप का अर्थ है
Prototype of a function means
निम्नलिखित प्रोग्राम का आउटपुट क्या है?
What will be the output of the following Python program ?
def addItem(listParam):
listParam += [1]
mylist = [1, 2, 3, 4]
addItem(mylist)
print(len(mylist)) Python में किसी फ़ंक्शन को कैसे घोषित किया जाता है?
How is a function declared in Python ?
आउटपुट क्या है?
What is the output ?
def calc(x)
r=2*x**2
return r
print(calc(5)) निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What is the output of the following code ?
def fun(a, b=6):
a=a+b
print(a)
fun(5, 4) निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What is the output of the following code ?
def disp(*arg):
for i in arg:
print(i)
disp(name="Rajat", age="20" प्रोग्रामर की आवश्यकता के अनुसार किसी कार्य को प्राप्त करने के लिए परिभाषित फ़ंक्शन को __________ कहा जाता है।
Function defined to achieve some task as per the programmer?s requirement is called a __________.
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following ?
def iq(a, b):
if(a==0):
return b
else:
return iq(a-1, a+b)
print(iq(3, 6)) किसी फ़ंक्शन को देखते हुए जो कोई मान नहीं लौटाता है, शेल पर निष्पादित होने पर कौन सा मान दिखाया जाता है?
Given a function that does not return any value, what value is shown when executed at the shell ?
निम्नलिखित में से कौन सा कथन अंतिम रूप से निष्पादित होगा?
Which of the following statement will execute in last ?
def s(n1) : #Statement 1
print(n1) #Statement 2
n2=4 #Statement 3
s(n2) #Statement 4 निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
x = 50
def func(x) :
print(' x is ' , x )
x = 2
print( ' Changed local x to ' , x )
func( x )
print( ' x is now ' , x ) निम्नलिखित में से कौन सा किसी फ़ंक्शन को कॉल करने का सही तरीका है?
Which one of the following is the correct way of calling a function ?
यदि किसी फ़ंक्शन में रिटर्न स्टेटमेंट नहीं है, तो निम्न में से कौन सा फ़ंक्शन रिटर्न करता है?
If a function does not have a return statement, which of the following does the function return ?
प्रोग्राम में फ़ंक्शन नाम के बाद __________ लिखकर फ़ंक्शन को कॉल किया जा सकता है।
The function can be called in the program by writing function name followed by __________.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
def say(message, times = 1 ) :
print(message * times )
say( 'Hello ')
say( ' World ' *5) निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
def sayHello() :
print( " Hello World ! " )
sayHello()
sayHello() पायथन में निम्नलिखित में से किस फ़ंक्शन का उपयोग होता है?
Which of the following is the use of function in python ?
सही फ़ंक्शन हेडर को पहचानें.
Identify the correct function header.
Function के लिए कौन सा कीवर्ड प्रयोग किया जाता है?
Which keyword is used for function ?
पुनरावर्ती कार्य __________ है।
Recursive function is __________.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
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) पायथन __________ नामक निर्माण का उपयोग करके, रनटाइम पर अज्ञात कार्यों के निर्माण का समर्थन करता है।
Python supports the creation of anonymous functions at runtime, using a construct called __________.
fun1() की सही फ़ंक्शन घोषणा चुनें ताकि हम निम्नलिखित दो फ़ंक्शन कॉल को सफलतापूर्वक निष्पादित कर सकें।
Choose the correct function declaration of fun1() so that we can execute the following two function calls successfully.
fun1(25, 75, 55)
fun1(10, 20) निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
def power(x, y=2) :
r=1
for i in range(y) :
r=r*x
return r
print (power(3))
Print (power(3, 3))