0
0
SCADA systemsdevops~10 mins

Navigation and screen hierarchy 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 define the main screen in the SCADA system.

SCADA systems
main_screen = Screen(name=[1])
Drag options to blanks, or click blank then click option'
AmainScreen
BMainScreen
C'main_screen'
D"MainScreen"
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to put quotes around the screen name
Using variable names without quotes
2fill in blank
medium

Complete the code to add a child screen to the main screen.

SCADA systems
main_screen.add_child([1])
Drag options to blanks, or click blank then click option'
AchildScreen
B'childScreen'
Cchild_screen
D"ChildScreen"
Attempts:
3 left
💡 Hint
Common Mistakes
Passing the screen name as a string instead of the screen object
Using quotes around the variable name
3fill in blank
hard

Fix the error in the code to navigate to a screen by its name.

SCADA systems
navigate_to_screen([1])
Drag options to blanks, or click blank then click option'
A"screen_name"
Bscreen_name
CscreenName
D'screenName'
Attempts:
3 left
💡 Hint
Common Mistakes
Passing variable names without quotes
Using single quotes instead of double quotes if the system requires double quotes
4fill in blank
hard

Fill both blanks to create a screen hierarchy with a parent and child screen.

SCADA systems
parent_screen = Screen(name=[1])
parent_screen.add_child([2])
Drag options to blanks, or click blank then click option'
A"ParentScreen"
Bchild_screen
C"ChildScreen"
DparentScreen
Attempts:
3 left
💡 Hint
Common Mistakes
Using variable names without quotes for screen names
Putting quotes around the child screen variable
5fill in blank
hard

Fill all three blanks to define a screen dictionary with screen names as keys and screen objects as values, filtering only active screens.

SCADA systems
active_screens = { [1]: [2] for [1] in screens if screens[[1]].[3] }
Drag options to blanks, or click blank then click option'
Ascreen_name
Bscreens[screen_name]
Cis_active
Dscreen
Attempts:
3 left
💡 Hint
Common Mistakes
Using inconsistent variable names for keys and values
Checking wrong attribute for active status