Thursday 17 November 2011

ASP.Net Multiple Choice Questions and Answers for freshers and Experienced

1. Choose the form in which Postback occur?
2. Web.config file is used...?
3. Which of the following object is not an ASP component?
4. The first event triggers in an aspx page is.?
5. Difference between Response.Write() andResponse.Output.Write().
6. Which of the following method must be overridden in a custom control?
7. How do we create a FileSystemObject?
8. Which of the following tool is used to manage the GAC?
9. What class does the ASP.NET Web Form class inherit from by default?
10. We can manage states in asp.net application using?
11. Attribute must be set on a validator control for the validation to work.?
12. Caching type supported by ASP.Net?
13. What is used to validate complex string patterns like an e-mail address?
14. File extension used for ASP.NET files.?
15. An alternative way of displaying text on web page using?
16. Why is Global.asax is used?
17. Which of the following is not a member of ADODBCommand object?
18. Which DLL translate XML to SQL in IIS?
19. Default Session data is stored in ASP.Net.?
20. Default scripting language in ASP.?
21. How do you get information from a form that is submitted using the "post" method?
22. Which object can help you maintain data across users?
23. Which of the following ASP.NET object encapsulates the state of the client?
24. Which of the following object is used along with application object in order to ensure that only one process accesses a variable at a time?
25. Which of the following control is used to validate that two fields are equal?
26. Mode of storing ASP.NET session?
27. Which of the following is not the way to maintain state?
28. You can have only one Global.asax file per project.?
29. ______________ element in the web.config file to run code using the permissions of a specific user?
30. __________________ is a special subfolder within the windows folder that stores the shared .NET component.?
31. Which of the following is the performance attributes of processModel?
32. Which of the following is faster and consume lesser memory?
33. Which of the following is the way to monitor the web application?
34. The ________________ property affects how the .Net Framework handles dates, currencies, sorting and formatting issues.?
35. Where do we include the user lists for windows authentication?
36. Where do we include the user lists for Form authentication?
37. Which of the following authentication is best suited for a corporate network?
38. What attributes do you use to hide a public .Net class from COM?
39. By default, code written with the Debug class is stripped out of release builds.?
40. ___________________ tests make sure that new code does not break existing code.?
41. Which of the following is used to cache multiple responses for a single web form based on HTTP POST parameter or query string?
42. By default, ASP.NET store SessionIDs in _________________?
43. Which one of the following is the last stage of the Web forms lifecycle?
44. Which of the following base class do all Web Forms inherit from?
45. _____________is a property common in every validation control.
46. Which one of the following is used to obtain performance information about a Web Application?
47. ______________is the first method that is fired during the page load.
48. What namespace does the Web page belong in the .NET Framework class hierarchy?
49. Which one of the following is the fastest way to concat strings in ASP.NET?
50. When does Garbage collector run?
51. Which of the following object encapsulates the state of the client and the browser?
52. Which one of the following is the type of assembly that contains localized resources?
53. __________________ method(s) are used with Application object to ensure only one process accesses a variable at a time.
54. Which one of the following is to be implemented for .NET remote server object?
 55. ______________ is the DataType return in IsPostback property.
  56. ____________ is the Microsoft IIS server running, handling ASP.NET requests among other things
 57. By default, a .Net web site is configured with which of the following authentication types?
58.What is the best way to store the connection strings?
59. In which event are the controls fully loaded?
60. What is the name of the property of ASP.NET page that you can query to determine that a ASP.NET page is being requested not data being submitted to web server?
 61. For separating server-side code from client-side code on a ASP.NET page, what programming model should you use?
62. To perform asynchronous data access, what must be added to the connection string?
63. You are writing ASP.NET 2.0 Web site that collects lots of data from users, and the data collection forms spreads over multiple ASP.NET Web pages. When the user reaches the last page, you need to gather all of data, validate the data, and save the data to the SQL Server database. You have noticed that it can be rather difficult to gather the data that is spread over multiple pages and you want to simplify this application. What is the easiest control to implement that can be used to collect the data on a single Web page?
64. In your ASP.NET web application you want to display a list of clients on a Web page. The client list displays 10 clients at a time, and you require the ability to edit the clients. Which Web control is the best choice for this scenario?
65. While developing ASP.NET 2.0 web application you have a DataSet containing a Customer DataTable and an Order DataTable. You want to easily  navigate from an Order DataRow to the Customer who placed the order. What object will allow you to easily navigate from the Order to the Customer?
66. While developing ASP.NET 2.0 web application you want to display a list of parts in a master/detail scenario where the user can select  a part number using a list that takes a minimum amount of space on the Web page. When the part is selected, a DetailsView control displays all the information about the part and allows the user to edit the part. Which Web control is the best choice to display the part number list
for this scenario?
67. How to implement authentication via web.config?
68. In the Design view in Visual Studio 2005 of an ASP.NET web page, what is the easiest way to create an event handler for the default event of  a ASP.NET server control?
69. While writing code in Visual Studio 2005 you creates a new instance of a ASP.NET TextBox server control, what do you need to do to get the TextBox to display on the Web page?
70. Session_End fires in which of these SessionState modes?
71. Cache["dd"]="asp.net";
What is the timeperiod of this Cache object?
72. You are developing a web application that is retrieving historical library information from database server and displays it to the users of your application. What cache strategy will give you the best performance?
73. What ASP.NET object encapsulates the state of the client and the browser?
74. You need to store state data that is accessible to any user who connects to your Web application. Which object should you use?
75. When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious.
The controls can ___________________ their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.
76. __________________ is the Microsoft IIS server running, handling ASP.NET requests among other things
77.What is the default value for the Method attribute in a ASP.NET server-side Form control
78.Which property allows ASP.NET controls to maintain their values when a page is posted to itself.
79.In a ASP.NET page, which is the best way to find if the contents of a TextBox has changed after the form containing the TextBox has been posted back to the server
80.Which statement among the ones below is correct?