42 questions
When pressed, what will a button immediately cause in an event driven language?
Code to be run
Changes to the environment
The user will make a choice and interact with the application
An event to be triggered
Which of the following is FALSE about Event driven programming?
Event driven programs can be run multiple times with different outcomes based on user interactions
The flow of event driven program cannot always be known ahead of time
Event driven programs do not implement algorithms
Some portion of an event driven program may never execute while the program is still running
What are trigger functions in event driven programming?
trigger functions are functions that save the properties of an event driven program
trigger functions are executed when the user right clicks only
trigger functions choose which event handler needs to be ran for the event
trigger functions play the same role as event handlers
Which of the following is an example of timed event?
Submit button on a form clicked
User typing into a text field
Changing the selected item in the list
Alarm ringing everyday
What is the difference between event loop and event handler?
Event handlers are executed when more than one events occur whereas event loop is executed when one event occurs
Event handlers are lines of code executed when an event occurs where as event loop are lines of code that keep on checking for an event to occur
Both of them play the same role
Event loops are lines of code executed when an event occurs where as event handlers are lines of code that keep on checking for an event to occur
Which of the following is NOT a feature of object oriented programming?
Data Abstraction
Inheritance
Time Driven
Classification
The following statements describe the features of an event-driven program. Three of them are true and one is False. Which one is False?
It responds to events.
It always follow one flow of control
It is service oriented
It uses event loops
Which one of the following is not a computing event?
Mouse Click on the login button
Key Press on the register form
Tap on Button "Twitter" on the Phone
Time taken for the application to run
Which one of the following is not Time Driven?
Alarm running on a computer desktop
Automatic Backup of whatsapp
Automatic Update of the OS in phone
Login Method running when user taps on login button
Event handlers are...
response to a computer event
block of code that runs when a designated event runs
Method containing statements that are executed when an event occurs
All of the above
A programming structure that continually tests for external events and calls the appropriate routines to handle them
Event Handler
Trigger Functions
Event Loop
All of the above
Which one of the following is not a feature of event driven programming?
Flexible
Suitable for Graphical Interfaces
Easy to develop
Sequential Execution
functions that decide on what code to perform whenever a specific event occurs
Trigger Functions
Event Handlers
Event Loops
All of the above