Filters
Question type

Study Flashcards

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.

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

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

E) A) and D)
F) A) and C)

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

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

Correct Answer

verifed

verified

The object that generates an event, such...

View Answer

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

A) True
B) False

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

E) B) and C)
F) A) and B)

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

E) None of the above
F) A) and D)

Correct Answer

verifed

verified

A

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

A) True
B) False

Correct Answer

verifed

verified

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

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

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()

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

What keyword can be used to declare a delegate?


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

E) A) and B)
F) B) and C)

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

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

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

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.

E) A) and B)
F) A) and C)

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

E) All of the above
F) A) and C)

Correct Answer

verifed

verified

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

A) True
B) False

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

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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


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

E) A) and B)
F) None of the above

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.

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

E) None of the above
F) A) and C)

Correct Answer

verifed

verified

Showing 1 - 20 of 41

Related Exams

Show Answer