0
0
SCADA systemsdevops~10 mins

Batch 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 the batch report generation process.

SCADA systems
start_batch_report([1])
Drag options to blanks, or click blank then click option'
Abatch_id
Breport_id
Cuser_id
Dtimestamp
Attempts:
3 left
💡 Hint
Common Mistakes
Using report_id instead of batch_id
Passing user_id which is unrelated here
2fill in blank
medium

Complete the code to check if the batch report is complete.

SCADA systems
if check_report_status([1]) == 'complete':
Drag options to blanks, or click blank then click option'
Areport_id
Bbatch_id
Cuser_id
Dstatus_code
Attempts:
3 left
💡 Hint
Common Mistakes
Using report_id which may not be linked directly
Passing status_code which is a result, not input
3fill in blank
hard

Fix the error in the code to correctly fetch batch report data.

SCADA systems
data = fetch_batch_data([1])
Drag options to blanks, or click blank then click option'
Auser_id
Breport_data
Cbatch_id
Dbatch_status
Attempts:
3 left
💡 Hint
Common Mistakes
Passing report_data which is the output, not input
Using batch_status which is unrelated here
4fill in blank
hard

Fill both blanks to filter batch reports by status and date.

SCADA systems
filtered_reports = filter_reports(status=[1], date=[2])
Drag options to blanks, or click blank then click option'
A'complete'
B'pending'
C'2024-01-01'
D'2023-12-31'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pending' status when looking for completed reports
Choosing wrong date format
5fill in blank
hard

Fill all three blanks to create a summary dictionary for batch reporting.

SCADA systems
summary = { [1]: [2] for [3] in batch_data if batch_data[[3]]['status'] == 'complete' }
Drag options to blanks, or click blank then click option'
A'batch_id'
Bbatch_data[batch]['value']
Cbatch
D'value'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong keys or values in the dictionary
Incorrect loop variable name