0
0
Power Electronicsknowledge~10 mins

Thermal monitoring and management in Power Electronics - Interactive Code Practice

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

Complete the code to read the temperature sensor value.

Power Electronics
temperature = sensor.read_temperature([1])
Drag options to blanks, or click blank then click option'
ACelsius
BVoltage
CKelvin
DResistance
Attempts:
3 left
💡 Hint
Common Mistakes
Using voltage or resistance instead of temperature units.
2fill in blank
medium

Complete the code to trigger a cooling fan when temperature exceeds threshold.

Power Electronics
if temperature [1] threshold:
    fan.turn_on()
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 triggers fan at low temperature.
3fill in blank
hard

Fix the error in the code to log temperature readings every 5 seconds.

Power Electronics
while True:
    log.write(temperature)
    time.sleep([1])
Drag options to blanks, or click blank then click option'
A10
B5
C1
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using 0 causes continuous logging without delay.
4fill in blank
hard

Fill both blanks to create a dictionary of sensor names and their temperature values above threshold.

Power Electronics
high_temps = {sensor[1]: temp for sensor, temp in readings.items() if temp [2] threshold }
Drag options to blanks, or click blank then click option'
A.name
B<
C>
D_id
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' filters low temperatures instead of high.
5fill in blank
hard

Fill all three blanks to create a filtered dictionary with uppercase sensor names and temperatures below threshold.

Power Electronics
filtered = { [1]: [2] for sensor, temp in data.items() if temp [3] threshold }
Drag options to blanks, or click blank then click option'
Asensor.name.upper()
Btemp
C<
Dsensor.id
Attempts:
3 left
💡 Hint
Common Mistakes
Using sensor.id instead of name, or wrong comparison operator.