Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Cisco logo

CiscoCertified Network Professional Enterprise

Domain 6Objective 1

6.1 Interpret Basic Python Components and Scripts 350-401 Practice Questions (Page 4)

Part of the 6.0 Automation and Artificial Intelligence domain, which accounts for 15% of the 350-401 exam. Cisco does not publish an official question count, but from its 120-minute exam (~50–80 total, ~8–12 in this domain), expect 1–2 from this objective — we provide 22 practice questions to prepare you well beyond it. (estimate)

22questions here
5free pages
8concepts
15%of the exam

Questions 16–20

  1. 16application · medium

    A network engineer is writing a Python script to parse a log file. The script uses a variable to store the current line number and increments it in a while loop. The engineer notices that the loop runs indefinitely. Which of the following is the most likely cause?

    Select an answer first
  2. 17foundation · easy

    What is the purpose of the 'with' statement when working with files in Python?

    Select an answer first
  3. 18expert · medium

    A Python script defines a function 'connect(device, username, password)' that uses paramiko to establish an SSH connection. The script must call this function for multiple devices, but the password is the same for all devices. The engineer wants to avoid repeating the password in each call. Which approach is most Pythonic?

    Select an answer first
  4. 19foundation · easy

    Which of the following is a valid Python data type?

    Select an answer first
  5. 20application · medium

    A Python script contains a function that parses a list of show command outputs and extracts interface names. The engineer wants to reuse this function in another script without copying the code. Which approach is the most maintainable?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Cisco. “350-401” is a trademark of its owner, used for identification only.