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
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
Which git command should you run to download your repository from GitHub to your computer?
git fork
git clone
git commit
git push
Next >
4/25
How should you stage files for a commit?
git stage
git commit
git add
git reset
Next >
5/25
How should you save the current state of your code into Git?
By adding all changes and staging them with git add
By adding all changes and staging them with git stage
By committing the staged changes with git commit
By creating a new commit with git init
Next >
6/25
Which option is used to stash your untracked files?
git stash -a
git stash -u
git stash -q
git stash -k
Next >
7/25
Which of the following is a valid Git merge strategy?
Fast-forward
Recursive
Direct-commit
Automatic
Merge-commit
Next >
8/25
What is a popular Git branching model used for collaboration?
Gitpush
Gitsync
Gitpull
Gitbranch
Gitflow
Next >
9/25
What is 'git bisect' used for?
To find the commit that introduced a bug using binary search
To create a new commit
To list all branches
To merge two branches
To delete a branch
Next >
10/25
What are Git submodules?
Methods to synchronize branches
Tools to compress repository size
A way to include or link to other Git repositories within a parent repository
Features to enhance Git security
Scripts to automate Git commands
Next >
11/25
What is a Pull Request in the context of Git?
A feature to request code reviews
A request to merge a branch into another branch, often used in collaborative projects
A command to pull the latest changes from a remote repository
A method to clone repositories
An action to push local changes to a remote repository
Next >
12/25
What is the purpose of 'git cherry-pick'?
To list commits in a branch
To merge branches
To delete specific commits
To create new branches
To apply the changes introduced by some existing commits
Next >
13/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 >
14/25
What is a 'git alias'?
A clone of a repository
A merged commit
A new Git branch
A tag in Git
A shorthand or nickname for a Git command
Next >
15/25
What does 'git add -i' enable?
Ignores files for tracking
Initializes a new repository
Adds a remote repository
Archives repository files
Interactive staging mode
Next >
16/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 >
17/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 >
18/25
What limitation does Git LFS address?
Automating Git workflows
Managing remote repositories
Improving the speed of Git operations
Securing sensitive files in the repository
Handling large files that are difficult to manage with regular Git
Next >
19/25
How do you check the name of the current branch in Git?
Using the 'git status' command
Using the 'git branch' command
Checking the .git/HEAD file
Using the 'git current-branch' command
It is not possible to check
Next >
20/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 >
21/25
What is the effect of the 'git merge --no-ff' command?
Disables the merge operation
Forces a fast-forward merge
Creates a merge commit even if a fast-forward merge is possible
Rebases instead of merging
Merges without checking for conflicts
Next >
22/25
What additional information can 'git blame' show besides authorship?
The commit each line of a file was last modified in
The entire commit history of the file
The size of each change in the file
The number of times the file was modified
Future planned modifications
Next >
23/25
How can you protect branches in Git?
By setting branch protection rules in the repository settings
Through .gitignore files
Using the 'git protect' command
Branches cannot be protected in Git
By making branches read-only
Next >
24/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 >
25/25
What is a 'detached HEAD' state in Git?
When the HEAD is missing from the repository
When HEAD points directly to a commit rather than a branch
A broken state that needs immediate fixing
A state where HEAD points to multiple branches
A special mode for merging
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.