0
0
SCADA systemsdevops~10 mins

Trend analysis and reporting in SCADA systems - Interactive Code Practice

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

Complete the code to start logging sensor data every minute.

SCADA systems
scheduler.schedule_task(sensor.read_data, interval=[1])
Drag options to blanks, or click blank then click option'
A60
B10
C120
D30
Attempts:
3 left
💡 Hint
Common Mistakes
Using 30 or 10 seconds instead of 60 seconds.
2fill in blank
medium

Complete the code to filter data points where temperature is above the threshold.

SCADA systems
filtered_data = [d for d in data if d.temperature [1] threshold]
Drag options to blanks, or click blank then click option'
A<
B>
C==
D<=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' or '<=' which select lower temperatures.
3fill in blank
hard

Fix the error in the code to calculate the average value of sensor readings.

SCADA systems
average = sum(readings) [1] len(readings)
Drag options to blanks, or click blank then click option'
A-
B+
C*
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using '*' or '+' which do not compute average.
4fill in blank
hard

Fill both blanks to create a dictionary of sensor IDs and their latest values.

SCADA systems
latest_values = {sensor.[1]: sensor.[2] for sensor in sensors}
Drag options to blanks, or click blank then click option'
Aid
Bvalue
Ctimestamp
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using timestamp or status instead of id or value.
5fill in blank
hard

Fill all three blanks to filter and report sensors with values above threshold.

SCADA systems
report = {sensor.[1]: sensor.[2] for sensor in sensors if sensor.[3] > threshold}
Drag options to blanks, or click blank then click option'
Aid
Bvalue
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using status or timestamp instead of value for filtering or reporting.