Git and github quiz
Git and github quiz
Quiz questions
a) Project management
b) Version control
c) Code execution
d) Cloud storage
a) git init
b) git start
c) git create
d) git repo
4. Which of the following files is used to exclude specific files from being tracked in Git?
a) .exclude
b) .gitignore
c) .gitconfig
d) .tracker
Answer: b) .gitignore
a) main
b) master
c) default
d) primary
Answer: a) main
a) git save
b) git update
c) git commit
d) git push
a) git log
b) git history
c) git commits
d) git track
b) Deletes a branch
11. What happens if you try to push changes without committing them first?
Answer: c) Edit the conflicting files manually and commit the changes
13. Which GitHub feature allows team members to suggest changes to a repository?
a) Issues
b) Pull Requests
c) Commits
d) Actions
c) To generate documentation
a) GitHub Pages
b) GitHub Actions
c) GitHub Projects
d) GitHub Desktop
a) HTML tags
b) YAML syntax
b) To delete a repository
c) To merge branches
b) Create an issue
c) Add a branch
d) Submit a merge request
a) Approved
b) Pending review
c) Rejected
d) Merged
Answer: a) They are used to manage project discussions and track tasks.
22. What GitHub feature allows you to automate tracking of project tasks?
a) GitHub Pages
b) GitHub Boards
c) GitHub Projects
d) GitHub Forks
a) Proprietary development
d) No documentation requirements
24. Which command is commonly used to pull the latest changes from the remote repository?
a) git pull
b) git push
c) git fetch
d) git sync
c) Merging branches
a) JSON files
b) YAML files
c) XML files
d) Generating documentation
a) Jobs
b) Actions
c) Workflows
d) Repositories
Answer: d) Repositories
29. What does the on key in a GitHub Actions YAML file specify?
c) An encrypted commit
32. Which command can trigger GitHub Actions workflows locally for testing?
a) act
b) test
c) run-actions
d) ci-test
Answer: a) act
33. How are jobs executed in GitHub Actions?
a) In parallel by default
b) Sequentially by default
c) Randomly
36. Which GitHub feature allows you to test pull requests before merging?
a) GitHub Projects
b) GitHub Pages
c) GitHub Actions
d) GitHub Security
37.. Which GitHub feature allows team members to suggest changes to a repository?
a) Issues
b) Pull Requests
c) Commits
d) Actions
c) To generate documentation
39. Which tool in GitHub helps organize and track project progress?
a) GitHub Pages
b) GitHub Actions
c) GitHub Projects
d) GitHub Desktop
b) YAML syntax
b) To delete a repository
c) To merge branches
b) Create an issue
c) Add a branch
a) Approved
b) Pending review
c) Rejected
d) Merged
Answer: a) They are used to manage project discussions and track tasks.
46. What GitHub feature allows you to automate tracking of project tasks?
a) GitHub Pages
b) GitHub Boards
c) GitHub Projects
d) GitHub Forks
a) Proprietary development
b) Limited access to repositories
d) No documentation requirements
48. Which command is commonly used to pull the latest changes from the remote repository?
a) git pull
b) git push
c) git fetch
d) git sync
a) GitHub Issues
c) GitHub Actions
d) GitHub Projects
a) git revert
c) git checkout
d) git stash
52. What is a best practice for managing sensitive information in a Git repository?
53. What does the git bisect command help you do?
d) Clone a repository
55. Which command is used to permanently remove a file from Git history?
a) git remove
b) git rm --cached
c) git filter-branch
d) git stash
56. What should you use to manage large files in a Git repository?
a) GitHub Pages
c) Git Submodules
d) GitHub Actions
a) Use .gitignore
b) Delete a branch
a) git reset
b) git checkout
c) git reflog
d) git pull
1. What is the primary purpose of integrating GitHub with development tools like VS Code?
a) To automate workflows
b) To streamline code writing and repository management
a) GitHub Pages
b) GitHub Issues
c) GitHub Actions
4. Which GitHub feature can help you stay engaged with the open-source community?
a) GitHub Actions
b) GitHub Discussions
c) GitHub Pages
a) git link
d) git ci
7. Which GitHub feature is useful for networking and showcasing work to potential employers?
a) GitHub Actions
b) GitHub Portfolio
c) GitHub Issues
d) GitHub Projects
8. What is an effective way to stay updated with changes in Git and GitHub?
a) GitHub Dashboard
b) Contributions Graph
c) Repository Insights
d) GitHub Projects