Question: what is the difference between task and function in class and module?
Answer: a) Task can enable both a task and function but function can only enable a function. ... c) A task cannot return a value but has the ability to pass multiple values through output and input arguments but functions can return a single value and should not use either output or input arguments.