
CiscoCertified Network Professional Cybersecurity (CBRCOR)
Domain 4Objective 2
4.2 Interpret Basic Scripts Such as Python 350-201 Practice Questions (Page 6)
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 26–30
- 26
Which keyword is used to define a function in Python?
Select an answer first - 27
What happens if an exception is raised in the `try` block and there is no matching `except` block?
Select an answer first - 28
Which Python construct is used to catch and handle exceptions that occur during script execution?
Select an answer first - 29
A network administrator is analyzing a Python script that uses a custom function to calculate the subnet mask from a prefix length. The script is: ```python def prefix_to_mask(prefix): mask = (0xffffffff << (32 - prefix)) & 0xffffffff return f'{mask >> 24 & 0xff}.{mask >> 16 & 0xff}.{mask >> 8 & 0xff}.{mask & 0xff}' print(prefix_to_mask(24)) ``` What is the output?
Select an answer first - 30
A network technician is analyzing a Python script that checks whether a device is reachable. The script is: ```python import os host = '192.168.1.1' response = os.system('ping -c 1 ' + host) if response == 0: print('reachable') else: print('unreachable') ``` Assuming the ping command succeeds (returns 0), what is the output?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to 350-201
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.