Courseiva

UiPath-ADAv1 Version Control and Libraries Practice Question

A developer is using Git for version control in a UiPath Studio project. The developer wants to create a new feature branch, make changes, and then merge it back to the main branch. Which Git command should the developer use to create and switch to a new branch named 'feature/login'?

⚠ Common exam trap

Many exam-takers confuse branch creation with branch switching; 'git branch' creates but does not switch, and 'git switch' without '-c' does not create.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

git checkout -b feature/login

To create and switch to a new branch in Git, the 'git checkout -b' command is used. This combines branch creation and checkout in a single step. Other commands like 'git branch' only create, 'git merge' merges, and 'git switch' without '-c' only switches. The developer should use 'git checkout -b feature/login' to start working on the new feature immediately.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    git merge feature/login

    Why it's wrong here

    The 'git merge' command is used to merge changes from one branch into another. It does not create a new branch. Using this command would attempt to merge the 'feature/login' branch into the current branch, which is the opposite of what the developer wants to do at this stage.

  • ✗

    git switch feature/login

    Why it's wrong here

    The 'git switch' command is used to switch branches, but without the '-c' flag, it does not create a new branch. If the branch does not exist, it will fail. The correct command to create and switch is 'git switch -c feature/login', but that is not listed here.

  • ✗

    git branch feature/login

    Why it's wrong here

    The 'git branch' command creates a new branch but does not switch to it. The developer would remain on the current branch, and would need to run 'git checkout feature/login' separately. This does not fulfill the requirement of creating and switching in one step.

  • ✓

    git checkout -b feature/login

    Why this is correct

    The 'git checkout -b' command creates a new branch and immediately switches to it. This is the standard way to create and switch to a new branch in one step. It is efficient and commonly used in Git workflows, including those integrated with UiPath Studio.

About these practice questions

One of 285 original UiPath-ADAv1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official UiPath exam blueprint

This UiPath-ADAv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADAv1 exam.