JNCIA-DevOps: Juniper Networks Certified Associate – Automation and DevOps — Question 26
Which statement is correct about Python?
Answer options
- A. Python automatically deletes unused objects from memory
- B. The Python interpreter is written in Java
- C. Python behavior is influenced by the host OS
- D. Python code must be compiled on a Junos device
Correct answer: A, C
Explanation
Option A is correct because Python uses a garbage collection mechanism to automatically manage memory by deleting unused objects. Option C is also true as Python's behavior can vary depending on the operating system it is running on. Options B and D are incorrect; the Python interpreter is primarily implemented in C, and Python code does not need to be compiled specifically on a Junos device.