Skip to content

Commit

Permalink
feat: add easy quiz
Browse files Browse the repository at this point in the history
  • Loading branch information
neiroc committed Dec 4, 2024
1 parent b975fc4 commit b3dc50b
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
- Dockerfile
- Docker Compose
- Exercises
- Questions

#### [Quiz](./quiz/docker-questions.md)

## Day 2

Expand Down
12 changes: 12 additions & 0 deletions quiz/docker-answers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Docker Quiz Answers

### 1. Correct Answer: B
### 2. Correct Answer: A
### 3. Correct Answer: B
### 4. Correct Answer: A
### 5. Correct Answer: C
### 6. Correct Answer: B
### 7. Correct Answer: A
### 8. Correct Answer: B
### 9. Correct Answer: B
### 10. Correct Answer: B
81 changes: 81 additions & 0 deletions quiz/docker-questions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Docker Quiz Questions

## Easy

### 1. What is Docker primarily used for?
A. Virtualizing operating systems
B. Building and running containerized applications
C. Managing network infrastructure
D. Automating software testing

---

### 2. Which command is used to list all running containers?
A. `docker ps`
B. `docker run`
C. `docker images`
D. `docker inspect`

---

### 3. What does the `docker pull` command do?
A. Pushes a local image to a remote registry
B. Downloads an image from a remote registry
C. Deletes an image from the local system
D. Builds an image from a Dockerfile

---

### 4. What is the default Docker network type?
A. Bridge
B. Host
C. None
D. Overlay

---

### 5. How do you create a new Docker image from a running container?
A. `docker build`
B. `docker save`
C. `docker commit`
D. `docker export`

---

### 6. What is a Dockerfile used for?
A. Storing container logs
B. Defining the steps to build a Docker image
C. Running commands inside a container
D. Managing Docker volumes

---

### 7. Which of the following commands removes a Docker container?
A. `docker rm`
B. `docker stop`
C. `docker delete`
D. `docker unmount`

---

### 8. What does the `docker run` command do?
A. Stops a running container
B. Creates and starts a new container
C. Pulls an image from the Docker registry
D. Lists all available images

---

### 9. Which Docker network allows containers to communicate with external networks?
A. Host
B. Bridge
C. None
D. Overlay

---

### 10. How can you copy a file from the host system to a running container?
A. `docker copy`
B. `docker cp`
C. `docker scp`
D. `docker transfer`

0 comments on commit b3dc50b

Please sign in to comment.