Exam 13: Handling Events

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When you click a component on a Form in Design View, you move to the default method code.

(True/False)
5.0/5
(43)

What provides a way for the clients of a class to dictate methods that should execute when an event occurs?

(Multiple Choice)
4.9/5
(40)

What is another term for the performing of an action, such as the click of a button by a user?

(Multiple Choice)
4.9/5
(40)

In C#, when something interesting happens to an object, what is said to have occurred?

(Multiple Choice)
4.9/5
(35)

What are the two actions that can be taken on an event field?

(Essay)
4.9/5
(30)

When a Form contains multiple Controls, you can create a separate event handler for each Control.However, you can also associate the same event handler with multiple Controls.Describe how to associate an existing event handler with a second Control using the IDE.

(Essay)
4.7/5
(34)

What event occurs when the mouse cursor leaves the Control's boundaries?

(Multiple Choice)
4.9/5
(41)

The connection of an event to its resulting actions is known by what term?

(Multiple Choice)
4.9/5
(38)

What is an important difference between KeyEventArgs properties and KeyPressEventArgs properties?

(Essay)
4.7/5
(32)

Assume you declare three delegates named delegate1, delegate2, and delegate3.You then assign a reference to method M1() to delegate1, and a reference to method M2() to delegate2.How do you make delegate3 into a composed delegate that executes both M1() and M2()? What are the rules concerning return type and parameter list for composed delegates?

(Essay)
4.9/5
(44)

What term can be used to describe an event-handler method?

(Multiple Choice)
4.9/5
(31)

Describe the methods that could be encapsulated by a delegate that has been defined as: delegate void GreetingDelegate(string s);

(Essay)
4.7/5
(36)

In a button event-handler parameter list, the second argument is an object of what type?

(Multiple Choice)
4.9/5
(37)

The code generated in Design mode in the IDE is not meant to be altered by typing.You should modify Control properties through the Properties window in the IDE.

(True/False)
4.9/5
(46)

For events that do not use additional information, the .NET Framework has already defined an appropriate delegate type with what name?

(Multiple Choice)
4.9/5
(32)

What property stores the key code along with any modifier key for a key event?

(Multiple Choice)
4.9/5
(41)

Depending on the event, the delegate used to create the keyboard event handler is either KeyEventHandler or what other event handler?

(Multiple Choice)
4.8/5
(32)

Events must be declared as private.

(True/False)
4.7/5
(42)

What are the properties of the MouseEventArgs class?

(Essay)
4.9/5
(47)

What class has a static field named Empty that represents an event that contains no event data?

(Multiple Choice)
4.8/5
(35)
Showing 21 - 40 of 41
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)