Table of Contents
ToggleDocker (Q1–Q17)
1. What is Docker primarily used for?
A. Virtual machines
B. Containerization
C. Networking
D. Monitoring
✅ Answer: B
2. Which file is used to build a Docker image?
A. docker.yml
B. Dockerfile
C. image.json
D. build.txt
✅ Answer: B
3. Command to list running containers?
A. docker ps
B. docker list
C. docker run
D. docker show
✅ Answer: A
4. What is a Docker image?
A. Running container
B. Blueprint for containers
C. Log file
D. Volume
✅ Answer: B
5. Default Docker registry?
A. GitHub
B. Docker Hub
C. AWS
D. Nexus
✅ Answer: B
6. Command to build image?
A. docker run
B. docker build
C. docker create
D. docker make
✅ Answer: B
7. Docker container is:
A. Lightweight
B. Heavy VM
C. OS
D. Kernel
✅ Answer: A
8. Command to stop container?
A. docker halt
B. docker kill
C. docker stop
D. docker end
✅ Answer: C
9. Docker uses which OS feature?
A. Hypervisor
B. Namespaces
C. BIOS
D. Kernel panic
✅ Answer: B
10. Command to remove container?
A. docker delete
B. docker rm
C. docker remove
D. docker clear
✅ Answer: B
11. Dockerfile instruction to run command?
A. EXEC
B. RUN
C. CMD
D. START
✅ Answer: B
12. Expose port in Dockerfile?
A. PORT
B. EXPOSE
C. OPEN
D. MAP
✅ Answer: B
13. Persist data in Docker?
A. Cache
B. Volume
C. Layer
D. Stack
✅ Answer: B
14. Command to pull image?
A. docker get
B. docker fetch
C. docker pull
D. docker load
✅ Answer: C
15. What is Docker Compose?
A. Build tool
B. Multi-container tool
C. Debugger
D. CLI editor
✅ Answer: B
16. File for Docker Compose?
A. docker.json
B. docker-compose.yml
C. compose.txt
D. stack.yml
✅ Answer: B
17. Command to run container?
A. docker go
B. docker run
C. docker start
D. docker init
✅ Answer: B
Git (Q18–Q34)
18. Git is a:
A. CI tool
B. Version control system
C. Container tool
D. OS
✅ Answer: B
19. Initialize repo?
A. git start
B. git init
C. git create
D. git new
✅ Answer: B
20. Clone repo?
A. git copy
B. git clone
C. git fork
D. git pull
✅ Answer: B
21. Stage changes?
A. git commit
B. git add
C. git push
D. git stage
✅ Answer: B
22. Save changes?
A. git save
B. git commit
C. git store
D. git push
✅ Answer: B
23. Send changes to remote?
A. git send
B. git push
C. git upload
D. git sync
✅ Answer: B
24. Get updates?
A. git fetch/pull
B. git get
C. git sync
D. git update
✅ Answer: A
25. Branch command?
A. git branch
B. git fork
C. git split
D. git checkout
✅ Answer: A
26. Switch branch?
A. git move
B. git checkout
C. git change
D. git switch
✅ Answer: B
27. Merge branches?
A. git combine
B. git merge
C. git join
D. git attach
✅ Answer: B
28. Undo commit?
A. git reset
B. git undo
C. git revert
D. Both A & C
✅ Answer: D
29. View history?
A. git status
B. git log
C. git list
D. git show
✅ Answer: B
30. Check status?
A. git check
B. git status
C. git view
D. git info
✅ Answer: B
31. Remote repo name default?
A. main
B. origin
C. master
D. upstream
✅ Answer: B
32. Create branch?
A. git new
B. git branch
C. git create
D. git fork
✅ Answer: B
33. Delete branch?
A. git remove
B. git branch -d
C. git delete
D. git rm
✅ Answer: B
34. Pull request is used in?
A. GitHub
B. Docker
C. Jenkins
D. Linux
✅ Answer: A
Jenkins (Q35–Q50)
35. Jenkins is a:
A. Container tool
B. CI/CD tool
C. Database
D. OS
✅ Answer: B
36. Jenkins is written in:
A. Python
B. Java
C. Go
D. C++
✅ Answer: B
37. Jenkins job is:
A. Task/project
B. File
C. Image
D. Script
✅ Answer: A
38. Pipeline as code file?
A. pipeline.yml
B. Jenkinsfile
C. build.yml
D. job.txt
✅ Answer: B
39. Jenkins uses which server?
A. Apache
B. Tomcat
C. Nginx
D. IIS
✅ Answer: B
40. Plugin purpose?
A. Extend features
B. Debug
C. Compile
D. Monitor
✅ Answer: A
41. Trigger build automatically?
A. Webhooks
B. Cron
C. Both
D. None
✅ Answer: C
42. Jenkins pipeline types?
A. Scripted
B. Declarative
C. Both
D. None
✅ Answer: C
43. SCM in Jenkins stands for:
A. Source Code Management
B. System Control Mode
C. Secure Code Mode
D. Software Config Map
✅ Answer: A
44. Build means:
A. Compile code
B. Run tests
C. Package app
D. All
✅ Answer: D
45. Jenkins agent is:
A. Worker node
B. Plugin
C. Script
D. UI
✅ Answer: A
46. Store credentials in:
A. Config file
B. Credentials Manager
C. Code
D. Script
✅ Answer: B
47. Blue Ocean is:
A. Theme
B. UI for Jenkins
C. Plugin
D. Both B & C
✅ Answer: D
48. Jenkins supports which VCS?
A. Git
B. SVN
C. Both
D. None
✅ Answer: C
49. CI stands for:
A. Continuous Integration
B. Code Integration
C. Central Integration
D. Continuous Input
✅ Answer: A
50. CD stands for:
A. Continuous Delivery/Deployment
B. Code Deploy
C. Continuous Data
D. Control Deploy
✅ Answer: A
Conclusion
Mastering foundational DevOps tools like Docker, Git, and Jenkins is essential for anyone starting or growing in the DevOps journey. This quiz not only tests your knowledge but also highlights the core concepts behind containerization, version control, and continuous integration/continuous delivery (CI/CD).
If you scored well, it shows you have a solid grasp of the basics. If not, that’s perfectly fine DevOps is a continuous learning process, and every mistake is an opportunity to improve. Revisit the questions, explore the tools deeper, and try applying them in real-world projects.
As the DevOps ecosystem keeps evolving, strengthening your fundamentals will make it easier to learn advanced tools and practices in the future. Keep practicing, keep building, and most importantly keep automating!



