JNCIA-DevOps: Juniper Networks Certified Associate – Automation and DevOps — Question 24
Which statement is true regarding Python?
Answer options
- A. To obtain functionality from a package, it must be imported using the Python keyword module
- B. A Python set is an ordered collection of unique elements
- C. Python 3.x is not fully backwards compatible with Python 2.x
- D. An object within a Python tuple can be modified
Correct answer: C
Explanation
The correct answer is C because Python 3.x introduced several changes that are not compatible with Python 2.x, such as print function syntax and integer division behavior. Option A is incorrect because the correct keyword is 'import', not 'module'. Option B is wrong as a set is an unordered collection. Option D is false since tuples are immutable, meaning their contents cannot be modified.