P1 Explain the key features of an event-driven program
Service oriented: This will run every time when an event is about to occur. For example, If
the user wants to cast a video from there phone to the TV wirelessly, they will just have to
click the Cast button and it will be immediately loaded and played on the TV.
Time driven: Time driven is a function in the program which allows users to schedule a
particular action which is performed only when the specified time is reached. it's up to the
developer as he can always choose a schedule and time for the action. This means that you
can perform functions and tasks only at the set time. You can also set it multiple times.
Trigger functions: This will determine which event should run when something is triggered.
These triggers allow the panel to display a specific colour or display a label. A trigger can
only fire if all functions and properties are correct if the functions and properties are not
correct the function will not be executed.
Events: An event is when something is happening on your program this is done by mouse
clicks so you can use the mouse clicks to click options will activate a line of code to act.
Another event in a program would be when a user presses keys on there keyboard. This is
also an event as the keys that are pressed will activate some code that will allow them to
type on a program.
Event handlers: This is the process that happens after an event happens so when a user
uses a mouse click they may click the button to change to the next form. This is an event
handler as the process from the button click to the form change is known as the event
handler. As a piece of code will be activated which allows the form change.
Event Loops: Event loops allow the programmer to add a loop to their program. For
example, in there form they may have a questionnaire which will require a correct answer
before moving forward. With the use of an event loop the programmer can code the
program to repeat it self until the correct answer is submitted.
Flexibility: This is when the programmer adds multiple objects to create a more informative
form. An example of some objects that programmers add are list boxes, colour panels,
buttons and text boxes. This will also allow user to communicate with the form better
Suitability for graphical interfaces: This is the case when a program is compatible with
physical icons and buttons to make it easier for users to understand and use, because if the
program is too complicated then the user will not be able to use the program. The graphical
interface improves the user experience and makes the program more efficient for users.
Simplicity of programming: This is where the programmer will add features to some objects
that will allow users t fill in the form more easily. For example, they may disable some list
box options that are not required when another option in a previous choice is selected. They
could also add masked text boxes which do not let users type numbers in the “name” text
box this will allow ease of use as it will lessen the chances for errors.
Ease of development: This is when the program is given to another programmer to fix. The
second programmer will have to modify and edit the program to see if there are any errors
and fix those error. If a program has ease of development the second programmer will easily
be able t edit and fix the errors with the program.
, M1 Discuss how an operating system can be viewed as an event-driven
application
An event will trigger when a user double clicks an icon on the desktop. The reason why an
event is triggered is because when the icon is double clicked it will open. In my case I
decided to double click the chrome icon which triggered an event as it opened and allowed
me to access the internet.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller hasanqadri12003. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £7.49. You're not tied to anything after your purchase.