page-banner
Chapter-6 (Part-2) Python Function
Q16.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?
print(sum(1, 2, 3))
A. 1
B. 6
C. 3
D. Error in code
View Answer
Q17.
एक स्ट्रिंग x = “hello” दिया गया है x.count('l') का आउटपुट क्या है

Given a string x = “hello” What is the output of x.count(‘l’)
A. 1
B. 2
D. None of these
View Answer
Q18.
func1() की सही फ़ंक्शन घोषणा चुनें ताकि हम निम्नलिखित दो फ़ंक्शन कॉल को सफलतापूर्वक निष्पादित कर सकें।

Choose the correct function declaration of func1() so that we can execute the following two function calls successfully. fun1(25, 75, 55) fun1(10, 20)
A. def fun1(**kwargs)
B. def fun1(args*)
C. No, it is not possible in Python
D. def fun1(*data)
View Answer
Q19.
निम्नलिखित पायथन कोड का आउटपुट क्या है?

What is the output of the following Python code?
from math import *
a = 2.19
b = 3.999999
c = -3.30
print(int(a), floor(b), ceil(c), fabs(c))
A. 2 3 -3 3.3
B. 3 4 -3 3
C. 2 3 -3 3
D. 2 3 -3 -3.3
View Answer
Q20.
किसी मॉड्यूल को दूसरे मॉड्यूल में उपयोग करने के लिए, आपको इसे ………… स्टेटमेंट का उपयोग करके इम्पोर्ट करना होगा।

To use a module in another module, you must import it using an …………. Statement
A. import
B. include
C. both a and b
D. None of these
View Answer

Create Account