Unit-14-Event-Driven-Programming(1)[1]
Unit-14-Event-Driven-Programming(1)[1]
This unit aims to enable learners to develop the skills and understanding required to design and develop
event driven applications.
Unit introduction
Event driven programming is a very flexible way of allowing programs to respond to many inputs or events.
Unlike traditional programming, where the control flow is determined by the program structure, the
control flow of event driven programs is largely driven by external events. Typically, event loops are pre-
programmed to continually look for information to process.
This unit allows learners to become familiar with the underpinning concepts of event driven programming
and subsequently to develop particular skills in an event driven language. The unit starts by looking at the
features of event driven programming, explores the tools and techniques used in their development and
takes learners through design and program development. Learners will use a structured approach to the
design and development of applications, ensuring the solution is well documented and tested thoroughly
against the original user requirement.
Event handling features in many languages including Visual Basic, Visual Basic for Applications and many
other systems.
Learning outcomes
Event Driven Programming – Pearson BTEC Level 3 Nationals (QCF) specification in Information Technology
– Issue 4 – July 2020 © Pearson Education Limited 2020
1
Unit content
Key features: service oriented; time driven; event handlers; trigger functions; events eg mouse, keyboard,
HTML object, form, user interface; event loops; flexibility; suitability for graphical interfaces; simplicity of
programming; ease of development
Examples: operating systems as event driven systems; Graphical User Interfaces (GUIs)
Programming languages: eg Visual Basic (VB), Visual Basic for Applications (VBA), Coldfusion; Integrated
Development Environments (IDEs), C#
Triggers: eg key press, alarm, system event, touch screen event, mouse click
Tools and techniques: eg use of tool boxes and controls, selection, loops, event handlers, triggers,
objects and object properties, menus; debugging tools
Design: selecting and assigning properties to screen components; data storage; event procedures and
descriptions; appropriate ways of representing the processing tasks
Creation of application: use of development environment; debugging; data validation; error handling and
reporting
Programming language syntax: eg selecting, declaring and initialising variable and data structure types
and sizes
Constructs: selection eg if … then … else, CASE; iteration eg while … do, repeat … until
Programming standards: eg use of comments; code layout; indentation
Testing: test strategy; test plan structure eg test, date, expected result, actual result, corrective action;
error messages; specialist software tools eg debug
2 Event Driven Programming – Pearson BTEC Level 3 Nationals (QCF) specification in Information Technology
– Issue 4 – July 2020 © Pearson Education Limited 2020
Assessment and grading criteria
In order to pass this unit, the evidence that the learner presents for assessment needs to demonstrate that
they can meet all the learning outcomes for the unit. The assessment criteria for a pass grade describe the
level of achievement required to pass this unit.
PLTS: This summary references where applicable, in the square brackets, the elements of the personal,
learning and thinking skills applicable in the pass criteria. It identifies opportunities for learners to
demonstrate effective application of the referenced elements of the skills.
Event Driven Programming – Pearson BTEC Level 3 Nationals (QCF) specification in Information Technology
– Issue 4 – July 2020 © Pearson Education Limited 2020
3
Essential guidance for tutors
Delivery
Learners must have access to facilities that give them the opportunity to evidence all of the assessment
criteria fully. If this cannot be guaranteed centres should not attempt to deliver this unit.
It is likely that learners will need plenty of opportunities to develop their skills in the particular language
chosen and in the event handling aspects of that language. It is advised, therefore, that several small, well-
defined exercises are used to build competence. Good use should be made of formative assessments to
build confidence and ensure that learners are following good practice.
It is important that learners accept that solutions, however small, must be fit for purpose. This requires
focusing on capturing requirements, defining a specification, designing a solution and then testing and
reviewing it. Generic and underpinning skills will be of value later on, no matter what language is actually used.
The suggested delivery pattern follows the order of the learning outcomes in the unit specification. This is
not the only sequence that may be used and tutors can follow their own preference.
This unit is not designed with any specific programming language or delivery platform in mind; centres
may focus on one or more languages for teaching. Learners will develop an application that must be event
driven and may work on a range of platforms, therefore it may be command line, web based, graphical
user-interface based, games-console based or a deliverable for a mobile platform among other solutions.
Tutors are advised to keep delivery to one language, although many languages now allow development in
multiple platforms.
Learning outcome 1 covers all principles associated with the selected programming language. It is advised
to deliver all of the outcome to cover all programming concepts whilst teaching the concepts of event
driven systems in parallel.
The design in learning outcome 2, may use a range of design methodologies, ensuring that the selected
method is suited to the environment selected, as well as the chosen programming language of choice.
Implementation in learning outcome 3 must be based on a suitably structured problem that ensures use
of more than two trigger types, and some simple event driven code, both between events and as a result of
events.
Testing in learning outcome 4 must cover the code created in learning outcome 3 and designed in learning
outcome 2. Software testing can be used to enhance (not replace) this learning outcome and give learners
an extended software development experience.
Whilst this is, ideally, an introductory unit, developing learners’ understanding of programming, in
selecting the programming design and implementation for learning outcomes 2, 3 and 4 learners could be
encouraged to devise their own mini-project to develop their higher learning and project management skills
in preparation for the work environment and the HND project unit.
A centre may select a programming activity, or use an external source (employer, commissioner, open
source), the design of the programming solution does not need to be a stand-alone application and may be
an enhancement of, or extension to, existing work. Therefore learners completing this unit may contribute
to many open source development projects or use these as a basis for their learning experience.
4 Event Driven Programming – Pearson BTEC Level 3 Nationals (QCF) specification in Information Technology
– Issue 4 – July 2020 © Pearson Education Limited 2020
Outline learning plan
The outline learning plan has been included in this unit as guidance and can be used in conjunction with
the programme of suggested assignments. The outline learning plan demonstrates one way in planning the
delivery and assessment of this unit.
Event Driven Programming – Pearson BTEC Level 3 Nationals (QCF) specification in Information Technology
– Issue 4 – July 2020 © Pearson Education Limited 2020
5
Topic and suggested assignments/activities and/assessment
Assignment 4 – Finishing Off
Assessment
It is suggested that this unit is assessed using four assignments as summarised in the Programme of
suggested assignments table.
Finding a scenario which covers all aspects of all criteria is difficult, but the one suggested is acceptable.
It places the user in a role which is at an acceptable level for their experience, which is important when
devising assignments.
Some of the evidence required to complete the assignments could be naturally occurring within their
work for other units within the qualification, or for other courses they are undertaking, and tutors are
encouraged to use such evidence.
Evidence produced for this assignment can be used towards the evidence required for other criteria in this
unit.
In order to gain a pass grade, learners must meet all of the pass criteria.
For P1, learners must explain the features required to implement a given design. This refers to the features
section of the unit content for learning outcome 1. In order to achieve this criterion, learners must describe
the features clearly and logically, showing they have recognised the underpinning principles and in
particular, the reasons why triggers and timing are important. A presentation or leaflet would be a suitable
form of evidence.
For P2, learners must show that they are able to use event driven programming tools and techniques,
including those listed in the unit content. A presentation would be a suitable form of evidence.
For P3, learners must design an event driven program. The program only needs to be basic, as suited to the
level of learners, but obviously this is at the discretion of the tutor and the individual learners. The design
should be clear and have no obvious errors.
For P4, learners must create the program they worked on for P3. This program should be fully functional,
and fulfil the design aims set down.
For P5, learners must develop and apply an appropriate test plan for the program they worked on for P4.
The test plan should test functionality and demonstrate that the program fulfils the design aims and other
requirements. Evidence is likely to be in the form of a short report on the test plan and results, illustrated
with screen grabs.
For P6, learners must produce onscreen help for an event driven program. The help screens must be
coherent and laid out according to the standards that learners have previously been taught. It is up to the
tutor at this stage whether they wish to have learners use the work they have produced for P4 and P5, or to
give learners a generic event driven program for which to write the appropriate help.
In order to gain a merit, learners must achieve all the pass criteria, and all of the merit criteria.
For M1, learners must discuss how an operating system can be viewed as an event driven application. This
will probably be the operating system that learners are working with but tutors may choose a different one
if they wish. As with P1, evidence should be a poster, leaflet or short report but a presentation can also be
used if the learner or tutor would prefer.
For M2, learners must justify their choice of tools and techniques used in the production of the event
driven application created in P3. Evidence should be a short report, or similarly detailed presentation.
6 Event Driven Programming – Pearson BTEC Level 3 Nationals (QCF) specification in Information Technology
– Issue 4 – July 2020 © Pearson Education Limited 2020
For M3, learners must analyse the results of their testing in P6. The analysis should compare expected to
actual results to identify discrepancies. It would also be expected that learners would suggest what actions
should be taken to resolve any problems shown up by the testing. Evidence for this criterion should be a
short report. This could be an extension of the P6 report.
For M4, learners will create technical documentation for the support and maintenance of a computer
program. As with P6, it is up to the tutor whether they wish to have learners use the work they have
carried out for P4 and P5, or to give learners a generic event driven program. The documentation must be
coherent and laid out according to the standards that learners have been taught previously.
In order to gain a distinction grade, learners must achieve all of the pass and merit criteria and both the
distinction criteria.
For D1, learners will evaluate the suitability of event driven programs for non-graphical applications.
Evidence for this criterion should be a short report, or similarly detailed presentation.
For D2, learners will evaluate an event driven application. There is the option here for the learner to review
their P5 work, or to be given a generic program to review. Alternatively, the tutor could give learners the
work of one of their peers to review. Evidence should be a short report, or similarly detailed presentation.
Event Driven Programming – Pearson BTEC Level 3 Nationals (QCF) specification in Information Technology
– Issue 4 – July 2020 © Pearson Education Limited 2020
7
Links to other BTEC units
This unit forms part of the BTEC in IT sector suite. This unit has particular links with the following unit titles
in the IT suite:
Essential resources
Learners will need individual access to a development environment that allows them to design and
develop event driven applications. It is also advised that appropriate numbers of manuals and help
sheets are readily available and easily accessible to learners.
The use of vocational context is essential in the delivery and assessment of this unit. Learners will require
access to computer equipment to enable them to gain a practical awareness and enable them to apply
their knowledge and understanding in a practical situation.
There are a range of organisations that may be able to help to centres engage and involve local employers
in the delivery of this unit, for example:
z Network for Science, Technology, Engineering and Maths Network Ambassadors Scheme
8 Event Driven Programming – Pearson BTEC Level 3 Nationals (QCF) specification in Information Technology
– Issue 4 – July 2020 © Pearson Education Limited 2020
Delivery of personal, learning and thinking skills
The table below identifies the opportunities for personal, learning and thinking skills (PLTS) that have been
included within the pass assessment criteria of this unit.
Although PLTS are identified within this unit as an inherent part of the assessment criteria, there are further
opportunities to develop a range of PLTS through various approaches to teaching and learning.
Event Driven Programming – Pearson BTEC Level 3 Nationals (QCF) specification in Information Technology
– Issue 4 – July 2020 © Pearson Education Limited 2020
9
Functional Skills – Level 2
10 Event Driven Programming – Pearson BTEC Level 3 Nationals (QCF) specification in Information Technology
– Issue 4 – July 2020 © Pearson Education Limited 2020