0% found this document useful (0 votes)
44 views13 pages

Git Hub Assessment

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views13 pages

Git Hub Assessment

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 13

1) You have joined a development team that uses Git version control and collaboration.

To start
contributing to the project, what Git operation would you most likely invoke first?

SELECT THE CORRECT ANSWER

A. Clone

B. Expert

C. Checkout

D. Revert

Correct Option:A

2) Which issue tracking system is linked with GitLab by default?

SELECT THE CORRECT ANSWER

A. JIRA

B. Bugzilla

C. GLPI

D. None of the above

Correct Option:D

3) Which of the following is called a dumb protocol?

SELECT THE CORRECT ANSWER

2. Git

3. HTTP

4. SSH

5. All of the above

Correct Option:B

4) Which of the these best describes Git?

6. SELECT THE CORRECT ANSWER

7. Integrated Development Environment

8. Distributed Version Control System


9. Issue Tracking System

10. Web-Based Repository Hosting Service

Correct Option:B

5) Which Git command begins tracking a new file?

SELECT THE CORRECT ANSWER

11. Begin

12. Add

13. Addfile

14. Track

Correct Option:B

6) Which of the these best describes Git?

SELECT THE CORRECT ANSWER

15. Integrated Development Environment

16. Distributed Version Control System

17. Issue Tracking System

18. Web-Based Repository Hosting Service

Correct Option:B

7) Which user should be created first during the setup of SSH?

SELECT THE CORRECT ANSWER

19. Root

20. Admin

21. Git

22. None of the above

Correct Option:C

8) Which strategy is used by Git for merging two branches?


SELECT THE CORRECT ANSWER

23. Octopus

24. Recursive

25. FIFO (FIrst in First out)

26. LIFO (Last in First out)

Correct Option:B

9) You have a local repository, but other team members have pushed changes into the remote
repository. What Git operation will you use to download those changes into your working copy?

SELECT THE CORRECT ANSWER

27. Checkout

28. Commit

29. Export

30. Pull

Correct Option:D

10) _____ help files to store all user's public keys.

SELECT THE CORRECT ANSWER

31. ssh_keys

32. ssh_key

33. authorized_keys

Correct Option:C

11) What type of access does each developer have for their own public repository?

SELECT THE CORRECT ANSWER

34. Write

35. Read

36. Copy

37. Depends on the data


Correct Option:A

12) Which network protocol is used to transfer data by Git?

SELECT THE CORRECT ANSWER

38. SSH

39. HTTP

40. Git

41. All of the above

Correct Option:D

13) If you want to make your local repository reflect the changes that have been made in a remote
repository, then you should run the pull command. Is the statement true or false?

SELECT THE CORRECT ANSWER

42. TRUE

43. FALSE

Correct Option: A

14) What is the first step in Git workflow?

SELECT THE CORRECT ANSWER

44. Add snapshots to staging area

45. Add commit

46. Stage the file

47. Depends upon the data

Correct Option: C

15) What error will you receive if you push master-branch changes to a remote repository and
someone else pushes their changes to that same branch, while you are making changes?

SELECT THE CORRECT ANSWER

48. 404

49. Rejected
50. 404 Bad Request

51. Access Denied

Correct Option:B

16) Where in commit history are the stable branches usually located?

SELECT THE CORRECT ANSWER

52. Middle of the line

53. Top of the line

54. Down the line

55. Depends upon the data

Correct Option:C

17) What is the easiest way for an anonymous public to have a read access for a Git project?

SELECT THE CORRECT ANSWER

56. Run a static web server with its document root to Git repository

57. SSH access

58. Password protected access

59. None of the above

Correct Option:A

18) Which flag lets the user type a commit message inline with the commit command by specifying
it?

SELECT THE CORRECT ANSWER

60. -m

61. -l

62. -v

63. -x

Correct Option:A

19) _____ to git commit, will modify the last commit message.
SELECT THE CORRECT ANSWER

64. -change

65. -amend

66. -replace

67. -update

Correct Option:B

20) Which of these terms best describe GitHub?

SELECT THE CORRECT ANSWER

68. Integrated Development Environment

69. Distributed Version Control System

70. Issue Tracking System

71. Web-Based Repository Hosting Service

Correct Option:D

21) Which Git command changes when the HEAD pointer points and modifies the content of the
working directory?

SELECT THE CORRECT ANSWER

72. checkout

73. merge

74. mv

75. pull

Correct Option:A

22) Which tag command option creates an annotated tag in Git?

SELECT THE CORRECT ANSWER

76. -p

77. -m

78. -l
79. -a

Correct Option:D

23) What language is used in Git?

