Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the animation loop.
SCADA systems
animation.start([1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using zero or negative speed stops the animation.
✗ Incorrect
The animation speed must be set to 10 to start the loop at the correct pace.
2fill in blank
mediumComplete the code to update the object's position dynamically.
SCADA systems
object.move(x=[1], y=20)
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using negative or zero x value may place the object off-screen.
✗ Incorrect
Setting x to 30 moves the object to the correct horizontal position.
3fill in blank
hardFix the error in the animation stop command.
SCADA systems
animation.[1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pause' or 'halt' which are not valid methods.
✗ Incorrect
The correct method to stop the animation is 'stop()'.
4fill in blank
hardFill both blanks to create a conditional animation update.
SCADA systems
if object.status == '[1]': animation.speed = [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'inactive' status with speed 10 causes no animation.
✗ Incorrect
If the object is 'active', the animation speed should be set to 10 to run smoothly.
5fill in blank
hardFill all three blanks to define an animation frame update with conditions.
SCADA systems
frame = {
'id': [1],
'duration': [2],
'visible': [3]
} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Setting visible to False hides the frame.
✗ Incorrect
The frame id is 101, duration 50 milliseconds, and visibility set to True for display.