Review Questions


1:

What is the difference between static and dynamic Web pages?

A1:

Static Web pages are built from HTML scripts that never changes. Dynamic Web pages have HTML scripts that can change in response to the needs of the viewer or other considerations. Dynamic Web pages have this capability because special tags in the HTML can be used to call other scripting languages, such as Visual Basic .NET and JavaScript, to generate new HTML script based on the inputs supplied to the scripting language.

2:

What is a URL ?

A2:

A URL is a Uniform Resource Locator, which is used to locate the Web server that will provide the HTML for the Web site.

3:

With respect to HTML scripts, what is a tag ?

A3:

HTML uses tags to determine what action is to be taken by the script. Most of the tags are used in pairs; the first part turns the tag's attribute on and the second part turns the attribute off. For example, the <title> tag turns on printing of a page title, whereas the </title> tag turns it off.

4:

What is meant by client-side versus server-side scripting?

A4:

These terms simply describe where the processing of the script is performed. The trend is for less client-side scripting in favor of more server-side scripting.

5:

What is a serious limitation of client-side scripting?

A5:

Client-side scripting relies on the resources that are available on the client side. Because these resources cannot be known with certainty , the client machine might not have all the resources necessary to process your scripts. For example, not all browsers support VBScript, but most do support JavaScript. Server-side scripting eliminates this problem because you can control the server-side resources.

6:

What benefits are gained if all clients have the same resource base?

A6:

If you could assume that every client machine has the resources necessary to process all Web pages, you could push a large part of the processing burden off the (already) overloaded servers onto the ( underutilized ) clients. It seems terribly wasteful to have a client with a 3GHz machine doing nothing more that displaying HTML scripts at the same time the server is logjammed trying to keep up with the demands that are placed on the server.

7:

Suppose that you want the title bar on the Web browser to read My name 's Web Site (where you supply your own name), and then have the words I collect 5 dollar bills in fairly large letters . And in normal-size print display

 Send your old 5 dollar bills to:  Your Name 123 Your Street YourCity, YourState, YourZip 
A7:

This could be written as a static script:

 <html>  <title>My Name's Web Site</title> <body>  <h1>I collect 5 dollar bills</h1>  <br><br>  Send your old 5 dollar bills to:<br>  Your Name<br>  123 Your Street<br>  YourCity, YourState, YourZip<br> </body> </html> 
8:

If you want to insert some Visual Basic .NET into an HTML document, what tags are necessary in the HTML document?

A8:

You might use

 <script language=vbscript>  <!-- --> </script> 

and place whatever code is needed between the comment markers.

9:

What are meta tags ?

A9:

Meta tags are special scripting tags that Visual Basic .NET uses to extend the normal HTML scripting. These tags are not portable to other environments.

10:

What tags does Visual Basic .NET use to denote server-side script tags?

A10:

The tags are <% and %> . Everything that appears between these two tags is to be processed on the server. These tags are also used by older ASP scripting files.



Visual Basic .NET. Primer Plus
Visual Basic .NET Primer Plus
ISBN: 0672324857
EAN: 2147483647
Year: 2003
Pages: 238
Authors: Jack Purdum

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net