Filters
Question type

Study Flashcards

When you define your own event-handler delegate, what arguments are required? Provide an example of a delegate declaration.

Correct Answer

verifed

verified

Just like the event handlers automatical...

View Answer

An event that occurs as a result of interaction with the keyboard is known as what type of event?


A) key events
B) external events
C) input events
D) console events

Correct Answer

verifed

verified

Any delegate can encapsulate any method that has the same return type and parameter list as the delegate.

Correct Answer

verifed

verified

What event occurs when a mouse button is released while the mouse is within the Control's boundaries?


A) MouseClick
B) MouseHover
C) MouseUp
D) MouseMove

Correct Answer

verifed

verified

What is used to declare your own event in C#?


A) handlers
B) trigger objects
C) delegates
D) raisers

Correct Answer

verifed

verified

For static methods, what does a delegate object encapsulate?


A) The class utilized by the methods.
B) The arguments passed to the methods.
C) The method to be called.
D) Custom events defined within the methods.

Correct Answer

verifed

verified

Given a GUI Control, what objects and delegates are provided to handle mouse events such as clicking, pointing, and dragging?

Correct Answer

verifed

verified

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.

The C# language requires that every event must use a delegate type with three parameters.

Correct Answer

verifed

verified

What is the relationship between an event sender and event receiver?

Correct Answer

verifed

verified

The object that generates an event, such...

View Answer

What expression describes the act of calling an event method?


A) cascading the event
B) revoking the event
C) invoking the event
D) composing the event

Correct Answer

verifed

verified

When an event occurs, any delegate that a client has given or passed to the event is invoked.

Correct Answer

verifed

verified

What keyword can be used to declare a delegate?


A) handler
B) function
C) pointer
D) delegate

Correct Answer

verifed

verified

D

What Boolean property of a Control identifies whether the Control will serve as a stopping place in a sequence of Tab key presses?


A) TabIndex
B) TabCount
C) TabStop
D) TabFlag

Correct Answer

verifed

verified

What file can be opened to examine all the code generated by the Windows Form Designer for an application that creates a Form?


A) Designer.cs
B) EventHandlers.cs
C) Project.cs
D) Form.cs

Correct Answer

verifed

verified

A

When you double-click a Button on a Form in the IDE, you automatically generate the shell of what method?


A) Click()
B) Double_Click()
C) Enter()
D) Focus()

Correct Answer

verifed

verified

Mouse events can be handled for any control through an object of what class?


A) MouseEvent
B) MouseEventArgs
C) MousePressEventArgs
D) MousePressArgs

Correct Answer

verifed

verified

What happens when the TabIndex values of two or more Controls is set to 0?


A) An Exception is thrown, and the program ends.
B) No errors are generated, but only one Control will receive focus.
C) After setting one Control to 0, the other Control will be forced to a 1 or other unique number.
D) Both Controls will receive focus at the same time.

Correct Answer

verifed

verified

A C# delegate is similar to what variable type in C++ that holds a method's memory address?


A) object pointer
B) integer pointer
C) function pointer
D) reference pointer

Correct Answer

verifed

verified

What event occurs when the user clicks the mouse within the Control's boundaries?


A) MouseClick
B) MouseEnter
C) MouseHover
D) MouseLeave

Correct Answer

verifed

verified

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?

Correct Answer

verifed

verified

Keyboard events, also known as key event...

View Answer

Showing 1 - 20 of 41

Related Exams

Show Answer