Structured Content - HTML and Web Programming - Exam, Exams of Web Programming and Technologies

These are the Exam of HTML and Web Programming which includes Measurement, Cell Phone Turned, Measurement, Overflow Property, Chop Off, User Scrolls, Margin, Padding, Content-Spacing etc.Key important points are: Structured Content, Determines, Number, Client-Side Scripting, Server-Side Scripting, Fewer Columns, Extra Columns, Backgrounds, Alternating, Paragraph Tags

Typology: Exams

2012/2013

Uploaded on 03/28/2013

rohit-sharma
rohit-sharma 🇮🇳

4.3

(11)

200 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Student, Perfect Final Exam December 21, 2006
Exam: 1750 - Student: 9999 CS-081/Vickery Page 1 of 4
NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives
aid on any exam or quiz.
INSTRUCTIONS: Except for the last question, circle the letter of the single best answer for each
question.
1. What determines the number of rows in a table?
A. The number of <thead> tags.
B. The number of <tbody> tags.
C. The number of <th> tags in the first column.
D. The number of <tr> tags between <table> and </table>.
E. The maximum number of <td> tags inside any <tr> element in the table.
2. What determines the number of columns in a table?
A. The number of <thead> tags.
B. The number of <tbody> tags.
C. The number of <th> tags in the first column.
D. The number of <tr> tags between <table> and </table>.
E. The maximum number of <td> tags inside any <tr> element in the table.
3. How can you construct a table that has fewer columns in one row than in the others?
A. This can only be done using server-side scripting, which we did not cover.
B. This can only be done using client-side scripting, which we did not cover.
C. This can only be done using JavaScript: you have to remove the extra columns after the table has
been rendered.
D. Use the colspan attribute in one or more <td> elements.
E. You have to nest one table inside another table to do this.
4. What is the difference between <th> and <td> tags?
A. Both identify table cells, but <th> has the added feature of indicating that the cell is a heading for
a row or column.
B. <th> is used for text highlighting, but <td> is used for text deletion.
C. There is no such thing as <th>.
D. There is no such thing as <td>.
E. <th> is used to set the table height, but <td> is used to set the table density.
5. Structured content, presentation rules, and behavioral dynamics are the three core features of web
pages. What is an example of structured content?
A. Using images for backgrounds.
B. Marking up text using heading and paragraph tags.
C. Using JavaScript to color the backgrounds of alternating rows of a table.
D. Using PHP to enter form data into a database.
E. Using CSS to color the backgrounds of alternating rows of a table.
6. What is an example of a presentation rule?
A. Using CSS to remove the underlines from links.
B. Using JavaScript to validate form data.
C. Using a table to organize the ingredients and their amounts in a recipe.
D. Using a list to hold the navigation links for a page.
E. Using a link to get from one page to another.
7. What is an example of behavioral dynamics?
A. Using an animated GIF to call the user’s attention to something important on the page.
B. Using JavaScript to validate form data after the submit button is clicked but before it is actually
sent to the server.
C. Marking up text using heading and paragraph tags.
D. Using a link to get from one page to another.
E. None of the above.
pf3
pf4

Partial preview of the text

Download Structured Content - HTML and Web Programming - Exam and more Exams Web Programming and Technologies in PDF only on Docsity!

Student, Perfect Final Exam December 21, 2006

Exam: 1750 - Student: 9999 CS-081/Vickery Page 1 of 4

NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives aid on any exam or quiz.

INSTRUCTIONS: Except for the last question, circle the letter of the single best answer for each question.

  1. What determines the number of rows in a table? A. The number of tags. B. The number of tags. C. The number of tags in the first column. D. The number of tags between and . E. The maximum number of tags inside any element in the table.
  2. What determines the number of columns in a table? A. The number of tags. B. The number of tags. C. The number of tags in the first column. D. The number of tags between and . E. The maximum number of tags inside any element in the table.
  3. How can you construct a table that has fewer columns in one row than in the others? A. This can only be done using server-side scripting, which we did not cover. B. This can only be done using client-side scripting, which we did not cover. C. This can only be done using JavaScript: you have to remove the extra columns after the table has been rendered. D. Use the colspan attribute in one or more elements. E. You have to nest one table inside another table to do this.
  4. What is the difference between and tags? A. Both identify table cells, but has the added feature of indicating that the cell is a heading for a row or column. B. is used for t ext h ighlighting, but is used for t ext d eletion. C. There is no such thing as . D. There is no such thing as . E. is used to set the t able h eight, but is used to set the t able d ensity.
  5. Structured content, presentation rules, and behavioral dynamics are the three core features of web pages. What is an example of structured content? A. Using images for backgrounds. B. Marking up text using heading and paragraph tags. C. Using JavaScript to color the backgrounds of alternating rows of a table. D. Using PHP to enter form data into a database. E. Using CSS to color the backgrounds of alternating rows of a table.
  6. What is an example of a presentation rule? A. Using CSS to remove the underlines from links. B. Using JavaScript to validate form data. C. Using a table to organize the ingredients and their amounts in a recipe. D. Using a list to hold the navigation links for a page. E. Using a link to get from one page to another.
  7. What is an example of behavioral dynamics? A. Using an animated GIF to call the user’s attention to something important on the page. B. Using JavaScript to validate form data after the submit button is clicked but before it is actually sent to the server. C. Marking up text using heading and paragraph tags. D. Using a link to get from one page to another. E. None of the above.

