Bird
0
0

A design review tool reports 'footprint mismatch' errors but the script always returns zero errors. The script line is: 'errors = count(footprint_mismatch)'. What is the likely cause?

medium📝 Formula Fix Q7 of 15
PCB Design - Design Review and Testing
A design review tool reports 'footprint mismatch' errors but the script always returns zero errors. The script line is: 'errors = count(footprint_mismatch)'. What is the likely cause?
AThe footprint_mismatch variable is empty or undefined
BThe count function is incorrect syntax
CThe errors variable is misspelled
DThe script should use sum instead of count
Step-by-Step Solution
Solution:
  1. Step 1: Understand count function usage

    Count returns number of items in footprint_mismatch list.
  2. Step 2: Identify why count returns zero

    If footprint_mismatch is empty or undefined, count returns zero.
  3. Final Answer:

    The footprint_mismatch variable is empty or undefined -> Option A
  4. Quick Check:

    Empty variable causes zero count [OK]
Quick Trick: Check variable content before counting [OK]
Common Mistakes:
MISTAKES
  • Assuming count syntax is wrong
  • Ignoring empty or missing data
  • Confusing count with sum function

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PCB Design Quizzes