OA. free
Free
Nopal Securities Core Computer Science Core Computer Science Medium

Which standard command is used to create a virtual environment in Python 3?

Nopal Securities technical mcq question, verified with a worked answer. Free to practise - no sign-up.

Which standard command is used to create a virtual environment in Python 3?

Choose one option.
Show answer & explanation
Answer: A. python3 -m venv env

The built-in venv module in Python 3 is invoked via python3 -m venv

to create an isolated environment.

Step-by-step Derivation:
Step 1: Python 3 ships with the standard library venv module invoked with python3 -m venv.