1. What is GitHub Actions primarily used for?

    Answer: c) Continuous integration and continuous delivery (CI/CD)

  2. Which file format is used to define a GitHub Actions workflow?

    Answer: c) YAML

  3. Where do you store GitHub Actions workflow files in a repository?

    Answer: a) .github/workflows

  4. Which of the following is a key component of a GitHub Actions workflow?

    Answer: d) All of the above

  5. What does the on keyword specify in a GitHub Actions workflow?

    Answer: b) The events that trigger the workflow

  6. Which of the following can be used to trigger a GitHub Actions workflow?

    Answer: d) All of the above

  7. In a GitHub Actions workflow, what is a job?

    Answer: a) A sequence of steps that execute on the same runner

  8. What does the runs-on keyword define in a GitHub Actions workflow?

    Answer: b) The type of runner to execute the job on

  9. What is a runner in GitHub Actions?

    Answer: a) A virtual machine or container that runs your workflows

  10. How do you specify a specific branch for a workflow to run on?

    Answer: d) on: push: branches: [branch]

  11. Which keyword is used to define an individual step within a job?

    Answer: d) steps

  12. How do you reference a secret stored in GitHub Actions?

    Answer: a) ${{ secrets.NAME }}

  13. What is the purpose of the uses keyword in a GitHub Actions workflow?

    Answer: b) To specify an action to use

  14. Which command would you use to checkout the code in a GitHub Actions workflow?

    Answer: a) uses: actions/checkout@v2

  15. How can you define a scheduled event in GitHub Actions?

    Answer: b) on: schedule:

  16. Which of the following is NOT a valid GitHub Actions runner type?

  17. What does the env keyword define in a GitHub Actions workflow?

  18. Which command is used to set up Node.js in a GitHub Actions workflow?

  19. Which keyword in a GitHub Actions workflow file is used to define the name of the workflow?

  20. What is the purpose of the with keyword in GitHub Actions?