- Which tool is used to install Python packages?
View Answer
Correct answer: A — pip
- What will be printed?
1 bash 2 pip --version View Answer
Correct answer: A — pip version string
- Which command installs a package using pip?
View Answer
Correct answer: A — pip install package
- What is the output of pip install requests?
View Answer
Correct answer: A — Installs requests library
- Which command shows installed packages?
View Answer
Correct answer: A — pip list
- What will be printed?
1 bash 2 pip list | grep requests View Answer
Correct answer: A — requests version
- Which command shows package details?
View Answer
Correct answer: A — pip show package
- What is the output of pip show numpy?
View Answer
Correct answer: A — Package details
- Which command exports installed packages?
View Answer
Correct answer: A — pip freeze > requirements.txt
- What will be printed?
1 bash 2 pip freeze | head -1 View Answer
Correct answer: A — First package with version
- Which module creates virtual environments?
View Answer
Correct answer: A — venv
- What is the output of python -m venv env?
View Answer
Correct answer: A — Creates env directory
- Which command activates venv in Windows?
View Answer
Correct answer: A — env\Scripts\activate
- What will be printed?
1 bash 2 env\Scripts\activate View Answer
Correct answer: A — Activates venv
- Which command activates venv in Linux/Mac?
View Answer
Correct answer: A — source env/bin/activate
- What is the output of source env/bin/activate?
View Answer
Correct answer: A — Activates venv
- Which command deactivates venv?
View Answer
Correct answer: A — deactivate
- What will be printed?
1 bash 2 deactivate View Answer
Correct answer: A — Deactivates venv
- Which tool is used for containerization?
View Answer
Correct answer: A — Docker
- What is the output of docker --version?
View Answer
Correct answer: A — Docker version string
- Which command builds Docker image?
View Answer
Correct answer: A — docker build
- What will be printed?
1 bash 2 docker build -t eduinq:latest . View Answer
Correct answer: A — Builds image eduinq:latest
- Which command runs Docker container?
View Answer
Correct answer: A — docker run
- What is the output of docker run hello-world?
View Answer
Correct answer: A — Runs hello-world container
- Which command lists Docker containers?
View Answer
Correct answer: A — docker ps
- What will be printed?
1 bash 2 docker ps -a View Answer
Correct answer: A — All containers list
- Which command lists Docker images?
View Answer
Correct answer: A — docker images
- What is the output of docker images?
View Answer
Correct answer: A — List of images
- Which file defines Docker build instructions?
View Answer
Correct answer: A — Dockerfile
- What will be printed?
1 dockerfile 2 FROM python:3.9 View Answer
Correct answer: A — Base image python:3.9
- Which command removes Docker container?
View Answer
Correct answer: A — docker rm
- What is the output of docker rm container_id?
View Answer
Correct answer: A — Removes container
- Which command removes Docker image?
View Answer
Correct answer: A — docker rmi
- What will be printed?
1 bash 2 docker rmi image_id View Answer
Correct answer: A — Removes image
- Which command pushes image to Docker Hub?
View Answer
Correct answer: A — docker push
- What is the output of docker push eduinq:latest?
View Answer
Correct answer: A — Pushes image eduinq:latest
- Which command pulls image from Docker Hub?
View Answer
Correct answer: A — docker pull
- What will be printed?
1 bash 2 docker pull python:3.9 View Answer
Correct answer: A — Pulls python:3.9 image
- Which command executes command inside container?
View Answer
Correct answer: A — docker exec
- What is the output of docker exec -it container_id bash?
View Answer
Correct answer: A — Opens bash shell inside container
- Which command starts stopped container?
View Answer
Correct answer: A — docker start
- What will be printed?
1 bash 2 docker start container_id View Answer
Correct answer: A — Starts container
- Which command stops running container?
View Answer
Correct answer: A — docker stop
- What is the output of docker stop container_id?
View Answer
Correct answer: A — Stops container
- Which command kills running container immediately?
View Answer
Correct answer: A — docker kill
- What will be printed?
1 bash 2 docker kill container_id View Answer
Correct answer: A — Kills container immediately
- Which command shows container logs?
View Answer
Correct answer: A — docker logs
- What is the output of docker logs container_id?
View Answer
Correct answer: A — Shows container logs
- Which command inspects container details?
View Answer
Correct answer: A — docker inspect
- What will be printed?
1 bash 2 docker inspect container_id View Answer
Correct answer: A — JSON details of container