Question 1 of 30
A software development team is implementing Test-Driven Development (TDD) for a new feature in their application that calculates the area of various geometric shapes. They decide to start by writing a test for a function that computes the area of a rectangle. The team writes the following test case: `assert calculate_area(\"rectangle\", 5, 10) == 50`. After running the test, they realize that the function `calculate_area` is not yet implemented. What should be the next step in the TDD process, considering the principles of TDD and the importance of iterative development?
Implement the `calculate_area` function to return the correct area for a rectangle based on the provided dimensions.
Write additional test cases for other shapes like circles and triangles before implementing any function.
Refactor the existing code to improve performance without implementing the required function.
Discuss the requirements with stakeholders to ensure that the feature aligns with business needs before proceeding.

Preparing for CISCO 200-901 Developing Applications and Automating Workflows using Cisco Core Platforms (DEVASC)? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free