Features of programming languages and event
driven languages
Contents
Task 1: Event driven programming ............................................................................................................. 2
Service oriented ....................................................................................................................................... 2
Time driven triggers ................................................................................................................................. 2
Event handlers ......................................................................................................................................... 2
Trigger functions ...................................................................................................................................... 2
Events e.g. load, click .............................................................................................................................. 2
Event loops ............................................................................................................................................... 2
Flexibility for GUI, forms........................................................................................................................... 2
Simplicity of programming ...................................................................................................................... 3
Ease of development ............................................................................................................................... 3
Task 2 ........................................................................................................................................................... 3
Variables and their scope........................................................................................................................ 3
Local ..................................................................................................................................................... 3
Public/global ........................................................................................................................................ 3
Naming conventions ................................................................................................................................ 3
The use of logical operators .................................................................................................................... 4
Assignment statements........................................................................................................................... 4
Input and output statements .................................................................................................................. 4
Sequence, Selection and Iteration ......................................................................................................... 4
Sequence ............................................................................................................................................. 4
Selection ............................................................................................................................................... 4
Task 3 ........................................................................................................................................................... 4
Data types ................................................................................................................................................ 4
String .................................................................................................................................................... 5
Bytes ..................................................................................................................................................... 5
Decimal................................................................................................................................................. 5
Integer .................................................................................................................................................. 5
Boolean ................................................................................................................................................ 5
Long ...................................................................................................................................................... 6
Task 4 ........................................................................................................................................................... 6
Task 5 ........................................................................................................................................................... 7
1