Unit 1 Frankie Part 2 Flashcards

1
Q

What is event driven programming?

A

Object oriented programming which combines paradigms. It uses the principles of procedural programming, but the key difference is the idea that blocks of code are defined, and executed only in response to a specific event being raised.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a structure event driven programming consist of?

A

It consists of Main loop, Call-back function and sub-routines.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does a features event driven programming consist of?

A

It consists of Events, Event loops, even handlers, Service orientated processing, time driven and trigger functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an event handler?

A

The event handler is the block of code that is intended to run in response to an event. Say you want a message to appear when a button is clicked: the button being clicked is the event, and the event handler is the code that makes the message appear.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an event loop?

A

The event loop is a queue data structure, and it contains a list of events that have been raised, along with any relevant data (for example the x and y coordinates of a mouse click).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a service oriented processing?

A

Service Oriented Processing refers to background services running on a system, that are awoken by events. The easiest example to understand is the USB device recognition service on a modern PC. When a USB device is attached or removed, an event is raised and dispatched to the software service, which enables interaction to determine, amongst other things, what action to take with the new device. Also there is no point of scanning the usb devices constantly because you only need to know when the attached devices change.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a time driven?

A

Time-driven means that the system is sensitive to time. This is easiest to comprehend with an example – perhaps an alarm clock.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is trigger function?

A

Trigger functions are the glue that match events to event handlers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly