header1.html

Thursday 18 April 2013

ASP.NET Quiz-2


ASP.NET Quiz-2
1.Which property allows ASP.NET controls to maintain their values when a page is posted to itself.
AutoPostBack
SaveValue
MaintainValue
EnableViewState


2.Which property determines whether a control is displayed to the user?
Hide
Show
Visible
Enabled


3. The Button control can be activated
programmatically through the click event.
by clicking the button with the mouse.
with the form’s DefaultButton property.
Both a and b.


4.In event-driven programming an event is generated by.....
the system
a user’s action
the program itself.
All of the above


5.Which is not a common control event?
Click
SingleClick
DoubleClick
MouseMove


6.The Tick event is found only in which object?
Form
Button
Timer
TextBox


7.The Activated event is found only in which object?
Form
Button
Timer
TextBox


8.Which is not a valid value for the ListBox SectionMode Property?
None
One
MultiSimple
All of the above


9.Setting the SelectedIndex property of a ListBox to -1 will...
cause an error
de-select any selected item.
cannot be done.
select first item.


10.Which method of a ListBox will remove just one item at a time?
Items.RemoveAt
Item.RemoveAt
Items.ClearAt
Item.ClearAt

No comments:

Post a Comment