Quiz – Git

/5

Basic

1 / 5

You have successfully installed GIT in your local system and also initialized GIT in the project folder. Now you need to add the project files in the staging directory. Choose the command to perform this task?

2 / 5

Among the following options, select the programming language which was used to create GIT tool?

3 / 5

Among the following options, which all projects are supported by GIT?

4 / 5

Select whether the following statement is correct or not with respect to GIT repository?

"GIT repository is a file structure used by GIT to store the project files"

5 / 5

Among the following options, select the correct option which helps in tracking the software developer’s contribution working as a team in a project?

Your score is

The average score is 25%

0%

Exit

/5

Repositories

1 / 5

You have run command: git remote -v on your GITBASH terminal. Among the following options what will be the expected output?

2 / 5

Which of the following tasks are achieved with the help of GIT clone command?

3 / 5

You need to communicate your local repository with GITHUB or central repository. There should be a proper authentication that will allow your device to access GITHUB. Select the underlying authentication protocol used in the authentication process?

4 / 5

User is working with GIT and want to clone GITHUB repository using SSH protocol. From the following options select the correct sequence to complete the setup.

 

  1. Clone GIT repository using SSH URL
  2. Add public key in GITHUB account
  3. Run ssh agent manually or on GIT Bash startup
  4. Generate Key Pairs using ssh keygen
  5. Add private key in ssh agent

5 / 5

You have recently created a new file named as 'hello.txt' in your local repository. Among the following options, select the command which you can use to add 'hello.txt' file to the git staging area so that you can commit it?

Your score is

The average score is 25%

0%

Exit

/5

GIT Branching

1 / 5

You have created two branches named as 'main' and 'developer'. Now you need to modify the name of the 'developer' branch name to 'development'. Select the
correct GIT command to perform this task?

2 / 5

You have created two branches named as "master" and "developer". You are currently working in "developer" branch and now you need to switch to "master" branch to check few code files. Select the command to perform this operation?

3 / 5

You have recently joined the software development team, you need to import the latest code to your local repository from the master branch of the remote repository. Select the command to complete this task?

4 / 5

You have recently performed commit operation on master branch under your local repository, you need to check the details of the recent commit. How to check that?

5 / 5

You have been given a task to create a branch named as "master" and then import the code from GITHUB repository. Choose the command to create a branch?

Your score is

The average score is 0%

0%

Exit