Complete the code to identify the type of requirement that describes what the system should do.
requirement_type = "[1]" # This type defines system behaviors and features
Functional requirements describe what the system should do, such as features and behaviors.
Complete the code to identify the type of requirement that defines system qualities like performance and security.
requirement_type = "[1]" # This type defines system qualities and constraints
Non-functional requirements specify system qualities such as performance, security, and usability.
Fix the error in the code to correctly classify a requirement about system uptime.
requirement_type = "[1]" # System uptime is a measure of availability
System uptime is a non-functional requirement because it relates to system availability, a quality attribute.
Fill both blanks to complete the dictionary that maps requirement types to examples.
examples = {"[1]": "User login", "[2]": "Response time under 2 seconds"}User login is a functional requirement; response time is a non-functional requirement.
Fill all three blanks to complete the list comprehension that filters functional requirements containing 'data'.
filtered = [req for req in requirements if req["type"] == "[1]" and "[2]" in req["[3]"]]
This code filters requirements where type is functional and the word 'data' appears in the description.