Bird
0
0
PCB Designbi_tool~10 mins

Board outline and dimensions 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 define the board outline width in millimeters.

PCB Design
board_width = [1]  // width of the PCB in mm
Drag options to blanks, or click blank then click option'
A100
B50
C200
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using a value too large for the intended board size.
Confusing width with height.
2fill in blank
medium

Complete the code to set the board height variable correctly.

PCB Design
board_height = [1]  // height of the PCB in mm
Drag options to blanks, or click blank then click option'
A150
B100
C25
D75
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a height smaller than the width.
Using an unrealistic dimension for the board.
3fill in blank
hard

Fix the error in the code to correctly calculate the board area.

PCB Design
board_area = board_width [1] board_height  // area in square mm
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 which are incorrect for area calculation.
4fill in blank
hard

Fill both blanks to define the board outline as a dictionary with width and height.

PCB Design
board_outline = {'width': [1], 'height': [2]
Drag options to blanks, or click blank then click option'
Aboard_width
Bboard_height
C50
D75
Attempts:
3 left
💡 Hint
Common Mistakes
Using fixed numbers instead of variables.
Swapping width and height values.
5fill in blank
hard

Fill all three blanks to create a function that returns the board perimeter.

PCB Design
def board_perimeter([1], [2]):
    return 2 * ([3] + height)
Drag options to blanks, or click blank then click option'
Awidth
Bheight
Dlength
Attempts:
3 left
💡 Hint
Common Mistakes
Using undefined variable 'length'.
Mixing parameter names inside the function body.