Advertisements
Advertisements
प्रश्न
Assertion (A): To use a function from a particular module, we need to import the module.
Reason (R): Import statement can be written anywhere in the program, before using a function from that module.
विकल्प
Both (A) and (R) are true and (R) is the correct explanation for (A).
Both (A) and (R) are true and (R) is not the correct explanation for (A).
(A) is true, but (R) is false.
(A) is false, but (R) is true.
MCQ
अभिकथन और तर्क
Advertisements
उत्तर
Both (A) and (R) are true and (R) is not the correct explanation for (A).
Explanation:
A function must be imported before it may be used. The import statement can be placed wherever you like before calling the function.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
