Multiple choice technology programming languages

When an ASP.NET server control is added to a Web Form, Visual Studio .NET adds one item to the class for the form. What item is added ?

  1. The event registration

  2. A protected class member for the control

  3. A default event handler for the click event

  4. A default class that inherits from the control’s base class

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

When a server control is added to a Web Form, Visual Studio automatically adds a default event handler for the control's default event (typically Click for buttons) to the form's code-behind class. This follows the WithEvents event handling pattern. The control itself is added as a field, but the question asks what is added beyond the control declaration - event handlers are auto-generated.