MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Git
Quiz 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
Git commit command use to
push changes from local repo to central repo
stage changes
push changes from staging area to local repo
all of them
Q.2
Which command should you use to initialize a new git repository?
Git bash
Git install
Git init
Git start
Q.3
Which file can you configure to ensure that certain files are never committed to the local Git repository?
Ignore.git
.gitignore
gitignore.txt
git.ignore
Q.4
You can type git status at any point while in a git controlled directory to check the status of your files?
True
False
Q.5
Command to add particular file changes to staging area from working directory?
git pull
git add .
git add filename
git commit -m
Q.6
Which of the following is one of Git's powerful features?
Rooting
Leafing
Branching
Planting
Q.7
Which is the following is the default text editor for the Bash shell with a Windows-based Git install?
Bash
Vim
Emacs
Notepad++
Q.8
Which of the following commands will stage your entire directory and every non-empty directory inside your current directory?
git status all
git add .
git commit all
None of these
Q.9
How do you check the state of your local git repository since your last commit?
git check
git status
git commit
git diff
Q.10
What command removes untracked files from your working directory.
git commit
git clean -f <path>
git clean
git reset
Q.11
Which programming language was used to create Git?
C
HTML
PHP
C++
Q.12
What is the default text editor for the Bash shell with a Windows-based Git install?
Emacs
Vim
Notepad++
Bash
Q.13
To make a new git branch, the git command is?
git branch
git -b
git new branch
git checkout branch
Q.14
Ramani put two pens and a big eraser into the pencil case. The underline phrase of this sentence indicates,
A qualitative data and quantitative data
A qualitative data
A quantitative data and qualitative data
An Information
Q.15
What is the incorrect statement regarding information?
Processed information are taken to make decisions
Cost effectiveness is a feature of a quality information
Value of the information will be increased as time passes
All information is not suitable for decision making
Q.16
A pen shaped device which can sense light, and is used to point at spots on a video screen.
Mouse
Light Pen
Joystick
Plotter
Q.17
Authentication uniquely binds your machine to your GitHub, Bitbucket, or any code hosting service. This allows the devices you add to get access to your repositories.
SSS
SHH
SSH
HSS
Q.18
Checks out a branch from repository into the working directory.
git init
git checkout
git add
git commit
Q.19
Git command if I want to commit my changes about "Initial commit"
git commit -m "Initial commit"
git commit -msg "Initial commit"
Q.20
............. command is to create git branch
git checkout <branchName>
git create-branch <branchName>
git branch <branchName>
git -b <branchName>
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page