1. On Windows, what is the command to activate a `venv` virtual environment located in the `myenv` directory?
2. How do you mark a function as a test case for PyTest to discover?
3. What `pip` command would you use to upgrade an already installed package (e.g., `numpy`) to the latest version?
4. Which built-in function returns the number of items in a list, tuple, or string?
5. What is the command to list all packages installed in the current active virtual environment?
6. What command would you typically use with the `venv` module to create a virtual environment named `myenv`?
7. What is the command to install a package (e.g., `requests`) using `pip` within an active virtual environment?
8. How do you open a file named `data.txt` for reading in Python?
9. What is the capital of Australia?
10. What is the standard library module in Python 3 for creating virtual environments?
11. Why is it generally bad practice to install packages globally using `pip` instead of within a virtual environment?
12. What is the capital of Brazil?
13. Can you have multiple virtual environments on the same machine?
14. What keyword is used to define a function in Python?
15. On macOS/Linux, what is the command to activate a `venv` virtual environment located in the `myenv` directory?
16. What is the command to uninstall a package (e.g., `flask`) using `pip`?
17. Which data type is used to store an ordered, immutable sequence of items?
18. How do virtual environments contribute to reproducible builds?
19. What is the capital of Canada?
20. If you delete the directory containing a virtual environment, are the globally installed Python packages affected?
21. Which Selenium WebDriver method is used to locate an element by its ID attribute?
22. How do you instruct the Selenium WebDriver to wait for a certain condition (e.g., an element to be visible) before proceeding?
23. What command is typically used to run PyTest tests from the terminal?
24. What does `pip` stand for in the context of Python?
25. What is the capital of Egypt?
26. What is the output of `print(type([]))`?
27. What is the difference between a list and a dictionary in Python?
28. What is the purpose of a PyTest fixture?
29. What `pip` command is used to install all packages listed in a `requirements.txt` file?
30. What is the primary purpose of using a virtual environment in Python development?
31. How do virtual environments help manage project dependencies?
32. What `pip` command is used to generate a `requirements.txt` file from the currently installed packages in the environment?
33. How can you tell if a virtual environment is currently active in your terminal?
34. What is `conda` and how does its approach to environment management differ from `venv`/`virtualenv`?
35. Which PyTest command-line option provides more detailed output (verbosity)?
36. What is the purpose of the `if __name__ == "__main__":` block in a Python script?
37. Besides `venv`, what is another popular third-party tool for creating Python virtual environments?
38. What is the purpose of the `pyvenv.cfg` file inside a virtual environment directory?
39. What is the capital of Japan?
40. What method is used to simulate typing into an input field located by Selenium?
41. What command is used to deactivate an active virtual environment?
42. Does creating a virtual environment copy the entire Python interpreter? Explain briefly.
43. What is the standard filename used to store a list of project dependencies for `pip`?
44. How do you add a comment to a single line in Python?
45. Which method closes the current browser window controlled by Selenium WebDriver?