Question

What is the difference between a module and a function? Give one example of each either...

What is the difference between a module and a function?

Give one example of each either with pseudo code or a short description.

Homework Answers

Answer #1

Function is like set of statements which performs the task and returns the result

where module is collection of functions where we can import and use it

Part2:

function example

function1 (){

statement1

statemen2

}

module exampe

MODULE

function1 (){

statement1

statemen2

}

function2 (){

statement1

statemen2

}

function2 (){

statement1

statemen2

}

END MODULE

Note : Please comment below if you have concerns. I am here to help you

If you like my answer please rate and help me it is very Imp for me

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
What is the difference between an interview and a survey? Give an example of either of...
What is the difference between an interview and a survey? Give an example of either of the types of techiques.
What is difference between static and kinetic friction forces? Give one example of each of them....
What is difference between static and kinetic friction forces? Give one example of each of them. Why Static friction force is larger than kinetic friction force?
I. What is the difference between passive and active listening. Give at least one example for...
I. What is the difference between passive and active listening. Give at least one example for each. II. Outline the techniques that help you to listen actively. III. What is the difference between open and closed questions. IV. How do open questions help in the conversation V. What is the difference between verbal and non-verbal probes. Give example for each. vi. Discuss some probing techniques.
What is the difference between a dependent versus an independent nursing intervention? Give one example of...
What is the difference between a dependent versus an independent nursing intervention? Give one example of each.
What is the difference between intraoperative and interoperative? Define each and give an example
What is the difference between intraoperative and interoperative? Define each and give an example
what is the difference between a primary and a secondary standard ? Give example of each
what is the difference between a primary and a secondary standard ? Give example of each
What is the difference between independent and dependent events? Give an example of each.
What is the difference between independent and dependent events? Give an example of each.
What is the difference between “You-Messages” and “I-Messages”? Give an example of each.
What is the difference between “You-Messages” and “I-Messages”? Give an example of each.
What is the difference between “You-Messages” and “I-Messages”? Give an example of each.
What is the difference between “You-Messages” and “I-Messages”? Give an example of each.
what is the difference between positive and negative feedback loops and give an example of each...
what is the difference between positive and negative feedback loops and give an example of each in computing.