CISCO 200-901 Developing Applications and Automating Workflows using Cisco Core Platforms (DEVASC) Free Practice Test — 30 Questions

Exam Code: 200-901

30 questions · Full explanations · No account required

Free
Question 1 of 30

In a software development project, a team is tasked with creating a function that calculates the factorial of a number. The function must handle both positive integers and zero, returning the correct factorial value. Additionally, the team needs to ensure that the function is efficient and does not exceed a maximum recursion depth of 1000 calls. Given the following implementation in Python, identify the potential issues and the best approach to optimize the function while maintaining correctness.

python
factorial(n):
n < 0:
urn "Error: Negative input"

About the CISCO 200-901 Developing Applications and Automating Workflows using Cisco Core Platforms (DEVASC) Certification

These free practice questions are designed to help you assess your readiness for the CISCO 200-901 Developing Applications and Automating Workflows using Cisco Core Platforms (DEVASC) exam by Cisco. Each question comes with a detailed explanation to reinforce the correct concept. For a complete exam preparation experience with hundreds of questions, spaced-repetition study tools, and full exam simulations, explore our premium access.