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?
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 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.
For each problem below, either give an example of a function satisfying the give conditions, or...
For each problem below, either give an example of a function satisfying the give conditions, or explain why no such function exists. (a) An injective function f:{1,2,3,4,5}→{1,2,3,4} (b) A surjective function f:{1,2,3,4,5}→{1,2,3,4} (c) A bijection f:N→E, where E is the set of all positive even integers (d) A function f:N→E that is surjective but not injective (e) A function f:N→E that is injective but not surjective
What is the difference between high-contact and low-contact services? Give an example of each.
What is the difference between high-contact and low-contact services? Give an example of each.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT