Testing

Cards (22)

  • What is the main purpose of testing a program?
    To ensure the program works correctly
  • Why is it important to test a program?
    To meet user requirements and remove errors
  • What is iterative testing?
    Testing during program development
  • What occurs during iterative testing?
    The programmer tests and modifies the module
  • What is final testing also known as?
    Terminal testing
  • When does final testing take place?
    After development and before release
  • What is a syntax error?
    A mistake in grammatical rules
  • What happens when a syntax error occurs?
    The program cannot be compiled or executed
  • Give an example of a syntax error.
    Incorrect spelling: pront("hello")
  • What is a logical error?
    A mistake that produces incorrect output
  • How does a logical error affect a program?
    The program runs but gives wrong results
  • Give an example of a logical error.
    Incorrect calculation: total = num1 - num2
  • What is test data used for?
    To test if a program functions correctly
  • What should test data cover?
    A range of possible and incorrect inputs
  • What are the four types of test data?
    • Normal data: Sensible data the program accepts
    • Boundary data: Data at extreme boundaries
    • Invalid data: Correct type but fails validation
    • Erroneous data: Wrong type that cannot be processed
  • What is normal data?
    Sensible data the program should accept
  • What is boundary data?
    Data at the extreme boundary of ranges
  • What is invalid data?
    Correct type but does not meet validation
  • What is erroneous data?
    Data of the wrong data type
  • Why should erroneous data not be accepted?
    It cannot be processed by the program
  • What is the purpose of defensive design theory?
    To anticipate and mitigate potential errors
  • What is Boolean logic used for in programming?
    To create true/false conditions