wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Perbaikan UAS - Pemrograman 3

Total questions: 60

Worksheet time: 3600secs

Name
Class
Date
1.

What is the full form of GIT?

a)

Gastro Intestional Track.

b)

Gastro International Track.

c)

Global information Tracker

d)

None of these

2.

Which of the following git command that downloads your repository from GitHub to your computer?

a)

git fork

b)

git commit

c)

git clone

d)

git push

3.

Which of the following shortcut to staging all the changes you have?

a)
  • git push -am "Message"

b)
  • git add .

c)
  • git commit add .

d)
  • git commit .

4.

Identify the correct commit syntax for all changes with a message?

a)
  • git add -a "I'm coding"

b)
  • git commit -am "I'm coding"

c)
  • git message -am "I'm coding"

d)
  • None of these

5.

What comes first, staging with git add. or committing with git commit?

a)
  • Committing with git commit

b)
  • Staging your commits with git add

c)
  • None of these

6.

How do you create a copy of a lab under your own GitHub account so that you can solve the lab?

a)
  • Forking it via the GitHub interface.

b)
  • git clone

c)
  • git pull-request

d)
  • git fork

7.

GIT comes from?

a)
  • 2005

b)
  • 2007

c)
  • 2004

d)
  • 2008

8.

Which of the following advantage of using GIT?

a)
  • Collaboration friendly

b)
  • Data redundancy and replication

c)
  • Faster release cycle.

d)
  • All of the above

9.

Which of the language is used in GIT?

a)
  • C language

b)
  • HTML language

c)
  • C++ language

d)
  • None of these

10.

What is the function of ‘GIT PUSH’ in GIT?

a)
  • ‘GIT PUSH’ updates remote refs.

b)
  • ‘GIT PUSH’ updates remote refs along with associated objects.

c)
  • ‘GIT PUSH’ remote refs along with associated objects.

d)
  • None of these

11.

What is an alternative to merging in git?

a)
  • Basing

b)
  • Rebasing

c)
  • Both 1 and 2

d)
  • None of these

12.

Which of the following graphical GIT client for LINUX?

a)
  • Smart git

b)
  • Git Cola

c)
  • Git-g

d)
  • All of the above

13.

What is the use of ‘git log’?

a)
  • by author

c)
  • content

d)
  • All of the above

14.

Which of the following Git repository hosting functions?

a)
  • Gitlab

b)
  • Github

c)
  • Bitbucket

d)
  • All of the above

15.

What do you by git is-tree?

a)
  • ‘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.

b)
  • ‘git is-tree’ represents a tree object including the mode and the name of each item

c)
  • None of these

16.

Which of the following isn't a Git configuration scope?

a)
  • User

b)
  • System

c)
  • Local

17.

Which command should you use to initialize a new Git repository?

  • A.

  • B.C.

  • D.

a)
  • git init

b)
  • git install

c)
  • git start

d)
  • git bash

18.

What is the default text editor for the Bash shell with a Windows-based Git install?

a)
  • Bash

b)
  • Emacs

c)
  • Notepad++

d)
  • Vim

19.

Which of the following file you can configure to ensure that certain file types are never committed to the local Git repository?

a)

.gitignore

b)
  • gitignore.txt

c)
  • git.ignore

d)
  • ignore.git

20.

Which of the following is not true in terms of git

a)
  • Staging area

b)
  • Fork

c)
  • Stem

d)
  • Push

21.

How do you save the current state of your code into the git version control?

a)
  • Using git stage

b)
  • Using git commit

c)
  • Using git push

d)
  • Using git add

22.

Which of the following is not a git command?

a)
  • git clean

b)
  • git clone

c)
  • .git commit

d)
  • Git roll

23.

Which of these git client commands creates a copy of the repository?

a)
  • clone

b)
  • update

c)
  • import

d)
  • checkout

24.

Which one of the following is not part of the data structure of a git repository?

a)
  • Head pointer

b)
  • Body element

c)
  • Branch pointer

d)
  • Commit object

25.

Command is useful for getting a high-level overview of the project history?

a)
  • git rebase

b)
  • git reset --hard

c)
  • git log --author=""

d)
  • git log --oneline

26.

Which command is used to show limited number of commits?

a)
  • git fetch

b)
  • git config

c)
  • git log -n

d)
  • None of the above

27.

Command line environment is used for interacting with git?

a)
  • Git Lab

b)
  • GitHub

c)
  • Git Boot

d)
  • Git Bash

28.

Which command creates an empty git repository in the specified directory?

a)
  • git init .

b)
  • git log ..

c)
  • git reset

d)
  • None of the above

29.

What is the purpose of using 'git pull' command?

a)

  • To fetch changes from the remote repository and merge them into the current branch.

b)

  • To push changes to the remote repository.

c)

  • To create a new branch.

d)

  • To delete the current branch.

30.

Which command is used to discard changes in the working directory?

a)

  • git reset

b)

  • git checkout

c)

  • git revert

d)

  • git discard

31.

What is the purpose of 'git branch' command?

a)

  • To list all the branches in the repository.

