























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A wide range of topics related to asp.net, a popular web application framework developed by microsoft. It includes questions and answers on various aspects of asp.net, such as caching, session management, validation controls, ajax, and event handling. A comprehensive overview of the key concepts and features of asp.net, making it a valuable resource for students and developers who are looking to deepen their understanding of this technology. The questions cover a range of difficulty levels, from basic to more advanced, and the answers provide detailed explanations to help readers gain a thorough grasp of the subject matter.
Typology: Lab Reports
1 / 31
This page cannot be seen from the preview
Don't miss anything!
D. All of the above ANS: D
C. Multiplexing D. Duplexing ANS: A
B. To compare the value entered into a form field against a fixed value. C. To compare the value of one form field against another. D. All of the above. ANS: D
76 If any user has disabled cookies in their browsers, what can you do to enable them to use forms authentication? A. Set BoweserCookieEnabled=true; B.Set cookieless=true; C.Use the AutoDetect setting of the cookieless attribute. D.None of the above. Answer:C 77 What property and method of the Page object do you use to register client script dynamically from code? A. ScriptManager control is used to dynamically register client script from code. B.The Page.ClientScript.RegisterClientScriptBlock is used to dynamically register client script from code. C.ScriptManagerProxy control is used to dynamically register client script from code. D.None of the above. Answer:C 78 How to implement authentication via web.config? A. Include the authentication element. B. Include the authorization element. C. Include the identity element. D. Include the deny element. Answer: B 79 What ASP.NET object encapsulates the state of the client and the browser? A. Application Object B. Session Object B.Response Object D.Request Object Answer: B 80 What data type is returned when calling the ExecuteScalar method of a command object? A. System.Int B Object C No of effected records. D. None of the above. Answer: B 81 There is a button on page name cancel and it should bypass validation when cancel button is clicked. What will you do? A. set CausesValidation = false. B. set RemoveValidation=true C. set cancel=true D. None of the above.
Answer: A 82 HTTP messages are typically sent between the Web server and Web browser using which Port number? A. 70 B. C. D. Answer:B 83 CompareValidator control can be used for performing which task? A. To perform a data type check. B. To compare the value entered into a form field against a fixed value. C. To compare the value of one form field against another. D. All of the above. Answer :D 84 You want to make a configuration setting change that will affect only the current Web application. Which file will you change? A. Global.asax B. Web.config in the root of the Web application C.Machine.config D.All of the above Answer:B 85 Which programming model should you implement if you want to separate your server-side code from your client-side layout code in a Web page? A. Single-file model B. Code-behind model C. Inline model D. Client-server model Answer:B 86 Which protocol is used for requesting a web page in ASP.NET from the Web Server? A.HTTP B.TCP C.SMTP D.None of the above. Answer: A 87 ______________is the first method that is fired during the page load. A. PreRender() B. Load() C. Unload() D. Init() Answer : D
94 How will you add a TextBox control at runtime on the form? Choose the correct one. A. TextBox obj = new TextBox(); obj.ID = ""txtUserName""; form1.Controls.Add(obj); B. form1.Controls.Add(TextBox); C. this.FindControl.add(TextBox); D. None of the above. Answer: A 95 What are the Command Object Methods? A. ExecuteNonQuery B. ExecuteReader C. ExecuteScalar D. All of the above Answer D: 96 What are the minimum attribute is required to create a connection string using SqlConnection object? A. - Data Source
100 To kill a users session explicitly which of the following will you use? A. Session.Close() B. Session.End() C. Session.Abondon() D. Session.Discard() Answer:C 101 ASP.NET Validation Control works at ________. A. Client side only. B. Server side only. C. Both Client Side and Server Side D. None of the above. Answer: C 102 If you want to validate the email addresses, Social Security numbers, phone numbers, and dates types of data, which validation control will be used? A. RegularExpressionValidator B. CompareValidator C. RequiredFieldValidator D. None of the above Answer: A 103 The TreeView control can be specified directly in the control or bound to _____. A. .gif file B. .doc file C. WeB.sitemap file D. .prg file Answer: C 104 In ASP.NET application DLL files are stored in which folder? A. App_Code B. App_Data C. Bin D. App_LocalResources Answer: C 105 What type of data can Cookies store? A. String B. DateTime C. System.Int D. None of the above. Answer: A 106 What are the client-side state management options that ASP.NET supports? A. Application B. Session C. Querystring D. Option a and b are correct Answer: C
114 Which of the keywords are used for the block to be examined for exceptions? A. try B. catch C. throw D. check Answer: A 115 You use the ASP.NET Web Site Administration Tool to configure ASP.NET membership with forms authentication. What should you name your login form so that you do not have to modify the WeB.config file? A. Login.aspx B. LoginPage.aspx C. Default.aspx D. Auth.aspx Answer: A 116 Which following control is used to display a single record from a data source in a table in ASP.NET A. GridView B. Datalist C. DetailsView D. DataRelation Answer: C 117 What are the Command Object Methods? A. ExecuteNonQuery B. ExecuteReader C. ExecuteScalar D. All of the above. Answer: D 118 Which of these keywords are used for the block to handle the exceptions generated by try block? A.try B. catch C. throw D. check Answer:B 119 What is the use of try & catch? A. It is used to manually handle the exception B. It helps to fix the errors C. It prevents automatic terminating of the program in cases when an exception occurs D. All of the mentioned Answer: D (^120) CompareValidator control can be used for performing which task? A. To perform a data type check. B. To compare the value entered into a form field against a fixed value. C. To compare the value of one form field against another. D. All of the above.
Answer: D 121 Which is the mandatory property for all validation controls? A. ControlToValidate B. Message C. EnableClientScript D. EnableServerScript Answer: A 122 Range Validator control in ASP.NET supports which type? A. Integer B. String C. Currency D. All of the above Answer: D 123 Which object works on client side in state management system? A. ViewState B. cookies C. Query strings D. All of the above Answer: D 124 Which of the following keyword can be used to rethrow an exception in C#: A. return B. throw C. re-throw D. create Answer:B 125 To add a custom control to a Web form we have to register with. A. TagPrefix B. Name space of the dll that is referenced C. Assemblyname D. All of the above Answer:B 126 Caching type supported by ASP.Net A. Output Caching B. DataCaching C. a and b D. none of the above Answer: C