Exercises
Solve Questions
Ques – 1: Is there anyway to view the output of an ASP page
without having a Web Server?
Ans: No. You can view the contents of an ASP page by using
Notepad or any other text editor, but you cannot execute an ASP
page and view its HTML results without having an ASP-enabled
Web server installed. Of course, if the ASP page does not exist on
your machine but rather on a Web server somewhere else, you
can view the output of that ASP page using a standard Web
browser.
Ques – 2: How do I put my ASP pages on the Internet? I have
installed a Web Server on my computer, but only I can access
these ASP pages.
Ans: To place your ASP-enabled Web site on the Internet, you will
need to work with a Web hosting company. These companies have
direct connections to the Internet and can help you get your Web
site on the Internet for a small monthly fee. By working with these
companies, you can have your own domain name and Internet
site.
Ques – 3: Can server-side scripting and client-side scripting
coexist?
Ans: Sure. You can certainly use both in the same page. There are
many circumstances in which you will want to. You just have to
remember that they can coexist, but they cannot really
Objective Questions
True and False
1. Microsoft® Active server pages (ASP) is a client-side scripting
environment that can be used to create and run dynamic,
interactive, high-performance web applications.
2. Only a working knowledge of HTML is required to begin using
ASP.
3. The Internet is based on the Client-Server model.
4. ASP pages can only be run on Microsoft Web servers.
script.
24. Referencing the Session, Request, or Response objects in the
Short Questions
1. What is the difference between the Static and Dynamic
content.
2. How ASP is different than the Client-Side scripting?
3. How does a Web server handle ASP page requests differently
than static HTML page requests?
4. What Microsoft Web server is needed to run ASP pages on
Windows 95, Windows 987, or Windows NT Workstation?
5. What version of Internet Information Server do you need to be
running to use ASP 3.0?
6. What is the default root physical directory when installing both
Personal Web Server and Internet Information Server?
7. If you created an ASP file in
C:\InetPub\wwwroot\scripts\hello.asp, where c:\IntePut\wwwroot
was your Web’s root physical directory, what URL could you use
to access hello.asp from your machine?
8. What is wrong with this code?
<% Response. Write “Hello, World”
%>
%>
9. What kind of scripting is the <SCRIPT> tag used for?
10. What does Response.Write do?
Long Questions
1. What can server-side scripting do that client-side scripting
can’t?
2. Write an ASP page that displays the current time using ASP?
3. What are the things an ASP page can contain or Write about
the composition of any ASP page.
4. Describe the Client-Server model of Internet.
5. Discuss in detail the Active Server Pages model.
6. Draw figure that shows the Components of an ASP page and
describe each one of them.
7. Describe the process involved in Creating, Developing and
Running an ASP page.
8. What is GLOBAL.ASA? Discuss its working in detail.
9. Describe briefly the fundamental built-in ASP Objects.
10.Describe the most commonly used Data Sources.
11.Describe all the Six objects available in ASP for data access.
Also draw diagram showing their relations.