Quiz for Actions
This is a short quiz about concepts related to control flow and control structures.Actions Quiz
- What is an action?
- In practice, programmers write many actions. What are actions useful for?
- We often talk about 'calling' actions. What does this mean?
- Describe the concept of code reuse and how it relates to actions.
- What is a Main action?
- When students learn to program, it is sometimes common to see programs written that are all within Main, instead of being broken into actions. What is the disadvantage of this?
- What is a parameter?
- List three general rules for naming actions.
- What is a return type and why is it important?
- Describe two legal names for actions and two illegal ones.
- What is an argument to an action and how does it differ from a parameter?
- What would happen if an action did nothing but call itself?
- What is the concept of static typing and why is it important?
- An action can technically have as many parameters as we want. Why might it be reasonable to keep that number low?
- What is action overloading?
Essay Questions
- For the game of paper, rock, scissors, write an essay at a high level about how such a program could be broken into actions. Describe the actions, their parameters, and what they would do.
- Describe the concept of an action signature. What is it and what does it consist of? Why is the concept of a signature important?
Next Tutorial
In the next tutorial, we will discuss Classes, which describes how work classes in Quorum..