Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Cisco logo

CiscoCertified Network Professional Cybersecurity (CBRCOR)

Domain 4Objective 2

4.2 Interpret Basic Scripts Such as Python 350-201 Practice Questions (Page 1)

Part of the Automation domain, which accounts for 20% of the 350-201 exam. Cisco does not publish an official question count, but from its 120-minute exam (~50–80 total, ~10–16 in this domain), expect 1–1 from this objective — we provide 30 practice questions to prepare you well beyond it. (estimate)

30questions here
6free pages
7concepts
20%of the exam

Questions 1–5

  1. 1foundation · easy

    Which Python statement is used to execute a block of code repeatedly as long as a condition is true?

    Select an answer first
  2. 2application · medium

    A network engineer is reviewing a Python script that processes a list of interface statuses. The script contains the following code: ```python interfaces = ['up', 'down', 'up', 'up', 'down'] count = 0 for status in interfaces: if status == 'up': count += 1 print(count) ``` What is the output of this script?

    Select an answer first
  3. 3application · medium

    A network administrator is debugging a Python script that writes device names to a log file. The script is: ```python with open('devices.log', 'w') as f: f.write('Router1\n') f.write('Switch1\n') with open('devices.log', 'r') as f: content = f.read() print(content) ``` What is the output?

    Select an answer first
  4. 4expert · medium

    A security engineer is debugging a Python script that reads a CSV file containing firewall rules. The script is: ```python with open('rules.csv', 'r') as f: lines = f.readlines() for line in lines: parts = line.strip().split(',') if len(parts) >= 3: print(parts[0]) ``` If 'rules.csv' contains: ``` rule1,allow,tcp rule2,deny,udp rule3,allow ``` What is the output?

    Select an answer first
  5. 5foundation · easy

    What is the purpose of the `import` statement in a Python script?

    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-201” is a trademark of its owner, used for identification only.