ASP_NET_MCQ
ASP_NET_MCQ
A. System.Web.UI.Page
B. System.Web.UI.Control
C. System.Web.UI.WebControls.WebControl
D. System.Web.UI.UserControl
Answer: B. System.Web.UI.Control
A. Default.aspx
B. Web.config
C. Global.asax
D. Startup.cs
Answer: C. Global.asax
4. Which method is used to write directly to the HTTP output stream in ASP.NET?
A. Response.Redirect()
B. Response.Write()
C. Server.Transfer()
D. Server.Execute()
Answer: B. Response.Write()
5. What is the default authentication mode in ASP.NET?
A. Windows
B. Forms
C. Passport
D. None
Answer: A. Windows
A. GridView
B. DataList
C. DetailsView
D. ListBox
Answer: A. GridView
10. Which directive is used to bind a code-behind file with an .aspx page?
A. @Control
B. @Page
C. @Import
D. @Register
Answer: B. @Page