0
0
SCADA systemsdevops~10 mins

Alarm priority levels 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 set the alarm priority to high.

SCADA systems
alarm.set_priority([1])
Drag options to blanks, or click blank then click option'
A'high'
B'low'
C'medium'
D'critical'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'low' or 'medium' when 'high' is required.
Using 'critical' which is higher than 'high'.
2fill in blank
medium

Complete the code to check if the alarm priority is set to critical.

SCADA systems
if alarm.priority == [1]:
    alert_operator()
Drag options to blanks, or click blank then click option'
A'low'
B'critical'
C'medium'
D'high'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong priority string in the comparison.
Forgetting to use quotes around the priority string.
3fill in blank
hard

Fix the error in the code to correctly set the alarm priority to medium.

SCADA systems
alarm.priority = [1]
Drag options to blanks, or click blank then click option'
A"Medium"
Bmedium
CMEDIUM
D'medium'
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning the priority without quotes causing a NameError.
Using uppercase letters which may not be recognized.
4fill in blank
hard

Fill both blanks to create a dictionary mapping alarm names to their priority levels.

SCADA systems
alarm_priorities = {'fire_alarm': [1], 'power_failure': [2]
Drag options to blanks, or click blank then click option'
A'critical'
B'high'
C'medium'
D'low'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the priorities between alarms.
Using unquoted priority strings.
5fill in blank
hard

Fill all three blanks to filter alarms with priority higher than medium.

SCADA systems
high_priority_alarms = {name: level for name, level in alarms.items() if level [1] [2] and level != [3]
Drag options to blanks, or click blank then click option'
A>
B'medium'
C'low'
D'critical'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong comparison operators.
Not quoting priority strings.
Including low priority alarms by mistake.