Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
Exercises
HTML
JavaScript
Git
CSS
PHP
Courses
Quizzes
Snippets
Tools
General Tools
Password Generator
HTML Editor
HTML Encoder
Base 64
Code Diff
JSON Beautifier
CSS Beautifier
Markdown Convertor
Find the Closest Tailwind CSS Color
Phrase encrypt / decrypt
Browser Feature Detection
Number convertor
JTW Decoder
CSS Maker
CSS Maker
CSS Maker text shadow
CSS Maker Text Rotation
CSS Maker Out Line
CSS Maker RGB Shadow
CSS Maker Transform
CSS Maker Font Face
Color Tools
Color Picker
Colors CMYK
Colors HWB
Colors HSL
Color Hex
Color mixer
Color Converter
Colors RGB
Color Contrast Analyzer
Color Gradient
String Tools
String Length Calculator
MD5 Hash Generator
Sha256 Hash Generator
String Reverse
URL Encoder
URL Decoder
Base 64 Encoder
Base 64 Decoder
Extra Spaces Remover
String to Lowercase
String to Uppercase
Word Count Calculator
Empty Lines Remover
HTML Tags Remover
Binary to Hex
Hex to Binary
Rot13 Transform on a String
String to Binary
Duplicate Lines Remover
Change theme
Dark
Light
System
Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
How To
How To NodeJs
How To Linux
How To AngularJs
How To PHP
How To HTML
How To CSS
How To Symfony
How To Git
How To Apache
How To JavaScript
How To Java
How To Vue.js
How To Python
Git Basics
1/25
Which of the following must be present and configured on your local OS before Git installation?
Java Development Kit 1.8 or newer
Apache Maven
Jakarta Enterprise Edition web profile compliant server
Nothing
Next >
2/25
After initializing a new Git repository and creating a file named git_file.html, which of the following commands will not work if issued?
git add git_file.html
git commit -m "Your commit message"
git status
git add .
Next >
3/25
How can you create a branch and switch to it directly?
git checkout -b <branch-name>
git branch --switch <branch-name>
git branch --checkout <branch-name>
git checkout --create-branch <branch-name>
Next >
4/25
How do you create a copy of a lab under your own GitHub account so that you can solve the lab?
Forking it via the GitHub interface.
git fork
git clone
git pull-request
Next >
5/25
What should you run to modify your last commit?
git commit --amend
git change
git commit amend
git commit --change
Next >
6/25
What is a popular Git branching model used for collaboration?
Gitpush
Gitsync
Gitpull
Gitbranch
Gitflow
Next >
7/25
What is the use of 'git blame' command?
To list all the contributors of a repository
To find the errors in a file
To display the commit history of a file
To revert changes in a file
To show what revision and author last modified each line of a file
Next >
8/25
What is 'git diff' used for?
To display the current state of the repository
To list repository files
To show the difference in remote repositories
To merge changes
To show the changes between commits, commit and working tree, etc.
Next >
9/25
How does the '.gitignore' file work?
Automatically deletes specified files
Lists all ignored files
Merges specified files
Tracks specified files
Specifies intentionally untracked files to ignore
Next >
10/25
What is a 'fork' in Git?
A personal copy of another user's repository
A branch in a repository
A merged branch
A committed change
A clone of a repository on the local machine
Next >
11/25
What does 'git log' show?
The list of branches
The remote repositories
The current state of the repository
The commit history of the repository
The changes in files
Next >
12/25
What does 'squashing' in Git mean?
Renaming branches
Deleting unwanted commits
Creating new branches
Cloning repositories
Combining several commits into a single commit
Next >
13/25
What is the purpose of the 'git branch -d' command?
To delete a branch
To rename a branch
To merge a branch
To list all branches
To create a new branch
Next >
14/25
What does the 'git archive' command do?
Creates an archive of the files from the named tree
Merges two branches
Shows the commit history
Initializes a new repository
Clones a repository
Next >
15/25
What is the purpose of the 'git show' command?
Deletes a commit
Shows the current branch
Merges branches
Initializes a new repository
Shows various types of objects
Next >
16/25
In which scenario is 'git bisect' particularly useful?
To show a list of recent commits
To revert a commit
To quickly find the commit that introduced a bug
To merge feature branches
To clone a repository
Next >
17/25
What does 'git reset --hard' do?
Creates a backup of the current state
Merges the current branch with the master branch
Resets the working directory and index to the last commit, discarding all changes
Resets only the index but not the working directory
Resets only the working directory but not the index
Next >
18/25
What is a best practice for collaborating with others in Git?
Avoid using tags for versioning
Commit changes directly to the master branch
Use a single branch for all developments
Never merge branches
Regularly pull changes from the remote repository to stay updated
Next >
19/25
What is the 'feature branch' workflow in Git?
Using tags for each new feature
Merging features directly into the master branch
Using a single branch for all features
Creating branches for each new feature being developed
Never merging feature branches
Next >
20/25
What does 'git clone' do?
Merges two repositories
Creates a new branch
Updates an existing repository
Deletes a repository
Creates a copy of an existing Git repository into a new directory
Next >
21/25
What is the use of the 'git status' command?
To show the latest commit
To display the repository history
To list all the branches
To display the state of the working directory and staging area
To check the connectivity to the remote repository
Next >
22/25
How do you change the URL of a remote repository in Git?
It cannot be changed once set
Using the 'git remote set-url' command
Using the 'git config set-remote' command
Modifying the .git/config file
Using the 'git remote change-url' command
Next >
23/25
What does 'git commit --amend' do?
Splits the last commit into multiple commits
Deletes the last commit
Reverts the last commit
Creates a new commit as a copy of the last one
Modifies the most recent commit
Next >
24/25
Why is the initial commit important in Git?
It defines the project's collaborators
It determines the project's main language
It is not different from other commits
It sets the remote repository URL
It marks the starting point of the project's history
Next >
25/25
Why would you create aliases for Git commands?
To rename existing Git commands
To create new Git commands
For shortcut commands to save time on frequently used operations
To track changes in Git commands
For securing Git commands
Next >
To get the result of the quiz, please provide your email address (optional)..
Get Certificate
It seems you haven't answered any questions yet. Please provide your answers to proceed.