GitHub Quiz: Can You Beat Real Devs?
Think GitHub is easy? Test your knowledge of pull requests, Actions, secret scanning, branches, CI/CD, and real developer workflows today used by experts pro!
1. Which file in a "GitHub" repository is automatically rendered on the repository's homepage?
GitHub automatically picks up and displays a specific file on the front page of every repository containing it. This file typically outlines what the project does, how to set it up, usage guidance, and contributor notes. Written in a lightweight text formatting syntax, it is the first thing most visitors read on landing.
Correct Answer
Wrong Answer
2. In GitHub, what is the default branch name used in newly created repositories?
GitHub's REST API maps operations to standard HTTP methods. Creating a new resource uses the HTTP method linked to submitting data. Developers send a request to a set endpoint with authentication and a JSON body specifying details like the repository name, description, and whether it should be public or private.
Correct Answer
Wrong Answer
3. Which GitHub Actions trigger runs a workflow whenever code is pushed to any branch?
GitHub Actions workflows are started by events that occur within a repository. One event-based trigger fires each time new code is pushed, regardless of which branch is the target. It is one of the most frequently used triggers for kicking off automated checks, builds, and deployments the moment new commits land in the repository.
Correct Answer
Wrong Answer
4. Which GitHub security feature scans repository code for exposed secrets such as API keys and tokens?
GitHub has a built-in security feature that monitors repository contents for sensitive data committed accidentally. It checks for patterns matching known credential formats, such as API keys and private tokens. Repository owners are notified when a match is found, helping teams act quickly before any exposure causes a real security issue.
Correct Answer
Wrong Answer
5. In GitHub's REST API, which HTTP method is used to create a new repository under an authenticated user's account?
GitHub's REST API maps operations to standard HTTP methods. Creating a new resource uses the HTTP method linked to submitting data. Developers send a request to a set endpoint with authentication and a JSON body specifying details like the repository name, description, and whether it should be public or private.
Correct Answer
Wrong Answer
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0