Exam ID: 1750 CS-081/Vickery Page 2 of 4

  1. Which statement is correct about block elements on a page? A. Block elements, such as and , are used to create dynamic effects in tables. B. Block elements, such as and , are used to format blocks of letters. C. Block elements, such as

    and

    , cause their contents to be displayed on a new line. D. Screen readers ignore block elements, such as and . E. Block elements, such as and , cause their contents to be displayed in the normal flow of a line.
  2. Which statement is correct about inline elements on a page? A. Inline elements, such as and , are used to create dynamic effects in tables. B. Inline elements, such as and , are used to format blocks of letters. C. Inline elements, such as

    and

    , cause their contents to be displayed on a new line. D. Screen readers ignore inline elements, such as and . E. Inline elements, such as and , cause their contents to be displayed in the normal flow of a line.
  3. Which statement is true? A. table { … } would be used for CSS properties that are applied to all table elements. B. .table { … } would be used for CSS properties that are applied to all table elements. C. #table { … } would be used for CSS properties that are applied to all table elements. D. :table { … } would be used for CSS properties that are applied to all table elements. E. %table { … } would be used for CSS properties that are applied to all table elements.
  4. Which statement is true? (I know, it looks weird, but it’s okay.) A. table { … } would be used for CSS properties that are applied to all elements with a class of table. B. .table { … } would be used for CSS properties that are applied to all elements with a class of table. C. #table { … } would be used for CSS properties that are applied to all elements with a class of table. D. :table { … } would be used for CSS properties that are applied to all elements with a class of table. E. %table { … } would be used for CSS properties that are applied to all elements with a class of table.
  5. Continuing the weird but correct pattern of the last question, which one of the following is true? A. table { … } would be used for CSS properties that are applied to the element with an id of table. B. .table { … } would be used for CSS properties that are applied to the element with an id of table. C. #table { … } would be used for CSS properties that are applied to the element with an id of table. D. :table { … } would be used for CSS properties that are applied to the element with an id of table. E. %table { … } would be used for CSS properties that are applied to the element with an id of table.
  6. What is the difference between using the GET and POST methods? A. GET can be used only to retrieve information from the server, and POST can be used only to send information to the server. B. A POST can be used to hitch a horse to, but people can GET along with each other. C. They are identical. D. The form data is included in the URL when using GET, but with POST it is embedded in the body of the request message. E. The form data is visible to the user when using GET, but it is not sent to the server at all when using POST.
  7. What is the action attribute used for? A. It overrides the CSS rule for a spreadsheet. B. It underrides the CSS rule for a spreadsheet. C. It counts the number of paragraphs in a page after the DOM tree is built. D. It tells the browser what URL to use for submitting the form. E. It tells the server which database record to update.

Exam ID: 1750 CS-081/Vickery Page 4 of 4

  1. Which statement will cause the first form on a page never to be submitted? A. window.onload = function() { document.getElementsByTagName(‘form’)[0].onsubmit = function() { return false;} } B. window.onload = function() { document.getElementsByTagName(‘form’)[0].onsubmit = function() { return true;} } C. window.onload = function() { document.getElementsByTagName(‘form’)[0].onsubmit = function() { alert(block submit);} } D. window.onload = function() { document.getElementsByTagName(‘form’)[0].onsubmit = function() { alert(deny submission);} } E. window.onload = function() { document.getElementsByTagName(‘form’)[0].onsubmit = function() { alert(‘Invalid email address!’);} }
  2. A table cell is to have an id of errorMessage. Which of the following would set this up? A. errorMessage B.
    C. D. An Error Occurred! E. An Error Occurred!
  3. The error message cell from the previous question is to have red text on a yellow background. Which of the following would set this up? A. tc { background = yellow; text = red; } B. errorMessage { background = yellow; text = red; } C. #errorMessage { background: yellow; color: red; } D. td.errorMessage { background: yellow; text-color: red; } E. errorMessage.style = “red on yellow”;
  4. Which of the following statements would create a variable that holds a reference to the error message cell? Assume the complete DOM tree has already been constructed. A. var errorMessage = document.getElementByTagName(‘errorMessage’); B. var errorMessage = document.getElementById(‘errorMessage’); C. Object errorMessage = new Array(); D. errorMessage = new getElementById(td.errorMessage); E. var errorMessage = new Array(getErrorMessageCell);
  5. Given the variable just defined, which of the following statements would cause the error message to disappear? A. errorMessage.disappear(); B. errorMessage.disappear(now!); C. errorMessage.pleaseDisappear(now); thankYou(); D. errorMessage.style.visibility = ‘hidden’; E. errorMessage.color=white;
  6. Write a function named append3cols() that receives a reference to a table as a parameter, and which adds a row to the table with three columns, which contain the words, one, two , and three in left to right order. ( Note: This question counts the same as the others if you get it wrong, but if you get it right, you can get more than full credit for it.)