1) What is the primary purpose of Git? a) Manage cloud repositories b) Track changes in files and manage version control c) Host and collaborate on code d) Deploy software to production 2) Which command initializes a new Git repository? a) git start b) git new c) git init d) git create 3) What does the git status command do? a) Shows the commit history of the repository b) Displays the current state of the working directory and staging area c) Stages files for a commit d) Removes files from the repository 4) What does the touch command do in Git? a) Creates a new file in the working directory b) Adds a file to the staging area c) Commits changes to the repository d) Clones a repository 5) What does the git add command do? a) Commits changes to the repository b) Adds a new branch c) Stages changes for the next commit d) Initializes a new Git repository 6) Which of the following is NOT a feature of GitHub? a) Hosting repositories b) Code reviews and pull requests c) Issue tracking d) Compiling code into binaries 7) What is the result of running the git init command in a directory? a) Clones a repository from GitHub b) Creates a new Git repository in the current directory c) Stages all files for commit d) Creates a branch named init 8) How do you stage all the files in the current directory using Git? a) git add * b) git add . c) git stage all d) git push 9) What does the git log command display? a) A list of untracked files b) The history of commits in the repository c) The status of the working directory d) A list of ignored files 10) Which command creates an empty file in the current directory? a) git add b) touch <filename> c) git create d) git init
0%
GIT/GITHUB Quiz#1
共用
共用
共用
由
Kdyahya
編輯內容
列印
嵌入
更多
作業
排行榜
顯示更多
顯示更少
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
測驗
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?