0% found this document useful (0 votes)
25 views36 pages

ASP Midterm 2

The document is a midterm exam for ASP.NET covering various topics such as the full form of ASP, server-side technology, programming languages used, file extensions, and components of ASP.NET. It includes multiple-choice questions about ASP.NET features, syntax, and differences between objects. The exam assesses knowledge on web forms, session management, and web services in ASP.NET.

Uploaded by

jundrelalonzo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views36 pages

ASP Midterm 2

The document is a midterm exam for ASP.NET covering various topics such as the full form of ASP, server-side technology, programming languages used, file extensions, and components of ASP.NET. It includes multiple-choice questions about ASP.NET features, syntax, and differences between objects. The exam assesses knowledge on web forms, session management, and web services in ASP.NET.

Uploaded by

jundrelalonzo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

ASP.

NET Midterm Exam


1. What is the full form ASP?

a.) Access Server Pages


b.) Active Service Pages
c.) Active Server Pages
d.) Access Service Pages
2. [Link] is a ____.

a.) Client-Side technology


b.) Server-side technology
c.) Both
d.) None
3. Which of the following programming language can be used
with [Link]?

a.) C#.NET
b.) [Link]
c.)Both
d.) None
4. What is the extension of the [Link] page?

a.) .asp
b.) .aspx
c.) .asx
d.) .apx
5. Is [Link] Web form part of [Link] core?

a.) Yes
b.) No
6. Which of the following technologies are also used with
[Link]?

a.) CSS
b.) JavaScript
c.) AJAX
d.) All of the above
7. In which form does Postback occur?

a.) Win Forms


b.) HTML Forms
c.) Web Forms
d.) All
8. What is the correct use of the [Link] file?

a.) To store global information and variable definitions


b.) To configure the domain server
c.) To configure to domain client
d.) Store information about web browser
9. Is [Link] web form supports an event-driven application
model?

a.) True
b.) False
10. MVC stands for ____.

a.) Model Vocal Controller


b.) Model View Count
c.) Model View Controller
d.) Mode View Controller
11. What namespace is used for [Link] Web Form by
default?

a.) [Link]
b.) [Link]
c.) [Link]
d.) [Link]
12. Which of the following attribute must be set on a validator
control for the validation?

a.) ControlToValidate
b.) ValidateControl
c.) ValidateToBind
d.) ValidateBind
13. Can we style tree view, and menus with CSS?

a.) Yes
b.) No
14. The CSS stands for ____.

a.) Client Style Sheet


b.) Cascading Style Sheet
c.) Common Style Sheet
d.) Cascading Simple Sheet
15. Which term is used for pages that depend on the Master
page?

a.) Content Pages


b.)Master Pages
c.) Web Pages
d.) None of the above
16. Every Server control of [Link] must have an id.

a.) True
b.) False
17. Which file contains the Application_Start event?

a.) [Link]
b.) [Link]
c.) [Link]
d.) None
18. Which of the following is not an [Link] event?

a.) Init
b.) Import
c.) Load
d.) All
19. What is the return type of IsPostBack property?

a.) Integer
b.) Boolean
c.) Float
d.) All
20. Can we use ASPX pages in MVC?

a.) True
b.) False
21. Which of the following folder is used to store DLL files
in the [Link] application?

a.) _Code
b.) App_Data
c.) Bin
d.) App_Local
22. Which of the following method is used to register client
script using code dynamically?

a.) [Link]
b.) RegisterScript
c.) [Link]
d.) None
23. Which is the first event triggered when a user requests
an [Link] page?

a.) Load
b.) Init
c.) PreInit
d.) PreLoad
24. Which of the following is not an [Link] component?

a.) LinkCounter
b.) Counter
c.) AdRotator
d.) File Access
25. Which of the following Session Mode Serialization is not
required to store the data?

a.) SQLServer
b.) StateServer
c.) InProc
d.) None
26. Which development model(s) is/are supported by
[Link]?

a.) [Link] Web Forms


b.) [Link] MVC
c.) [Link] Web Pages
d.) [Link] API
e.) All of the above
27. The SessionIDs are stored in ____ by
[Link]?

a.) Cache
b.) Server
c.) Database
d.)Cookies
28. Which is the correct basic syntax of Application
directive?

a.) <%@ Application Language="C#" %>


b.) <!-- Application Language="C#" -->
c.) <%@ Application_DIR Language="C#" %>
d.) <%@ DIR @Application Language="C#" %>
29. Which is the correct basic syntax of the Assembly
directive?

a.) <%@ Assembly @ Name ="myassembly" %>


b.) <%@@ Assembly Name ="myassembly" %>
c.) <%@ Assembly Name ="C# myassembly" %>
d.) <%@ Assembly Name ="myassembly" %>
30. Which is the correct basic syntax of the Control directive?

a.) <%@ Control %>


b.) <%@ Control Language="C#" EnableViewState="false" %>
c.) <%@ Control Language="C#" %>
d.) None of the above
31. What is the file extension of Webservices in
[Link]?

a.) .aspx
b.) .asp
c.) .asm
d.) .asmx
32. Which protocol is used to call a web service?

a.) SOAP Protocol


b.) HTTP Protocol
c.) TCP Protocol
d.) FTP Protocol
33. What is the parent class of all web server control in
[Link]?

a.) [Link]
b.) [Link]
c.) [Link]
d.) All of the above
34. What is the difference between session object and application
object in [Link]?

a. The session object is used to maintain the session of each user


while an application object is created while a user enters in the
application
b. Session objects are created on the server while application
objects are created on the client side.
c. Session objects are used to handle database communication
while application objects are used to handle communication
between two different domains.
d. All of the above
35. What is the difference between Debug and Trace class in
[Link]?

a. The Debug class is used to debug both builds and releases while
the Trace class is used to debug the builds only
b. Debug class is used in ASP core while Trace is used in ASP MCC
c. The Debug class is used to debug the builds while the Trace class
is used to debug both builds and releases
d. All of the above

You might also like