mt_f09 - UNIVERSITY OF TORONTO AT SCARBOROUGH Mid-Term Test...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCC09H3F Fall 2009 Mid-Term Test 0 U NIVERSITY OF T ORONTO AT S CARBOROUGH Mid-Term Test CSCC09H3F Fall 2009 Duration – 90 minutes. Examination Aids: none. NAME (first last) _______________________________________________________ SIGNATURE _____________________________________________ STUDENT NUMBER _______________________________________ P1: / 13 P2: / 9 P3: / 9 P4: / 6 P5: / 10 P6: / 5 P7: / 11 P8: / 6 P9: / 14 Total: / 83 Answer all questions in the spaces provided on this examination paper. There is no need to use more space than is provided. If you must, then use the back of the examination paper and so indicate in your answer. General Information and Advice: For all questions, you have the option of answering with the phrase “I don’t know” to receive 20% credit for the value of the question. You must write legibly for us to mark your answers. For the short answer questions, you may answer in point-form rather than complete sentences, but be clear. For the programming exercises, you may choose to use the back of a facing page to write your solution to keep the problem page visible as you write. If unsure of API or language syntax details, try your best and for part marks include a comment indicating what you are attempting to achieve. Total Pages = 9 (excluding this cover sheet) Good Luck!
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSCC09H3F Fall 2009 Mid-Term Test 1 Introduction 1. [3 marks] Tim Berners-Lee introduced several key innovations in his original design of the Web; list 3 of them. HTML markup language HTTP protocol URLs Network hypertext links (X)HTML 2. [4 marks] Write HTML (need not be XHTML) to define the table shown below (define just the table element and children, not a complete HTML document). <table border="1"> <tr> <td rowspan="2" colspan="2">On</td> <td>A</td> <td>C</td> </tr> <tr><td>E</td><td>F</td></tr> <tr> <td>B</td> <td>D</td> <td colspan="2">Sale!</td> </tr> </table> 3. [2 marks] Declare an <html> element for an XHTML document with default namespace http://w3c.org ” and namespace “ https://ibus.com ” for elements with prefix “ ibus ” (e.g. usage <ibus:p> ). You need not show any details of the <html> element other than its namespaces. <html xmlns="http://w3c.org" xmlns:ibus="https://ibus.com"> 4. [2 marks] Write HTML to display this text: 0 &lt; 1 &amp;&amp; 0 &gt; -1 5. [2 marks] List four syntactic differences between XHTML and HTML. Many to choose from: XHTML uses lower-case tags, XHTML requires all attribute values to be quoted, XHTML has a DTD specification, XHTML requires that all tags be closed, XHTML tags must be properly nested, XHTML does not support deprecated HTML elements and attributes that are excluded from the XHTML DTDs, etc.
Background image of page 2
CSCC09H3F Fall 2009 Mid-Term Test 2 6. [1 mark] What does it mean for an XHTML document to be validated?
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 10

mt_f09 - UNIVERSITY OF TORONTO AT SCARBOROUGH Mid-Term Test...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online