ASP.NET MCQ Questions And Answers
This section focuses on "ASP.NET" in C#. These Multiple Choice Questions (MCQs) should be practiced to improve the C# skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. ASP stands for?
A. Active Server Pages
B. Access Server Pages
C. Active Server Platform
D. Active Server Programming
View Answer
Ans : A
Explanation: ASP stands for Active Server Pages
2. ASP (aka Classic ASP) was introduced in?
A. 1997
B. 1998
C. 1999
D. 2000
View Answer
Ans : B
Explanation: ASP (aka Classic ASP) was introduced in 1998 as Microsoft's first server side scripting language.
3. Classic ASP pages have the file extension?
A. .aspx
B. .net
C. .asp
D. .cs
View Answer
Ans : C
Explanation: Classic ASP pages have the file extension .asp and are normally written in VBScript.
4. Which of the following is true?
A. ASP.NET Web Forms is not a part of the new ASP.NET Core.
B. ASP.NET Web Forms is an event driven application model.
C. ASP.NET MVC is an MVC application model (Model-View-Controller).
D. All of the above
View Answer
Ans : D
Explanation: All of the above statement are true.
5. ASP.NET is?
A. client side technologies
B. server side technologies
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: ASP and ASP.NET are server side technologies.
6. Web.config file is used
A. Configures the time that the server-side codebehind module is called
B. To store the global information and variable definitions for the application
C. To configure the web server
D. To configure the web browser
View Answer
Ans : B
Explanation: Web.config file is used to store the global information and variable definitions for the application
7. Difference between Response.Write() andResponse.Output.Write().
A. Response.Output.Write() allows you to buffer output
B. Response.Output.Write() allows you to write formatted output
C. Response.Output.Write() allows you to flush output
D. Response.Output.Write() allows you to stream output
View Answer
Ans : B
Explanation: Response.Output.Write() allows you to write formatted output
8. What class does the ASP.NET Web Form class inherit from by default?
A. System.Web.UI.Page
B. System.Web.UI.Form
C. System.Web.GUI.Page
D. System.Web.Form
View Answer
Ans : B
Explanation: System.Web.UI.Form class the ASP.NET Web Form class inherit from by default.
9. Attribute must be set on a validator control for the validation to work
A. ControlToValidate
B. ControlToBind
C. ValidateControl
D. Validate
View Answer
Ans : A
Explanation: Attribute must be set on a validator control for the validation to work ControlToValidate.
10. Default Session data is stored in ASP.Net.
A. StateServer
B. Session Object
C. InProcess
D. All of the above
View Answer
Ans : C
Explanation: InProcess is default Session data is stored in ASP.Net.
Discussion