0% found this document useful (0 votes)
19 views5 pages

Ans

Uploaded by

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

Ans

Uploaded by

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

Name :

1. Which command is used to initialize a new Git repository?

 A) git init
 B) git start
 C) git create
 D) git new

2. How do you stage a file in Git?

 A) git stage <filename>


 B) git add <filename>
 C) git commit <filename>
 D) git push <filename>

3. Which command is used to view the commit history in Git?

 A) git status
 B) git log
 C) git show
 D) git diff

4. What is the purpose of the `.gitignore` file?

 A) To track file changes


 B) To list files and directories Git should ignore
 C) To remove files from Git
 D) To manage branches

5. How do you clone a Git repository from GitHub to your local machine?

 A) git pull <repo_url>


 B) git clone <repo_url>
 C) git copy <repo_url>
 D) git checkout <repo_url>

6. Which Git command removes a file from both the staging area and the working directory?

 A) git delete
 B) git rm
 C) git remove
 D) git clear

7. What does `git merge` do?

 A) Creates a new branch


 B) Merges changes from one branch into another
 C) Clones a repository
 D) Deletes a branch

8. What is the default branch name in a new GitHub repository as of 2023?

 A) master
 B) main
 C) dev
 D) origin

9. What happens when you execute `git pull`?

 A) Fetches and merges changes from a remote repository


 B) Commits changes to the remote repository
 C) Deletes the current branch
 D) Pushes changes to the remote repository

10. What is a 'pull request' in GitHub?

 A) A request to pull files from a remote repository


 B) A request to merge your changes into another branch
 C) A command to update your repository
 D) A tool for creating issues

11. Which of the following is a feature of GitHub Pages?

 A) Creating databases
 B) Hosting static websites directly from a GitHub repository
 C) Running virtual machines
 D) Managing continuous integration

12. How do you fork a repository on GitHub?

 A) By cloning the repository


 B) By clicking the 'Fork' button on the repository page
 C) By creating a new repository
 D) By running the git fork command

13. Which feature allows you to discuss code changes before merging them in GitHub?

 A) Issues
 B) Commits
 C) Branches
 D) Pull Requests
14. How do you make a repository private on GitHub?

 A) Add a `.private` file to the repository


 B) Check the 'Private' option when creating the repository
 C) Use the `git private` command
 D) Recreate the repository

15. What does DevOps primarily focus on?

 A) Automating deployment
 B) Bridging the gap between development and operations teams
 C) Creating new programming languages
 D) Writing documentation

16. What is Continuous Integration (CI) in DevOps?

 A) Manually merging code into the repository


 B) Frequently integrating code changes into a shared repository
 C) Testing code after deployment
 D) Managing database backups

17. Which of these is a continuous integration tool commonly used in DevOps?

 A) Jenkins
 B) WordPress
 C) React
 D) MongoDB

18. Which of the following is a containerization tool often used in DevOps?

 A) Kubernetes
 B) Docker
 C) AWS Lambda
 D) Azure Functions

19. What is Infrastructure as Code (IaC) in DevOps?

 A) Writing code for automating deployments


 B) Managing infrastructure through code
 C) Creating user interfaces
 D) Writing automated tests

20. What is the primary benefit of cloud computing?

 A) Higher costs
 B) On-demand resource availability and scalability
 C) Limited access to resources
 D) Complex infrastructure management

21. Which of the following is an example of a cloud service provider?

 A) Git
 B) AWS
 C) Linux
 D) Docker

22. What does multi-tenancy mean in cloud computing?

 A) Running multiple apps in parallel


 B) A single instance of a service serving multiple customers
 C) Only one customer per cloud
 D) Running virtual machines

23. Which of the following is an example of Infrastructure as a Service (IaaS)?

 A) Microsoft Office 365


 B) Google App Engine
 C) Amazon EC2
 D) Dropbox

24. Which of these cloud deployment models combines on-premises infrastructure with
public cloud services?

 A) Private Cloud
 B) Public Cloud
 C) Hybrid Cloud
 D) Community Cloud

25. Which AWS service provides scalable virtual servers?

 A) Amazon S3
 B) Amazon EC2
 C) AWS Lambda
 D) Amazon RDS

26. What is Amazon S3 used for?

 A) Storing and retrieving large amounts of data


 B) Running virtual servers
 C) Monitoring infrastructure
 D) Managing databases
27. What is AWS Lambda used for?

 A) Running code without provisioning servers


 B) Storing backups
 C) Deploying virtual machines
 D) Managing databases

28. Which AWS service automatically distributes incoming application traffic across
multiple targets?

 A) Amazon CloudFront
 B) AWS Load Balancer
 C) Amazon Elastic Load Balancing (ELB)
 D) Amazon Route 53

29. What is Azure Virtual Machines (VMs) used for?

 A) Running cloud-based databases


 B) Hosting virtual machines in the cloud
 C) Managing application deployments
 D) Automating code deployments

30. Which Azure service is used to store unstructured data like images and videos?

 A) Azure Blob Storage


 B) Azure Virtual Machines
 C) Azure SQL Database
 D) Azure Active Directory

31. What is Azure Functions?

 A) A service for running serverless code


 B) A platform for hosting virtual machines
 C) A service for managing databases
 D) A tool for creating containers

32. Which service provides identity and access management in Azure?

 A) Azure Blob Storage


 B) Azure Active Directory
 C) Azure Kubernetes Service
 D) Azure DevOps

You might also like