Exam 13: Handling Events
Exam 1: A First Program Using C#40 Questions
Exam 2: Using Data39 Questions
Exam 3: Using Gui Objects and the Visual Studio Ide40 Questions
Exam 5: Looping40 Questions
Exam 6: Using Arrays40 Questions
Exam 7: Using Methods39 Questions
Exam 8: Advanced Method Concepts39 Questions
Exam 9: Using Classes and Objects39 Questions
Exam 10: Introduction to Inheritance40 Questions
Exam 11: Exception Handling39 Questions
Exam 12: Using Controls40 Questions
Exam 13: Handling Events41 Questions
Exam 14: Files and Streams40 Questions
Exam 15: Making Decisions40 Questions
Select questions type
Given a GUI Control, what objects and delegates are provided to handle mouse events such as clicking, pointing, and dragging?
Free
(Essay)
4.8/5
(30)
Correct Answer:
Mouse events include all the actions a user takes with a mouse, including clicking, pointing, and dragging.Mouse events can be handled for any Control through an object of the class MouseEventArgs.The delegate used to create mouse event handlers is MouseEventHandler.Every mouse event-handling method must have two parameters: an object representing the sender, and an object representing the event.Depending on the event, the type of the second parameter is EventArgs or MouseEventArgs.
What file can be opened to examine all the code generated by the Windows Form Designer for an application that creates a Form?
Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
A
What keyword can be used to declare a delegate?
Free
(Multiple Choice)
5.0/5
(45)
Correct Answer:
D
What happens when the TabIndex values of two or more Controls is set to 0?
(Multiple Choice)
4.8/5
(41)
When an event occurs, any delegate that a client has given or passed to the event is invoked.
(True/False)
4.8/5
(39)
What are common keyboard events? What is the delegate used to create a keyboard event handler, and what is the type of the second parameter to the event handler?
(Essay)
4.9/5
(32)
Any delegate can encapsulate any method that has the same return type and parameter list as the delegate.
(True/False)
4.8/5
(40)
An event that occurs as a result of interaction with the keyboard is known as what type of event?
(Multiple Choice)
4.9/5
(43)
When you double-click a Button on a Form in the IDE, you automatically generate the shell of what method?
(Multiple Choice)
4.8/5
(31)
A C# delegate is similar to what variable type in C++ that holds a method's memory address?
(Multiple Choice)
4.8/5
(34)
The C# language requires that every event must use a delegate type with three parameters.
(True/False)
4.8/5
(41)
When you define your own event-handler delegate, what arguments are required? Provide an example of a delegate declaration.
(Essay)
4.8/5
(39)
What event occurs when the user clicks the mouse within the Control's boundaries?
(Multiple Choice)
4.7/5
(37)
Mouse events can be handled for any control through an object of what class?
(Multiple Choice)
4.8/5
(38)
What event occurs when a mouse button is released while the mouse is within the Control's boundaries?
(Multiple Choice)
4.9/5
(38)
For static methods, what does a delegate object encapsulate?
(Multiple Choice)
4.9/5
(41)
What expression describes the act of calling an event method?
(Multiple Choice)
4.8/5
(34)
What Boolean property of a Control identifies whether the Control will serve as a stopping place in a sequence of Tab key presses?
(Multiple Choice)
4.7/5
(30)
Showing 1 - 20 of 41
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)