PCEP Functions, Tuples, Dictionaries and Exceptions • Set 3
PCEP Functions, Tuples, Dictionaries and Exceptions Practice Test 3 — 15 questions with explanations. Free, no signup.
A system administrator has a Python script that uses a tuple to store immutable configuration parameters, such as server address and port. A new business requirement arises: one of these parameters (the port number) must be changeable at runtime without restarting the script. The other parameters must remain immutable. The administrator wants to minimize changes to the existing codebase and maintain clarity. Which approach best satisfies the requirement while keeping the code maintainable?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.