Final exam will be 12/14 10:15am-2:45 pm
Wednesday in class, open book open note.
Here are some old Exams for your practice:
CS301
S2000 Final Examine.
| 1. Allow to modify the presentation style of a tag. | Yes No |
| 2. Can change the font size and color. | Yes No |
| 3. Cannot change the margins of a tag's displaying area. | Yes No |
| 4. A web page can reference multiple CSS files directly or indirectly. | Yes No |
| 5. The CSS file can be shared and referenced by a HTML web page using the <LINK> tag. | Yes No |
| 6. Cannot change a subset of tag instance with the same tag name. | Yes No |
| 7. Can change individual instance of a tag. | Yes No |
| 1. Use setTimeout to call a function after certain time from now expires | Yes No |
| 2. Use setInterval to call a function in a regular time interval. | Yes No |
| 3. The function call "setTimeout(10000, clock)" will execute the clock function call in 10 seconds. | Yes No |
| 4. The statement "win = window.open("http://owl.uccs.edu/~cs301/");" creates a separate browser window and displays a web page whose url = http://owl.uccs.edu/~cs301/ | Yes No |
| 1. Use document_print() | Yes No |
| 2. Use document.write() | Yes No |
| 3. Use print() | Yes No |
Given the following stock
profile xml document template, create the DTD. Assume the order of
the tags need to be strickly followed and all attributes are required.
The exchange attribute allows only nyse, nasdaq, and amx. The dt:dt
attribute allows only number, int, and float. Use the same dt namespace
as in hw5 exercise.
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl"
href="portfolio.xsl"?>
<portfolio xmlns:dt="urn:schemas-microsoft-com:datatypes"
xml:space="preserve">
<stock exchange="nyse">
<name>zacx
corp</name>
<symbol>ZCXM</symbol>
<price
dt:dt="number">28.875</price>
<share dt:dt="number">1000</share>
</stock>
<stock exchange="nasdaq">
<name>zaffymat
inc</name>
<symbol>ZFFX</symbol>
<price
dt:dt="number">92.250</price>
<share
dt:dt="number">1500</share>
</stock>
<stock exchange="nasdaq">
<name>zysmergy
inc</name>
<symbol>ZYSZ</symbol>
<price
dt:dt="number">20.313</price>
<share
dt:dt="number">2000</share>
</stock>
</portfolio>
Enter the DTD in the
following textarea.
Create a portfolio.xsl
that display the profile similar to grade.xsl in hw5, sorting
the stock records according to the descending order of the price value.
Enter the portfolio.xsl
in the following textarea.
| 1. Need to declare CGI to access database. | Yes No |
| 2. Need to declare DBI to read customer's input data. | Yes No |
| 3. The cgi script should be reference as http://wetterhorn.uccs.edu/~cs301/cgi-bin/cs301/orderDrinkDB.pl for its execution | Yes No |