Bird
0
0
PCB Designbi_tool~10 mins

Zone priority for overlapping fills 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 set the priority of a zone fill.

PCB Design
zone.setPriority([1])
Drag options to blanks, or click blank then click option'
A10
B5
C15
D20
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string instead of an integer for priority.
Setting priority to zero which disables priority.
2fill in blank
medium

Complete the code to check if a zone has higher priority than another.

PCB Design
if zone1.priority [1] zone2.priority:
Drag options to blanks, or click blank then click option'
A<
B==
C>
D<=
Attempts:
3 left
💡 Hint
Common Mistakes
Using < instead of > which reverses the logic.
Using equality check instead of comparison.
3fill in blank
hard

Fix the error in the code to correctly assign priority to overlapping zones.

PCB Design
zoneA.priority = [1]
Drag options to blanks, or click blank then click option'
A'high'
B10
Cpriority_high
DNone
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning string values instead of integers.
Leaving priority as None which disables it.
4fill in blank
hard

Fill both blanks to set and compare zone priorities correctly.

PCB Design
zone1.setPriority([1])
if zone1.priority [2] zone2.priority:
Drag options to blanks, or click blank then click option'
A15
B>
C<
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Using < instead of > in comparison.
Setting priority to a lower value than intended.
5fill in blank
hard

Fill all three blanks to create a dictionary mapping zones to their priorities and filter high priority zones.

PCB Design
zone_priorities = [1]: zone.getPriority() for zone in zones if zone.getPriority() [2] [3]
Drag options to blanks, or click blank then click option'
Azone.name
B>
C10
Dzone.id
Attempts:
3 left
💡 Hint
Common Mistakes
Using zone.id instead of zone.name as dictionary key.
Using < instead of > in the filter condition.