NEW
Font size
WorksheetsPerbaikan UAS - Pemrograman 3
Total questions: 60
Worksheet time: 3600secs
What is the full form of GIT?
Gastro Intestional Track.
Gastro International Track.
Global information Tracker
None of these
Which of the following git command that downloads your repository from GitHub to your computer?
git fork
git commit
git clone
git push
Which of the following shortcut to staging all the changes you have?
git push -am "Message"
git add .
git commit add .
git commit .
Identify the correct commit syntax for all changes with a message?
git add -a "I'm coding"
git commit -am "I'm coding"
git message -am "I'm coding"
None of these
What comes first, staging with git add. or committing with git commit?
Committing with git commit
Staging your commits with git add
None of these
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 clone
git pull-request
git fork
GIT comes from?
2005
2007
2004
2008
Which of the following advantage of using GIT?
Which of the language is used in GIT?
C language
HTML language
C++ language
None of these
What is the function of ‘GIT PUSH’ in GIT?
‘GIT PUSH’ updates remote refs.
‘GIT PUSH’ updates remote refs along with associated objects.
‘GIT PUSH’ remote refs along with associated objects.
None of these
What is an alternative to merging in git?
Basing
Rebasing
Both 1 and 2
None of these
Which of the following graphical GIT client for LINUX?
Smart git
Git Cola
Git-g
All of the above
What is the use of ‘git log’?
Which of the following Git repository hosting functions?
Gitlab
Github
Bitbucket
All of the above
What do you by git is-tree?
‘git is-tree’ represents a tree object including the mode and the name of each item and the SHA-1 value of the blob or the tree.
‘git is-tree’ represents a tree object including the mode and the name of each item
None of these
Which of the following isn't a Git configuration scope?
Which command should you use to initialize a new Git repository?
A.
B.C.
D.
git init
git install
git start
git bash
What is the default text editor for the Bash shell with a Windows-based Git install?
Bash
Emacs
Notepad++
Vim
Which of the following file you can configure to ensure that certain file types are never committed to the local Git repository?
.gitignore
gitignore.txt
git.ignore
ignore.git
Which of the following is not true in terms of git
Staging area
Fork
Stem
Push
How do you save the current state of your code into the git version control?
Using git stage
Using git commit
Using git push
Using git add
Which of the following is not a git command?
git clean
git clone
.git commit
Git roll
Which of these git client commands creates a copy of the repository?
clone
update
import
checkout
Which one of the following is not part of the data structure of a git repository?
Head pointer
Body element
Branch pointer
Commit object
Command is useful for getting a high-level overview of the project history?
git rebase
git reset --hard
git log --author=""
git log --oneline
Which command is used to show limited number of commits?
git fetch
git config
git log -n
None of the above
Command line environment is used for interacting with git?
Git Lab
GitHub
Git Boot
Git Bash
Which command creates an empty git repository in the specified directory?
git init .
git log ..
git reset
None of the above
What is the purpose of using 'git pull' command?
To fetch changes from the remote repository and merge them into the current branch.
To push changes to the remote repository.
To create a new branch.
To delete the current branch.
Which command is used to discard changes in the working directory?
git reset
git checkout
git revert
git discard
What is the purpose of 'git branch' command?
To list all the branches in the repository.
To create a new branch.
To delete a branch.
To merge branches.
What is the purpose of 'git status' command?
To check the status of the working directory and staging area.
To create a new branch.
To delete a branch.
To merge branches.
Which command is used to create a new branch in Git?
git branch <branch_name>
git checkout -b <branch_name>
git commit -m "New branch"
git merge <branch_name>
What is the purpose of 'git diff' command?
To show changes between the working directory and the staging area.
To create a new branch.
To delete a branch.
To merge branches.
What is the purpose of 'git fetch' command?
To download objects and refs from another repository.
To create a new branch.
To delete a branch.
To merge branches.
What is the significance of 'git rebase' command in Git?
To reapply commits on top of another base tip.
To create a new branch.
To delete a branch.
To merge branches.
What is the use of 'git stash' command in Git?
To temporarily store changes that you don't want to commit immediately.
To create a new branch.
To delete a branch.
To merge branches.
What is the use of 'git remote' command in Git?
To manage set of tracked repositories.
To create a new branch.
To delete a branch.
To merge branches.
What is the significance of 'git cherry-pick' command in Git?
To apply the changes introduced by some existing commits.
To create a new branch.
To delete a branch.
To merge branches.
What does 'git remote -v' command do in Git?
To view the remote URLs along with their corresponding shortnames.
To create a new branch.
To delete a branch.
To merge branches.
What is the significance of 'git bisect' command in Git?
To help find the commit that introduced a bug.
To create a new branch.
To delete a branch.
To merge branches.
Where are files stored before they are committed to the local repository?
git
saved files
git documents
staging area/index
Which command can be used to list the branches that have been merged into the currently checked-out branch?
git master --status
git branch --merged
git branch --status
git status --merged
What is version control?
a type of architecture used to manage large databases
a system that shows, tracks, and controls changes to a set of files over time
a type of software that links a project with a GitHub repository
a programmatic design pattern used to manage code between multiple engineering teams
What is the command to delete the branch "new-email"?
git gone new-email
git delete new-email
git branch -d new-email
git delete branch new-email
What is the command to add the remote repository "https://abc.xyz/d/e.git" as "origin"?
git remote add origin https://abc.xyz/d/e.git
git origin=https://abc.xyz/d/e.git
git add origin https://abc.xyz/d/e.git
git remote https://abc.xyz/d/e.git
What can't be cryptographically signed in Git?
Tags
Branches
Merge commits
Regular commits
Git attributes are used to__________
overwrite global configuration
control access permissions for refs
add metadata to some files or objects
specify some settings for particular files or types of files in the repository
Git reflog is used to__________?
track authors of changes
store the history of merge conflicts
store the history of updates of refs
synchronize with remote-tracking branches
What does a " " sign at the beginning of a refspec mean?
That authentication will be required
That the remote branch may not exist
That there is a one-to-many mapping between refs
That overwriting (non-fast-forward) updates are allowed
Which command is used to create a new Docker image?
docker build
docker pull
docker run
docker commit
What does the Dockerfile contain?
Compiled source code
Docker images
Binary data
Instructions for building a Docker image
What is a Docker container?
A running instance of a Docker image
A lightweight virtual machine
A storage volume
A service running on Docker Swarm
What command is used to list all running Docker containers?
docker list
docker show
docker ps
docker display
Which command pulls an image from Docker Hub?
docker get
docker fetch
docker pull
docker download
How can you run a command inside an existing Docker container?
docker exec
docker attach
docker run
docker enter
Which command is used to remove a Docker image?
docker rmi
docker remove
docker del
docker erase
What is Docker Compose?
A scripting language for Docker
A continuous integration tool for Docker
A tool for defining and running multi-container Docker applications
A Docker CLI plugin
Which of the following is the default registry used by Docker?
Kubernetes Hub
Container Store
Docker Hub
Image Hub
What is the primary purpose of the Docker Engine?
To provide a graphical visualization of containers
To build and run containers
To manage databases inside containers
To interface with Kubernetes