b)

  • To create a new branch.

c)

  • To delete a branch.

d)

  • To merge branches.

32.

What is the purpose of 'git status' command?

a)

  • To check the status of the working directory and staging area.

b)

  • To create a new branch.

c)

  • To delete a branch.

d)

  • To merge branches.

33.

Which command is used to create a new branch in Git?

a)

  • git branch <branch_name>

b)

  • git checkout -b <branch_name>

c)

  • git commit -m "New branch"

d)

  • git merge <branch_name>

34.

What is the purpose of 'git diff' command?

a)

  • To show changes between the working directory and the staging area.

b)

  • To create a new branch.

c)

  • To delete a branch.

d)

  • To merge branches.

35.

What is the purpose of 'git fetch' command?

a)

  • To download objects and refs from another repository.

b)

  • To create a new branch.

c)

  • To delete a branch.

d)

  • To merge branches.

36.

What is the significance of 'git rebase' command in Git?

a)

  • To reapply commits on top of another base tip.

b)

  • To create a new branch.

c)

  • To delete a branch.

d)

  • To merge branches.

37.

What is the use of 'git stash' command in Git?

a)

  • To temporarily store changes that you don't want to commit immediately.

b)

  • To create a new branch.

c)

  • To delete a branch.

d)

  • To merge branches.

38.

What is the use of 'git remote' command in Git?

a)

To manage set of tracked repositories.

b)

To create a new branch.

c)

To delete a branch.

d)

To merge branches.

39.

What is the significance of 'git cherry-pick' command in Git?

a)

To apply the changes introduced by some existing commits.

b)

To create a new branch.

c)

To delete a branch.

d)

To merge branches.

40.

What does 'git remote -v' command do in Git?

a)

To view the remote URLs along with their corresponding shortnames.

b)

To create a new branch.

c)

To delete a branch.

d)

To merge branches.

41.

What is the significance of 'git bisect' command in Git?

a)

To help find the commit that introduced a bug.

b)

To create a new branch.

c)

To delete a branch.

d)

To merge branches.

42.

Where are files stored before they are committed to the local repository?

a)

git

b)

saved files

c)

git documents

d)

staging area/index

43.

Which command can be used to list the branches that have been merged into the currently checked-out branch?

a)

git master --status

b)

git branch --merged

c)

git branch --status

d)

git status --merged

44.

What is version control?

a)

a type of architecture used to manage large databases

b)

a system that shows, tracks, and controls changes to a set of files over time

c)

a type of software that links a project with a GitHub repository

d)

a programmatic design pattern used to manage code between multiple engineering teams

45.

What is the command to delete the branch "new-email"?

a)

git gone new-email

b)

git delete new-email

c)

git branch -d new-email

d)

git delete branch new-email

46.

What is the command to add the remote repository "https://abc.xyz/d/e.git" as "origin"?

a)

git remote add origin https://abc.xyz/d/e.git

c)
47.

What can't be cryptographically signed in Git?

a)

Tags

b)

Branches

c)

Merge commits

d)

Regular commits

48.

Git attributes are used to__________

a)

overwrite global configuration

b)

control access permissions for refs

c)

add metadata to some files or objects

d)

specify some settings for particular files or types of files in the repository

49.

Git reflog is used to__________?

a)

track authors of changes

b)

store the history of merge conflicts

c)

store the history of updates of refs

d)

synchronize with remote-tracking branches

50.

What does a " " sign at the beginning of a refspec mean?

a)

That authentication will be required

b)

That the remote branch may not exist

c)

That there is a one-to-many mapping between refs

d)

That overwriting (non-fast-forward) updates are allowed

51.

Which command is used to create a new Docker image?

a)

docker build

b)

docker pull

c)

docker run

d)

docker commit

52.

What does the Dockerfile contain?

a)

Compiled source code

b)

Docker images

c)

Binary data

d)

Instructions for building a Docker image

53.

What is a Docker container?

a)

A running instance of a Docker image

b)

A lightweight virtual machine

c)

A storage volume

d)

A service running on Docker Swarm

54.

What command is used to list all running Docker containers?

a)

docker list

b)

docker show

c)

docker ps

d)

docker display

55.

Which command pulls an image from Docker Hub?

a)

docker get

b)

docker fetch

c)

docker pull

d)

docker download

56.

How can you run a command inside an existing Docker container?

a)

docker exec

b)

docker attach

c)

docker run

d)

docker enter

57.

Which command is used to remove a Docker image?

a)

docker rmi

b)

docker remove

c)

docker del

d)

docker erase

58.

What is Docker Compose?

a)

A scripting language for Docker

b)

A continuous integration tool for Docker

c)

A tool for defining and running multi-container Docker applications

d)

A Docker CLI plugin

59.

Which of the following is the default registry used by Docker?

a)

Kubernetes Hub

b)

Container Store

c)

Docker Hub

d)

Image Hub

60.

What is the primary purpose of the Docker Engine?

a)

To provide a graphical visualization of containers

b)

To build and run containers

c)

To manage databases inside containers

d)

To interface with Kubernetes