0
0
SCADA systemsdevops~10 mins

Daily and shift reports 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 schedule a daily report generation at midnight.

SCADA systems
schedule.every().day.at("[1]:00").do(generate_report)
Drag options to blanks, or click blank then click option'
A23
B12
C00
D06
Attempts:
3 left
💡 Hint
Common Mistakes
Using 12 (noon) instead of midnight
Using 23 (11 PM) instead of 00
2fill in blank
medium

Complete the code to generate a shift report every 8 hours.

SCADA systems
schedule.every([1]).hours.do(generate_shift_report)
Drag options to blanks, or click blank then click option'
A24
B6
C12
D8
Attempts:
3 left
💡 Hint
Common Mistakes
Using 6 or 12 hours which do not match typical shift lengths
Using 24 hours which is daily, not shift-based
3fill in blank
hard

Fix the error in the code to correctly log the report generation time.

SCADA systems
log.info(f"Report generated at: [1]")
Drag options to blanks, or click blank then click option'
Adatetime.now()
Bdatetime.now
Ddatetime.now()()
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting parentheses after now
Adding extra parentheses causing syntax errors
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps shift names to their durations in hours.

SCADA systems
shift_hours = {shift.[1]: shift.[2] for shift in shifts}
Drag options to blanks, or click blank then click option'
Aname
Bduration
Cid
Dstart_time
Attempts:
3 left
💡 Hint
Common Mistakes
Using shift.id or shift.start_time which are not descriptive for this mapping
5fill in blank
hard

Fill all three blanks to filter and create a report dictionary for shifts longer than 6 hours.

SCADA systems
report = {shift.name: shift.duration for shift in shifts if shift.[2] {{BLANK_3}} 6}
Drag options to blanks, or click blank then click option'
A{shift.name: shift.duration}
Bduration
C>
Dname
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect attribute names or comparison operators
Not using dictionary comprehension syntax