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 代码
删除
恢复自动保存:
?