Bird
0
0
PCB Designbi_tool~10 mins

Cost vs complexity trade-off in PCB Design - Interactive 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 cost by multiplying unit cost with quantity.

PCB Design
total_cost = unit_cost [1] quantity
Drag options to blanks, or click blank then click option'
A*
B+
C-
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using addition instead of multiplication
Using division or subtraction by mistake
2fill in blank
medium

Complete the code to calculate complexity score by adding number of layers and number of components.

PCB Design
complexity_score = layers [1] components
Drag options to blanks, or click blank then click option'
A+
B-
C/
D*
Attempts:
3 left
💡 Hint
Common Mistakes
Using multiplication instead of addition
Using division or subtraction
3fill in blank
hard

Fix the error in the code to calculate cost per complexity unit by dividing total cost by complexity score.

PCB Design
cost_per_complexity = total_cost [1] complexity_score
Drag options to blanks, or click blank then click option'
A*
B-
C/
D+
Attempts:
3 left
💡 Hint
Common Mistakes
Using multiplication or addition instead of division
Using subtraction by mistake
4fill in blank
hard

Fill both blanks to create a dictionary mapping component names to their costs, but only include components costing more than 10.

PCB Design
component_costs = {name: cost for name, cost in components.items() if cost [1] 10 and name [2] 'Resistor'}
Drag options to blanks, or click blank then click option'
A>
B<
C!=
D==
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' instead of '>' for cost comparison
Using '==' instead of '!=' for name check
5fill in blank
hard

Fill all three blanks to create a dictionary of components with cost above 5, keys as uppercase names, and values as costs minus 2.

PCB Design
filtered_components = {name[1]: cost[2] 2 for name, cost in components.items() if cost [3] 5}
Drag options to blanks, or click blank then click option'
A.upper()
B-
C>
D+
Attempts:
3 left
💡 Hint
Common Mistakes
Using '+' instead of '-' for cost adjustment
Using '<' instead of '>' for filtering
Not converting names to uppercase