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 2)

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 6–10

  1. 6application · medium

    A security analyst is examining a Python script that converts an IP address to its binary form. The script defines a function and calls it with a string argument. Part of the script is: ```python def ip_to_binary(ip): octets = ip.split('.') binary = [] for octet in octets: binary.append(bin(int(octet))[2:].zfill(8)) return '.'.join(binary) print(ip_to_binary('192.168.1.1')) ``` What is the output of this script?

    Select an answer first
  2. 7application · medium

    A security analyst is examining a Python script that calculates the number of bits in a subnet mask. The script is: ```python def mask_to_bits(mask): binary = '' for octet in mask.split('.'): binary += bin(int(octet))[2:].zfill(8) return binary.count('1') print(mask_to_bits('255.255.255.0')) ``` What is the output?

    Select an answer first
  3. 8application · medium

    A network administrator is reviewing a Python script that uses a module to perform DNS lookups. The script is: ```python import socket ip = socket.gethostbyname('www.example.com') print(ip) ``` Assuming the DNS resolution succeeds, what type of data is stored in the variable 'ip'?

    Select an answer first
  4. 9foundation · easy

    Which mode string is used with the `open()` function to write to a file, overwriting its existing content?

    Select an answer first
  5. 10foundation · easy

    What is the output of the following Python code snippet? ```python x = 5 if x > 3: print("Large") else: print("Small") ```

    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.