Instruction: open a new project in Vscode called Exam3 and implement the folowing code Please implement your Answers with code
- What is a function in Dart?
- How do you declare a function in Dart?
- What is the purpose of the main() function in Dart?
- Explain the difference between a named function and an anonymous function.
- What is a return type in Dart functions?
- How can you pass parameters to a Dart function?
- Describe the difference between positional and named parameters.
- What is the significance of the arrow (=>) syntax in Dart functions?
- How do you define default parameter values in Dart functions?
- Explain the concept of optional parameters in Dart functions.
- What is the purpose of the void keyword in Dart functions?
- How can you define a function inside another function in Dart? What is this called?
- What is a higher-order function in Dart?
- Explain the difference between functions and methods in Dart.
- How do you use the return keyword in Dart functions?
- What is a function signature, and why is it important?
- How can you make a function in Dart asynchronous?
- Describe the use of the async, await, and Future keywords in asynchronous functions.
- How do you call a function defined in another Dart file?