Loading

Quipoin Menu

Learn • Practice • Grow

python / Installation and Setup
mcq
Direction: Choose the correct option

Q1.

Where can you download the official Python installer?
A. pypi.org
B. python.org
C. python-install.com
D. python.com
Direction: Choose the correct option

Q2.

Which command checks the installed Python version?
A. python --version
B. python version
C. python -v
D. Both A and B
Direction: Choose the correct option

Q3.

What is pip in Python?
A. A package installer for Python
B. A Python debugger
C. A Python IDE
D. A Python compiler
Direction: Choose the correct option

Q4.

How do you install a package named 'requests' using pip?
A. python install requests
B. pip get requests
C. install requests
D. pip install requests
Direction: Choose the correct option

Q5.

What is a virtual environment in Python?
A. An isolated environment for Python projects to manage dependencies
B. A cloud-based Python interpreter
C. A virtual machine for running Python
D. A Python development server
Direction: Choose the correct option

Q6.

Which command creates a virtual environment named 'venv'?
A. python -m venv venv
B. pip venv create
C. python --venv venv
D. virtualenv venv
Direction: Choose the correct option

Q7.

How do you activate a virtual environment on Windows?
A. activate venv
B. source venv/bin/activate
C. venv activate
D. venvScriptsactivate
Direction: Choose the correct option

Q8.

What is the purpose of a requirements.txt file?
A. To store environment variables
B. To list the dependencies of a Python project
C. To specify Python version
D. To configure the Python interpreter
Direction: Choose the correct option

Q9.

How do you install packages listed in a requirements.txt file?
A. pip get requirements.txt
B. pip -r install
C. pip install -r requirements.txt
D. pip install requirements.txt
Direction: Choose the correct option

Q10.

What is PyPI?
A. A Python IDE
B. A Python compiler
C. The Python Package Index
D. A Python testing framework