Cards (36)

  • What is the primary purpose of testing in computer programming?
    Verify functionality
  • Testing helps detect and fix bugs before release

    True
  • One benefit of testing is to verify that the software performs as intended
  • What is one critical failure that testing can prevent in software development?
    Production failures
  • Functional requirements define the core functionality and capabilities
  • What type of error occurs when code violates the grammar of the programming language?
    Syntax error
  • Logic errors can cause unexpected program behavior without crashing the system

    True
  • Runtime errors can cause a program to crash
  • What does testing software verify functionality of?
    The software performs as intended
  • What is improved when software is tested thoroughly?
    Reliability and maintainability
  • Functional requirements describe what the system should do
  • Non-functional requirements describe how the system should perform.

    True
  • What do functional requirements define about a system?
    What the system should do
  • Non-functional requirements focus on quality attributes, constraints, and other criteria
  • What are examples of functional requirements?
    Login, search, add to cart
  • Misspelled keywords can cause syntax errors.

    True
  • Division by zero is a common cause of runtime errors.

    True
  • Logical errors occur when the program produces incorrect results
  • What is an example of a syntax error in Python?
    `prin("Hello world")`
  • Match the requirement type with its description:
    Functional ↔️ Describes what the system should do
    Non-Functional ↔️ Describes how the system should perform
  • Non-functional requirements focus on quality attributes like response time and security
    True
  • A common cause of syntax errors is a missing parenthesis
  • What is one common cause of runtime errors in computer programs?
    Division by zero
  • Match the error type with its example:
    Syntax ↔️ `prin("Hello world")`
    Logic ↔️ `x + y` instead of `x - y`
    Runtime ↔️ `int z = 10 / 0`
  • Testing helps to identify and fix bugs
  • Testing prevents failures in the production environment.

    True
  • What do functional requirements define about a system?
    Core functionality and capabilities
  • Match the type of requirement with its description:
    Functional ↔️ Describes what the system should do
    Non-Functional ↔️ Describes how the system should perform
  • Functional requirements define the core functionality of the system.

    True
  • Non-functional requirements include response time, security, and scalability
  • What causes syntax errors in code?
    Violation of language grammar
  • Match the type of error with its definition:
    Syntax ↔️ Violation of language grammar
    Logic ↔️ Code produces unexpected results
    Runtime ↔️ Errors during program execution
  • Runtime errors occur when the program performs an illegal or impossible operation
  • What happens when a runtime error occurs?
    The program crashes
  • Incorrect comparisons are a common cause of logical errors.

    True
  • What is an example of a logical error in Python?
    `x + y` instead of `x - y`