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

Clasament

Stilul vizual

Opţiuni

Comutare șablon

Restaurare activitate salvată automat: ?