Quiz – Git

/5

Basic

1 / 5

You are using GIT for version control system in your project. You have added all files in the staging area and now you are planning to commit all the files along with commit message. Which command you will choose from the following?

2 / 5

What all parameters are used to configure git in your local system. Choose the correct parameters from the following options?

3 / 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"

4 / 5

Among the following options, select the text editors supported by GIT?

5 / 5

Among the following options, select the correct statement about GIT?

Your score is

The average score is 51%

0%

Exit

/5

Repositories

1 / 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?

2 / 5

You have committed all project files in your local git repository and all files are ready to commit the changes to GITHUB or central repository. You found out that few files are not required to be pushed to GITHUB repository. Which file you can configure to make sure that unwanted files never commit to GITHUB repository?

3 / 5

"GIT PUSH is used to push the files from CENTRAL repository to LOCAL repository"

Select whether the above statement is correct or not?

4 / 5

You are working as a software developer in an IT company. Your company is using GIT as a version control tool for various projects. You have accidently added one file in your staging area. After some time, you realized that you have added unwanted file and you need to remove that file from the staging area. Which command you should run?

5 / 5

User needs to initialize new git repository in the local system. Choose the correct command that can be used to perform this task?

Your score is

The average score is 54%

0%

Exit

/5

GIT Branching

1 / 5

You have created multiple branches in your local system to manage project code. These branches includes different code versions, bug fixes etc.
You need to check all the branches available locally and remotely . Which git command you will run ?

2 / 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?

3 / 5

You have created different branches in your project and there were a number of commits done in each branch. You need to see the high level overview of the commit
history. Which command is helpful for this task?

4 / 5

You are working as a software developer and you are using GIT for managing your project code. You have performed multiple commits under the development branch and before pushing the code to the next level, you need to compare a few commit ID's to check the difference in each commit. Which command you should use from the following options?

5 / 5

"Branching strategy ensures every software developer in the team is following the same procedure for making changes to source control."
Select whether the above statement is correct or not?

Your score is

The average score is 47%

0%

Exit

/5

GitLab

1 / 5

You have started using GitLab to manage your project. Select whether the following GITLAB advantages are correct or not? (select 2)

2 / 5

You have been assigned a task to create a new project on GitLab. Select the correct procedure for creating a project on GitLab?

1. login to GitLab account
2. enter project name and details
3. click on new project button on dashboard
4. click on create project button

3 / 5

You are working as an GITLAB administrator. You need to take the backup of the GitLab repositories related to your projects. Select the command to perform this task?

4 / 5

You need to access GitLab CI/CD pipeline dashboard. Among the following options, select which GitLab tiers have access to the CI/CD Pipelines Dashboard?

5 / 5

Among the following options, select the procedure to create BRANCH inside your GITLAB account?

1. Login to your GitLab account
2. Enter BRANCH name
3. Click on new BRANCH
4. Select PROJECT
5. click on CREATE BRANCH button

Your score is

The average score is 35%

0%

Exit

/5

Bitbucket

1 / 5

You have modified 'index.html' file directly on the BITBUCKET developer branch. Now before committing the file, you need to visualize the highlighted changes. Which BITBUCKET
the feature helps to achieve this?

2 / 5

You have been assigned a task to create a new branch on the BITBUCKET console. Select the correct steps to create a branch?

1. log in to your BITBUCKET console and select the repository
2. Provide branch name
3. click on branches
4. Click on create button

3 / 5

Among the following options, select the valid BITBUCKET CLOUD repository format?

4 / 5

Among the following options, select the mercurial command to get the bitbucket repository into your local system?

5 / 5

Among the following options, select the advantages of using BITBUCKET?

Your score is

The average score is 37%

0%

Exit

/5

Git Merging

1 / 5

While merging different branches in your project, you have encountered merge conflicts. You need to use MELD merge tool to resolve this issue.
Among the following options, select the correct procedure to resolve merge conflict using MELD tool?

1. choose the correct code to merge
2. Install and configure MELD tool in your local system
3. click on save button to save the merge changes
4. run command 'git mergetool'

2 / 5

Among the following options, select the correct statement about git merge and git rebase? (select 2)

3 / 5

"Merging gets blocked for developers if pull request approval mechanism is set up for GITHUB repository."
Select whether the above statement is correct or not?

4 / 5

You are inheriting GIT and GITHUB best practices in your projects. Is it good to keep branches around after squashing at GITHUB?

5 / 5

Among the following options, select the git command used to merge the specific commit to the target branch?

Your score is

The average score is 35%

0%

Exit