โ† All POC Flashcard Decks

Implementation & Configuration Flashcards

7 cards from real POC practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Implementation & Configuration flashcards as text
  1. What is the correct way to pin a package to an exact version in `requirements.txt`?

    Answer: package==1.2.3

    The `==` operator in `requirements.txt` pins to an exact version, ensuring reproducible installs.

  2. What does `pip install --upgrade pip` do?

    Answer: Updates pip itself to the latest available version

    The `--upgrade` flag tells pip to upgrade the named package (pip itself in this case) to the newest available version.

  3. In Python, which module is used to run external shell commands and capture their output?

    Answer: subprocess

    The `subprocess` module provides `run()`, `Popen()`, and related tools for spawning processes and capturing stdout/stderr.

  4. What does `python setup.py install` do compared to `pip install .`?

    Answer: `setup.py install` installs into site-packages directly; `pip install .` builds a wheel first and tracks metadata better

    `pip install .` creates a proper wheel and records installation metadata, making uninstallation clean; `setup.py install` copies files directly without full pip metadata.

  5. Which file, placed at the root of a package, is read by PyPI and displayed as the package description on the package page?

    Answer: README.md (or README.rst) referenced in setup.py/pyproject.toml

    The README file (Markdown or reStructuredText) is referenced via `long_description` in packaging config and rendered on the PyPI project page.

  6. What is the purpose of entry points defined in `setup.py` or `setup.cfg`?

    Answer: They define command-line scripts and plugin hooks that pip installs automatically

    Entry points allow packages to expose callable functions as CLI scripts or plugin hooks discoverable by other packages.

  7. What does `pip check` do?

    Answer: Checks for broken or missing dependencies among installed packages

    `pip check` inspects the installed environment and reports any packages with unsatisfied or conflicting dependencies.

Implementation & Configuration Flashcards โ€” POC Study Cards with Answers