Bird
0
0
PCB Designbi_tool~10 mins

Why PCB design skills matter - Test Your Understanding

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 = base_layers [1] additional_layers
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 subtraction which reduces the count incorrectly.
2fill in blank
medium

Complete the code to filter PCB components with resistance greater than 100 ohms.

PCB Design
filtered_components = [comp for comp in components if comp.resistance [1] 100]
Drag options to blanks, or click blank then click option'
A<=
B<
C==
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using less than operator which selects wrong components.
Using equality operator which selects only exactly 100 ohms.
3fill in blank
hard

Fix the error in the code to calculate the total cost of PCB components.

PCB Design
total_cost = sum(comp.price [1] comp.quantity for comp in components)
Drag options to blanks, or click blank then click option'
A-
B+
C*
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Adding price and quantity which is incorrect for cost calculation.
Dividing price by quantity which does not make sense here.
4fill in blank
hard

Fill both blanks to create a dictionary of component names and their quantities for components with quantity greater than 5.

PCB Design
component_dict = {comp.[1]: comp.[2] for comp in components if comp.quantity > 5}
Drag options to blanks, or click blank then click option'
Aname
Bquantity
Cprice
Dresistance
Attempts:
3 left
💡 Hint
Common Mistakes
Using price or resistance instead of quantity for values.
Using quantity as key which is not unique.
5fill in blank
hard

Fill all three blanks to create a list of component names with resistance less than 50 ohms and price below 10.

PCB Design
selected_components = [comp.[1] for comp in components if comp.[2] [3] 50 and comp.price < 10]
Drag options to blanks, or click blank then click option'
Aname
Bresistance
C<
Dquantity
Attempts:
3 left
💡 Hint
Common Mistakes
Using quantity instead of resistance for filtering.
Using greater than operator instead of less than.