Which Discussion category allows a user to mark a response as an answer?
Options:
A.
Q & A
B.
Ideas
C.
General
D.
Polls
Answer:
A
Question 30
Pull requests can only be created between two branches that are:
Options:
A.
Authored by the same user.
B.
Authored by different users.
C.
The same.
D.
Different.
Answer:
D
Explanation:
Pull requests are created to propose changes from one branch to another. These branches must be different; otherwise, there would be no changes to propose. Typically, pull requests are made from a feature or topic branch to a main branch (such as main or master ), allowing for code review and integration before the changes are merged.
=================
Question 31
What best describes Markdown?
Options:
A.
Markup language
B.
Programming language
C.
Scripting language
D.
Version control system
E.
Containerization solution
Answer:
A
Explanation:
Markdown is a lightweight markup language with plain-text formatting syntax. It is designed to be easy to write and read in its raw form, and it can be converted into HTML and other formats. Markdown is commonly used for formatting readme files, writing messages in online discussion forums, and creating rich text documents.
Markup Language:
Option A is correct because Markdown is indeed a markup language. It is not a programming language, scripting language, version control system, or containerization solution.
Incorrect Options:
Option B is incorrect because Markdown is not a programming language; it does not involve control structures or variables.
Option C is incorrect because Markdown is not used for scripting or automation.
Option D is incorrect because Markdown does not manage version control.
Option E is incorrect because Markdown is not related to containerization technologies like Docker.
How can a user create a repository template, and what permissions are required?
Options:
A.
With Admin permissions, navigate to Repository settings and select Template Repository.
B.
With Maintain permissions, navigate to Organization settings, select the repository, and choose Template Repository.
C.
With Admin permissions, navigate to Organization settings, select the repository, and choose Template Repository.
D.
With Maintain permissions, navigate to Repository settings and select Template Repository.
Answer:
A
Explanation:
Creating a repository template in GitHub requires specific steps and permissions:
Creating a Repository Template:
Option A is correct because a user with Admin permissions can navigate to the repository ' s settings and enable the " Template Repository " option. This allows other users to generate new repositories from this template, which includes all branches, tags, and file history.
Other Options:
Option B is incorrect because " Maintain " permissions do not allow the creation of repository templates, and the option is not found in Organization settings but in the repository settings.
Option C is incorrect because the " Template Repository " option is in the repository settings, not in Organization settings.
Option D is incorrect because " Maintain " permissions do not grant the ability to create a repository template.
[References:, GitHub Docs: Creating a Template Repository, , =================, ]