Title: Quiz 5 — Python for AI — Fundamentals
Course: AIINFRA 100: AI Systems & Development Environments > Section: Week 05 — Python for AI — Fundamentals

Q: A Python variable is best described as:
Feedback: Sample/expected answer: B) A name/label bound to an object in memory

Q: If list_b = list_a, and then you do list_b.append(5), list_a will also show the new item, because both names point to the same list object.
- True
- False
A: True

Q: Which built-in Python data structure is ordered, allows duplicates, but cannot be changed after creation?
Feedback: Sample/expected answer: C) tuple

Q: Which data structure is best suited for storing unique, unordered values (e.g., de-duplicating a list of labels)?
Feedback: Sample/expected answer: C) set

Q: In a function definition like def summarize(name, skills_dict, greeting="Hello"):, what is the term for greeting="Hello"?
Feedback: Sample/expected answer: A default argument (a default parameter value used when the caller doesn't supply one)

Q: In Python, indentation is just a style preference — the interpreter ignores it as long as your code has correct punctuation.
- True
- False
A: False

Q: You run pip install numpy inside an activated virtual environment. Where does NumPy get installed?
Feedback: Sample/expected answer: B) Into that specific virtual environment's private package folder

Q: Name one reason it matters to check which Python interpreter is active in both your terminal and VS Code before debugging a script.
Feedback: Sample/expected answer: Because the terminal and VS Code can be pointed at different interpreters/environments, which can cause a script to behave differently (e.g., "works in one, fails in the other") or fail to find installed packages.