Bird
0
0
PCB Designbi_tool~10 mins

Manufacturing constraints awareness in PCB Design - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to calculate the total number of layers in a PCB design.

PCB Design
total_layers = [1] + 2
Drag options to blanks, or click blank then click option'
Asignal_layers
Bcore_layers
Ccopper_layers
Ddrill_layers
Attempts:
3 left
💡 Hint
Common Mistakes
Using core_layers instead of signal_layers
Confusing drill_layers with signal layers
2fill in blank
medium

Complete the code to filter components that exceed the maximum allowed height for manufacturing.

PCB Design
tall_components = [c for c in components if c.height [1] max_height]
Drag options to blanks, or click blank then click option'
A<=
B==
C>
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using <= instead of >
Using == which only matches exact height
3fill in blank
hard

Fix the error in the code that calculates the minimum drill hole diameter allowed.

PCB Design
min_drill = min([hole.diameter for hole in holes if hole.diameter [1] min_diameter])
Drag options to blanks, or click blank then click option'
A>=
B<
C==
D<=
Attempts:
3 left
💡 Hint
Common Mistakes
Using < which filters smaller holes
Using == which filters only exact matches
4fill in blank
hard

Fill both blanks to create a dictionary of components with their widths, filtering only those wider than the minimum width.

PCB Design
component_widths = {c.name: c.width for c in components if c.width [1] [2]
Drag options to blanks, or click blank then click option'
A>
B<
Cmin_width
Dmax_width
Attempts:
3 left
💡 Hint
Common Mistakes
Using < instead of >
Using max_width instead of min_width
5fill in blank
hard

Fill all three blanks to create a summary dictionary of components with their heights, filtering those within allowed height range.

PCB Design
allowed_components = {c.id: c.height for c in components if c.height [1] [2] and c.height [3] max_height}
Drag options to blanks, or click blank then click option'
A>=
Bmin_height
C<=
Dmax_height
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect operators like < or > for range checks
Mixing up min_height and max_height variables