CS401 S99 Final Exam

There are 4 questions asked. Your grade will be based on the best three answers. You will have 2 hour 15 min. to work on the final.   Check your grade in our class grade query web page.
Your name:
Work/Home Phone number (option):

  1. NT IIS configuration and ASP-DB.
    1. How to setup IP-based virtual hosting on NT IIS?
    2. How can the virtual directory be used for improving web server performance?
    3. What are the differences between NT domain and Internet domain?
    4. What are similarities and differences between CGI perl scripts and  ASPs?
    5. In your homework #8, what are basic steps to allow database access from an ASP?
    6. What are contained in resultset after the SQL query and how to access them?
  2. XML and XSL.

  3. The following personal.dtd contains the document type declaration of personal XML document:
    <?xml encoding="US-ASCII"?>
    <!ELEMENT personnel (person)+>
    <!ELEMENT person (name,email*,url*,link?)>
    <!ATTLIST person id ID #REQUIRED>
    <!ELEMENT family (#PCDATA)>
    <!ELEMENT given (#PCDATA)>
    <!ELEMENT name (#PCDATA|family|given)*>
    <!ELEMENT email (#PCDATA)>
    <!ELEMENT url EMPTY>
    <!ELEMENT link EMPTY>
    <!ATTLIST link
      manager IDREF #IMPLIED
      subordinates IDREFS #IMPLIED>
    The following personalbad.xml  is an example of a personal XML document:
    <?xml version="1.0"?>
    <!DOCTYPE personnel SYSTEM "personal.dtd">
      <person id="Big.Boss" >
        <name><family>Boss</family> <given>Big</given></name>
        <url href="http://www.foo.com/~chief"/>
        <link subordinates="one.worker"/>
      <person id="one.worker" >
        <name><family>Workman</family> <given>John</given></name>
        <link mananger="Big.Boss"/>
        <url href="http://www.foo.com/~workman"/>
    The execution of an IBM Java-based  XML Parser  on the personalbad.xml indicates the following two errors:
    E:\xml4j_2_0_6>jre -cp xml4j.jar;xml4jSamples.jar sax.SAXWriter -p com.ibm.xml.parsers.ValidatingSAXParser data\personalbad.xml
    [Error] personalbad.xml:13:20: Attribute, "mananger", is not declared in element, "link".
    [Error] personalbad.xml:15:12: Element "<person>" contains incomplete content for the rule, "(name,email*,url*,link?)".
    1. What are wrong with the second person record?.
    2. Create an XSL document that sorts the personnel .xml file based on the family name, and displays the family name, given name, and email of the personnel records as an HTML file.
  4. Cryptography and Certificate.
    1. What are steps to generate a signed document?
    2. What key is used to encrypt the email in a public key system?
    3. Whose keys are contained in the personal certificate issued by Verisign?
  5. Electronic Commerce.
    1. Who are involved in an web-based credit card transaction?
    2. What are the trade-off between using ISP's secure web server and setting up secure web server yourself?
    3. What is SET?