CBSE · 083Class XII · 2023Section A1 mark
Question 17
30 March 2023 · Computer Science (083)
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.
Answer
(b) Both (A) and (R) are true and (R) is not the correct explanation for (A).
Explanation
Both statements are true. (A) states a requirement for using modules. (R) is a true syntactic rule but does not explain *why* we must import — so (R) is not the correct explanation for (A).