Visual Programming MCQs with Answers
Practice important Visual Programming MCQs with answers and explanations.
Chapter: 3
Q61:
What is a key advantage of using events over requests?
A. Events are always processed synchronously
B. Events reduce latency compared to a pull style
C. Events are easier to implement
D. Events provide stronger security
Correct Answer:
B
Chapter: 3
Q62:
What is an event channel?
A. A communication protocol between client and server
B. A subscription mechanism for events
C. A type of request-response mechanism
D. A logging system for events
Correct Answer:
B
Chapter: 3
Q63:
What is a key feature of event-driven architecture (EDA)?
A. It is always synchronous
B. It is based on request-response
C. It decouples event producers and consumers
D. It relies on monolithic applications
Correct Answer:
C
Chapter: 3
Q64:
What does Service-Oriented Architecture (SOA) primarily use for communication?
A. Events
B. Messages
C. Request-response
D. Streams
Correct Answer:
C
Chapter: 3
Q65:
What is an EVENT PRODUCER?
A. An entity that receives events from the system
B. An entity that introduces events into the system
C. A process that processes events
D. A mechanism for logging events
Correct Answer:
B
Chapter: 3
Q66:
What is an EVENT CONSUMER?
A. An entity that introduces events into the system
B. An entity that receives events from the system
C. A process that processes events
D. A component that logs events
Correct Answer:
B
Chapter: 3
Q67:
What is a RAW EVENT?
A. An event that is processed by an event consumer
B. An event introduced into the system by an event producer
C. An event that is generated inside the system
D. An event that has been derived from another event
Correct Answer:
B
Chapter: 3
Q68:
What is a DERIVED EVENT?
A. An event introduced by a consumer
B. An event introduced by a producer
C. An event generated as a result of event processing
D. An event that is yet to be processed
Correct Answer:
C
Chapter: 3
Q69:
What does STATELESS EVENT PROCESSING mean?
A. Each event is processed independently without influencing subsequent events
B. Events are stored temporarily for future processing
C. The system ignores the sequence of events
D. Events are processed in real-time without any delay
Correct Answer:
A
Chapter: 3
Q70:
What is an EVENT STREAM?
A. A collection of unrelated events
B. A set of associated events, often temporally ordered
C. A process of generating events
D. A system for storing events
Correct Answer:
B
Chapter: 3
Q71:
What is a HOMOGENEOUS EVENT STREAM?
A. A stream with events of the same type
B. A stream with events of different types
C. A stream that processes events in random order
D. A stream that ignores event types
Correct Answer:
A
Chapter: 3
Q72:
What is a HETEROGENEOUS EVENT STREAM?
A. A stream with events of the same type
B. A stream with events of different types
C. A stream that processes events in real-time
D. A stream that processes only raw events
Correct Answer:
B
Chapter: 3
Q73:
In the provided code, what does the onkeypress() function do?
A. It processes file changes
B. It detects a key press and returns whether the key is 'x'
C. It reads from a file
D. It writes to a file
Correct Answer:
B
Chapter: 3
Q74:
What does the onfileread() function check for?
A. If the file is empty
B. If the last character read from the file has changed
C. If the file can be written to
D. If the file has been closed
Correct Answer:
B
Chapter: 3
Q75:
What is the purpose of the onfilechanged() function in the provided code?
A. To check if the file is still open
B. To output the changed character and return whether it is 'x'
C. To close the file after reading
D. To open the file for writing
Correct Answer:
B
Chapter: 3
Q76:
What causes the program to exit in the provided code?
A. When 'x' is read from the keyboard or the file
B. When the file is empty
C. When any key is pressed
D. When the file is closed
Correct Answer:
A
Chapter: 3
Q77:
What is the role of the variable filechanged in the provided code?
A. It tracks whether a key has been pressed
B. It indicates if a file change has been detected
C. It counts the number of events processed
D. It stores the last character read from the file
Correct Answer:
B
Chapter: 3
Q78:
In event processing, what is an event type?
A. A specific method used to process an event
B. A specification for a set of events with the same semantic intent
C. A way to categorize events based on priority
D. A data structure used to store event logs
Correct Answer:
B
Chapter: 3
Q79:
What is an event attribute?
A. A function that handles an event
B. A component of an event's structure, such as its name or data type
C. A method of storing events in memory
D. A type of event log
Correct Answer:
B
Chapter: 3
Q80:
Which of the following is NOT an example of an event attribute?
A. Name
B. Data type
C. Occurrence time
D. File path
Correct Answer:
D