header1.html

Thursday 20 June 2013

C# and asp.net mcqs


1.In ASP.NET ,What method must be overridden in a custom control ?
A.Paint()
B.Build()
C.Run()
D.Render()
Click for answer 

D.Render()
2. The Visual Studio.NET IDE creates ____________supplementary file,that contains General Information about the assembly.
A.AssemblyInfo.xml
B.AssemblyInformation.cs
C.AssemblyInfo.cs
D.AssemblyAttributes.cs
Click for answer 

C.AssemblyInfo.cs
3.Regular expressions are used to validate complex string patterns like an e-mail address.True or False?
A.False
B.True.
Click for answer 

B.True
4.All dll's should not have starting point(Main() method) of execution?
A.Can't say,it may have
B.False
C.True
Click for answer 

C.True
5.The ASP.NET directive that lets you cache different versions of a page based on varying input parameters, HTTP headers and browser type is______.
A.@CacheOutput
B.@PageCache
C.@CacheAll
D.@OutputCache
Click for answer 

D.@OutputCache
6.An Event Handler is a subroutine that executes code for a given event.True/False?
False
True
Click for answer 

B.True
7.If you want to execute the code in the Page_Load subroutine only the FIRST time the page is loaded, you can use the Page.IsPostBack property.True/False?
A.True.
B.False
Click for answer 

A.True
8.All server controls must appear within a <form> tag
A.True.
B.False.
Click for answer 

A.True.

No comments:

Post a Comment