MCQ Answer

When a module is imported, its code is:

When a module is imported, its code is:

Module import होने पर उसका code ______।
Topic : Modules in Python

A. Ignored

B. Compiled only

C. Executed once

D. Executed every time




Correct Answer is :

C. Executed once



Explanation
During a normal import, Python executes a module's top-level code the first time it is imported in that process.

सामान्य import में module का top-level code पहली बार import होने पर execute होता है।
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad