[go: up one dir, main page]

0% found this document useful (0 votes)
21 views2 pages

Sameed Test cs411

Uploaded by

zaeemfarooq125
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

Sameed Test cs411

Uploaded by

zaeemfarooq125
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Test Questions

Section A: Easy (Multiple Choice Questions)


1. Which of the following is a primary focus of the Visual Programming
course?
a) Low-level memory management
b) Event-driven programming concepts
c) Database management systems
d) Network security
2. What is the main purpose of event-driven programming?
a) Execute sequential instructions
b) Respond to specific occurrences or triggers
c) Manage database queries
d) Optimize memory usage
3. Which language is primarily used in this course for GUI
programming?
a) Python
b) JavaScript
c) C#
d) C++
4. In a GUI-based application, what is typically considered an event?
a) A block of code
b) A user action, such as a mouse click
c) A variable declaration
d) A server-side operation
5. What is the difference between synchronous and asynchronous
operations?
a) Synchronous operations run on multiple threads; asynchronous does not
b) Synchronous operations wait for completion; asynchronous can proceed
without waiting
c) Asynchronous operations are always faster than synchronous
d) There is no difference

Section B: Medium (Short Answer Questions)


1. Define event-driven programming. Explain its advantages over
request-response-based programming.
2. Differentiate between raw events and derived events. Provide
examples for each.
3. What are the key components of event-driven architecture? Briefly
describe their roles.
4. Explain the difference between event producers and event
consumers. Provide a real-world example of each.
5. Describe the purpose of delegates in C#. How do they contribute to
event-driven programming?

Section C: True/False
1. Delegates in C# can only refer to methods that have a predefined
signature.
True / False
2. Event-driven programming always requires the use of graphical user
interfaces (GUIs).
True / False
3. In C#, multiple inheritance is not allowed for classes but is
supported through interfaces.
True / False
4. An event can have multiple handlers in C#.
True / False
5. A derived class in C# can override a method from its base class only
if the method in the base class is marked as virtual.
True / False

You might also like