SELECT THE CORRECT ANSWER

80. C++

81. C

82. JAVA

83. C#

Correct Option:B

24) Which command gets a copy of an existing Git repository?

SELECT THE CORRECT ANSWER

84. Clone

85. Copy

86. Replicate

87. Duplicate

Correct Option:A

25) s it possible to perform any type of OAuth authorization via command line with the Bitbucket
authorization API?

SELECT THE CORRECT ANSWER

88. Yes

89. No

Correct Option:A

26) Which of the following is not a part of the data structure of a Git repository?

SELECT THE CORRECT ANSWER

90. Body element

91. Branch pointer


92. Commit object

93. HEAD pointer

Correct Option:A

27) Which of the following project problems does Git helps to resolve?

SELECT THE CORRECT ANSWER

94. Recover old versions of the project

95. Develop multiple versions of a project

96. Merge changes to a project

97. All of the above

Correct Option:D

28) If you want to make changes to your team's project and don't want it to impact the rest of the
team, you should implement changes in_________.

SELECT THE CORRECT ANSWER

98. Tag

99. Trunk

100. Root

101. Branch

Correct Option:D

29) Which Git command automatically writes references?

SELECT THE CORRECT ANSWER

102. Update

103. Add

104. Push

105. List

Correct Option:B

30) What is usually the extension of file which has the public key?
SELECT THE CORRECT ANSWER

106. key

107. ssh

108. pub

109. pk

Correct Option:C

31) Which character placed at the end of a reference, refers to the first parent of that commit?

SELECT THE CORRECT ANSWER

110. "

111. ?

112. *

113. ^

Correct Option:D

32) What is the difference between Git and SVN?

SELECT THE CORRECT ANSWER

114. Git is less preferred for handling extremely large files or frequently changing binary files,
while SVN can handle multiple projects stored in the same repository.

115. Git does not support commits across multiple branches or tags. Subversion allows the
creation of folders at any location in the repository layout.

116. Git is unreachable while Subversion allows committers to treat a tag as a branch and to
create multiple versions under a tag root.

117. None of the above

Correct Option: A

33) When you work on a team with multiple Bitbucket users, you'll want to work on your own set of
code separately from the main codebase. What allows you to do so?

SELECT THE CORRECT ANSWER

118. Branch
119. Pull

120. Merge

121. None of the above

Correct Option:A

34) The Git clone command does which of the following?

SELECT THE CORRECT ANSWER

122. Creates a working directory

123. Makes a local copy of the repository

124. Commits a new branch

125. A and B

Correct Option: D

35) Which command will modify the last commit message?

SELECT THE CORRECT ANSWER

126. git commit amend

127. git commit -amend

128. git commit -a

129. None of the above

Correct Option: B

36) How is a data stored in Git?

SELECT THE CORRECT ANSWER

130. File

131. Folder

132. Snapshot

133. None of the above

Correct Option: C
37) __________command checks the changes made to the file.

SELECT THE CORRECT ANSWER

134. $ git checkout

135. $ git status

136. $ git push

137. $ git config

Correct Option: B

38) What is GitLab?

SELECT THE CORRECT ANSWER

138. Internal management

139. Self-hosted repository

140. DevOps life cycle tool

141. All of the above

Correct Option: D

39) GitLab is not faster than GitHub while pushing and pulling the repositories. Is this statement true
or false?

SELECT THE CORRECT ANSWER

142. TRUE

143. FALSE

Correct Option:A

40) What is created when checking out a local branch from a remote branch?

SELECT THE CORRECT ANSWER

144. New local branch

145. Tracking branch

146. New remote branch

147. Depends on the data


Correct Option: B

41) Which of the following libraries does Git depend on?

SELECT THE CORRECT ANSWER

148. zlib

149. openssl

150. libiconv

151. All of the above

Correct Option:D

42) Which command provides the list of commits that are made in the last two weeks?

SELECT THE CORRECT ANSWER

152. git log -since-weeks=2

153. git log -weeks-since=2

154. git log -since=2.weeks

155. git log -since=2.w

Correct Option: C

43) The ___________ command lets you list the project history, filter it, and search for specific
changes.

SELECT THE CORRECT ANSWER

156. git log

157. git status

158. git checkout

159. None of the above

Correct Option: A

44) Where is the metadata of the project stored?

SELECT THE CORRECT ANSWER

160. The working directory


161. The staging area

162. The Git directory

163. None of the above

Correct Option: C

45) _________command removes untracked files from your working directory.

SELECT THE CORRECT ANSWER

164. git commit

165. git clean

166. git reset

167. git clean -f<path>

Correct Option:B

You might also like