answersLogoWhite

0


Best Answer

When a module is called, the computer jumps to that module and executes the statement in the module's body. Then, when the end of the module is reached, the computer jumps back to the part of the program that called the module, and the program resumes execution at that point.
End

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

You can execute a python module directly. In addition, when you are executing a module that import other modules (that import other modules...), all the modules will executed.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When a module is executing what happens when the end of the module is reached?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Simple c program for mergesort?

#include #include #define MAX_ARY 10 void merge_sort(int x[], int end, int start); int main(void) { int ary[MAX_ARY]; int j = 0; printf("\n\nEnter the elements to be sorted: \n"); for(j=0;j scanf("%d",&ary[j]); /* array before mergesort */ printf("Before :"); for(j = 0; j < MAX_ARY; j++) printf(" %d", ary[j]); printf("\n"); merge_sort(ary, 0, MAX_ARY - 1); /* array after mergesort */ printf("After Merge Sort :"); for(j = 0; j < MAX_ARY; j++) printf(" %d", ary[j]); printf("\n"); getch(); } /* Method to implement Merge Sort*/ void merge_sort(int x[], int end, int start) { int j = 0; const int size = start - end + 1; int mid = 0; int mrg1 = 0; int mrg2 = 0; int executing[MAX_ARY]; if(end == start) return; mid = (end + start) / 2; merge_sort(x, end, mid); merge_sort(x, mid + 1, start); for(j = 0; j < size; j++) executing[j] = x[end + j]; mrg1 = 0; mrg2 = mid - end + 1; for(j = 0; j < size; j++) { if(mrg2 <= start - end) if(mrg1 <= mid - end) if(executing[mrg1] > executing[mrg2]) x[j + end] = executing[mrg2++]; else x[j + end] = executing[mrg1++]; else x[j + end] = executing[mrg2++]; else x[j + end] = executing[mrg1++]; } } ;j++)>


Describe the differences between local and module-level variables?

local Variable A Local variable is a variable whose scope is limited to the Block of the Subroutine defining it. Private Sub Command1_Click Dim a as integer End Sub Module Level Variable A Module Level variable is a variable whose scope is limited to the Form Module defining it. Public Sub Command1_Click Dim a as integer End Sub Global Level Variable A Global Level variable is a variable whose scope can be limited to the entire project defining it. Private Sub Classjnitialize () Dim a As Integer End Sub


What does reached end of file while parsing mean?

Found this on the web, hopes it helps: tarbo Posts: 219 Re: reached end of file while parsing error Posted: May 3, 2007 5:49 AM in response to: jlnickymaster Reply The compiler was parsing your code and was expecting another token--in this case, likely an ending brace: '}'--but instead reached the end of the stream. In layman's terms, you're missing a brace to close your class definition.


What happens to the resistance as the conductor is measured?

The longer the conductor the greater the end to end resistance.


How do you write a program in Basic to display all the even numbers up to 100?

In visual basic: Module Module1 Sub Main() Dim Inst As Integer For Inst = 0 To 100 Step 2 Console.WriteLine(Inst) Next End Sub End Module

Related questions

In C plus plus when a function is executing what happens when the end of the function is reached?

Control is returning to the caller of the function.


What happens cell has reached the end of the cell cycle?

The cycle restarts.


Which of these statements best describe the activities of the executing process group in the project life cycle?

When the Executing processes are at their peak, the planning process group is winding down The executing processes begin after the PLanning starts and finsh shortly before the end of the project


Is there an end to crazy taxi?

Yes, but I have never reached the end.


What organization passes down the business rules for executing the year end close tasks?

GAO


Simple c program for mergesort?

#include #include #define MAX_ARY 10 void merge_sort(int x[], int end, int start); int main(void) { int ary[MAX_ARY]; int j = 0; printf("\n\nEnter the elements to be sorted: \n"); for(j=0;j scanf("%d",&ary[j]); /* array before mergesort */ printf("Before :"); for(j = 0; j < MAX_ARY; j++) printf(" %d", ary[j]); printf("\n"); merge_sort(ary, 0, MAX_ARY - 1); /* array after mergesort */ printf("After Merge Sort :"); for(j = 0; j < MAX_ARY; j++) printf(" %d", ary[j]); printf("\n"); getch(); } /* Method to implement Merge Sort*/ void merge_sort(int x[], int end, int start) { int j = 0; const int size = start - end + 1; int mid = 0; int mrg1 = 0; int mrg2 = 0; int executing[MAX_ARY]; if(end == start) return; mid = (end + start) / 2; merge_sort(x, end, mid); merge_sort(x, mid + 1, start); for(j = 0; j < size; j++) executing[j] = x[end + j]; mrg1 = 0; mrg2 = mid - end + 1; for(j = 0; j < size; j++) { if(mrg2 <= start - end) if(mrg1 <= mid - end) if(executing[mrg1] > executing[mrg2]) x[j + end] = executing[mrg2++]; else x[j + end] = executing[mrg1++]; else x[j + end] = executing[mrg2++]; else x[j + end] = executing[mrg1++]; } } ;j++)>


Who is responsible for providing fiscal year end guidance procedures to bases and executing closeout checklists?

DFAS


Who is responsible for providing fiscal year end guidance procedures to bases executing closeout checklists?

DFAS


What is yma?

A man who has reached the end of his tether!


all the answers to Module 4 end of Module Assesment (4th grade)?

What I am so confused yessss?.??


How to replace the passenger side power window switch on a 2003 Toyota Sienna?

I believe the design of the 2003 Sienna interior is identical to that of the 2000 Sienna which I own. The switch module on the driver and passenger sides are affixed into the armrest in the same way. They have a plastic retaining tab on the underside aft end and a spring-loaded metal clip on the underside forward end. During installation, they are made to slide in rearward at the aft end and then drop/snap into the mounting opening downward from the front. Therefore, the removal process is the reverse; that is, release the metallic snap latch at the front end and lift the front of the switch module ... after the bottom of the switch module has cleared the top of the armrest, you can slide the module forward to release the plastic latch at the aft end and take the switch module out as a unit. Disconnecting the wire connector frees the module for further work. The problem is that the release point on the spring-loaded metallic clip at the forward end of the switch module is about 1/4" below the underside surface of the module; therefore, simply using a small flat screwdriver inserted under the lip of the module won't work, because it cannot engage the release mechanism, which is a bit below. What really works best is a paint-can opener (available from any Home Depot), since it has a bent end. Using a flat screwdriver to slightly lift the forward end of the switch module, and with the bent end of the paint can opener pointing downward, insert it under the lip of the module at its center. Pushing this makeshift tool rearward will allow the bent end of the paint can opener to release the metal retaining clip at the forward end of the switch module. You can then lift the forward end of the module as descried earlier. Hope this helps.


What made many people die?

They reached the end of their lives.