Bird
Raised Fist0
Testing Fundamentalstesting~10 mins

Quality assurance vs quality control in Testing Fundamentals - Test Execution Compared

Choose your learning style10 modes available
Test Overview

This test simulates a simple scenario to verify the difference between Quality Assurance (QA) and Quality Control (QC) processes in software testing. It checks that QA activities are planned and documented, while QC activities involve actual testing and defect detection.

Test Code - unittest
Testing Fundamentals
import unittest

class TestQualityProcesses(unittest.TestCase):
    def setUp(self):
        # Simulate QA process setup
        self.qa_documented = True
        # Simulate QC process results
        self.defects_found = 3

    def test_quality_assurance_documentation(self):
        # QA ensures processes are documented
        self.assertTrue(self.qa_documented, "QA documentation should be complete")

    def test_quality_control_defects(self):
        # QC finds defects during testing
        self.assertGreater(self.defects_found, 0, "QC should find at least one defect")

if __name__ == '__main__':
    unittest.main()
Execution Trace - 6 Steps
StepActionSystem StateAssertionResult
1Test startsTesting framework initialized, test class loaded—PASS
2setUp method runs to prepare test dataQA documentation flag set to True, defects found set to 3—PASS
3test_quality_assurance_documentation runsQA documentation flag is TrueAssert that QA documentation is TruePASS
4setUp method runs again for next testQA documentation flag set to True, defects found set to 3—PASS
5test_quality_control_defects runsDefects found count is 3Assert that defects found is greater than 0PASS
6Test endsAll tests passed—PASS
Failure Scenario
Failing Condition: QA documentation flag is False or defects found is 0
Execution Trace Quiz - 3 Questions
Test your understanding
What does the QA test verify in this test case?
AThat QA processes are documented
BThat defects are found during testing
CThat the software runs without errors
DThat the user interface is responsive
Key Result
Separate QA and QC clearly: QA focuses on planning and documentation, while QC focuses on actual testing and finding defects.

Practice

(1/5)
1. Which statement best describes the main focus of Quality Assurance (QA) in software testing?
easy
A. QA focuses on improving the process to prevent defects before they occur.
B. QA focuses on finding defects in the finished product.
C. QA is only about testing the software after development.
D. QA is responsible for fixing bugs found in the software.

Solution

  1. Step 1: Understand QA's role

    Quality Assurance is about the process and preventing defects early.
  2. Step 2: Compare with other options

    Options A, B, and D describe Quality Control or development tasks, not QA.
  3. Final Answer:

    QA focuses on improving the process to prevent defects before they occur. -> Option A
  4. Quick Check:

    QA = Process improvement [OK]
Hint: QA is about process, not product defects [OK]
Common Mistakes:
  • Confusing QA with QC
  • Thinking QA only tests software
  • Believing QA fixes bugs
2. Which of the following is the correct description of Quality Control (QC)?
easy
A. QC is about designing processes to avoid defects.
B. QC involves testing the product to find defects.
C. QC is responsible for writing code.
D. QC manages project timelines.

Solution

  1. Step 1: Define QC

    Quality Control focuses on inspecting and testing the product to detect defects.
  2. Step 2: Eliminate incorrect options

    Options A, C, and D describe other roles unrelated to QC.
  3. Final Answer:

    QC involves testing the product to find defects. -> Option B
  4. Quick Check:

    QC = Product testing [OK]
Hint: QC finds defects in the product [OK]
Common Mistakes:
  • Mixing QC with process design
  • Assuming QC writes code
  • Confusing QC with project management
3. Consider this scenario: A team creates a checklist to improve their coding process and also runs tests to find bugs in the software. Which activities represent QA and which represent QC?
medium
A. Both creating checklist and running tests are QC.
B. Creating checklist is QC; running tests is QA.
C. Creating checklist is QA; running tests is QC.
D. Both creating checklist and running tests are QA.

Solution

  1. Step 1: Identify QA activity

    Creating a checklist to improve process is a QA activity.
  2. Step 2: Identify QC activity

    Running tests to find bugs is a QC activity.
  3. Final Answer:

    Creating checklist is QA; running tests is QC. -> Option C
  4. Quick Check:

    Checklist = QA, Tests = QC [OK]
Hint: Process improvement = QA; Testing product = QC [OK]
Common Mistakes:
  • Swapping QA and QC roles
  • Thinking both are same
  • Ignoring process vs product difference
4. A tester wrote this statement: "Quality Assurance is responsible for finding bugs in the software." What is wrong with this statement?
medium
A. QA manages the software deployment process.
B. QA only fixes bugs, not finds them.
C. QA is the same as QC, so the statement is correct.
D. QA is responsible for preventing defects, not finding them.

Solution

  1. Step 1: Understand QA's responsibility

    QA focuses on preventing defects by improving processes.
  2. Step 2: Identify error in statement

    Finding bugs is the role of QC, not QA.
  3. Final Answer:

    QA is responsible for preventing defects, not finding them. -> Option D
  4. Quick Check:

    QA prevents defects, QC finds them [OK]
Hint: QA prevents; QC detects defects [OK]
Common Mistakes:
  • Confusing QA with QC
  • Assuming QA finds bugs
  • Mixing roles of QA and developers
5. A software company wants to improve product quality. They plan to implement process audits and also increase automated testing. Which of these actions correspond to QA and which to QC?
hard
A. Process audits are QA; automated testing is QC.
B. Both process audits and automated testing are QC.
C. Process audits are QC; automated testing is QA.
D. Both process audits and automated testing are QA.

Solution

  1. Step 1: Analyze process audits

    Process audits check and improve processes, so they are QA activities.
  2. Step 2: Analyze automated testing

    Automated testing finds defects in the product, so it is QC.
  3. Final Answer:

    Process audits are QA; automated testing is QC. -> Option A
  4. Quick Check:

    Audits = QA, Automated tests = QC [OK]
Hint: Audits improve process (QA); tests find bugs (QC) [OK]
Common Mistakes:
  • Mixing audits with testing
  • Assuming all testing is QA
  • Ignoring process vs product focus
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard