Name: 
 

Exam 2 - Practice Test A - Chapters 4, 6, and 10



True/False
Indicate whether the sentence or statement is true or false.
 

 1. 

By using the <thead> and <tfoot> tags, the browser can be made to repeat those sections across multiple pages, while changing the contents of the table’s main body.
 

 2. 

The outside gridlines are not affected by a table’s border attribute; only the internal gridlines are changed.
 

 3. 

Specifying a width for an individual cell guarantees that the cell will be that width when displayed in the browser.
 

 4. 

If another cell in a column is set to a different width or expands because of the text in it, the widths of all cells in the column change accordingly.
 

 5. 

Setting the width of an input box limits the numbers of characters the box can hold.
 

 6. 

Using a password field creates a secure connection between the Web client and the Web server.
 

 7. 

Though not required, you can specify default text that will appear in the text box when the form is initially displayed.
 

 8. 

You can specify name and value attributes for push, submit, and reset buttons.
 

 9. 

Fields with negative tab indexes are omitted from the tab order entirely.
 

 10. 

Users need to work with a developer’s kit to compile a JavaScript program.
 

 11. 

Placing a JavaScript program in an external file allows you to hide the program code from the user.
 

 12. 

Internet Explorer interprets JavaScript as being identical to JScript.
 

 13. 

Most JavaScript commands and names are not case-sensitive.
 

 14. 

You cannot use words that JavaScript has reserved for other purposes when you create a variable name.
 

 15. 

There is no limit to the number of function parameters that a function may contain.
 

 16. 

When the browser loads the HTML file containing a function, the browser bypasses the function without executing it; the function is executed only when called by another JavaScript command.
 

 17. 

Each element in a JavaScript array is identified by its index, which is an integer displayed between parentheses, like this: weekdays(3).
 

 18. 

A program loop is a set of instructions that is executed repeatedly.
 

 19. 

For loops cannot be nested inside one another.
 

Modified True/False
Indicate whether the sentence or statement is true or false.  If false, change the identified word or phrase to make the sentence or statement true.
 

 20. 

Since the character “m” is wider than the character “l,” a monospace font assigns it more space. _________________________

 

 21. 

Setting a width for a cell guarantees only that the cell width will not be greater than that value. _________________________

 

 22. 

To create a table row, use the tag <th>content</th>. _________________________

 

 23. 

Input boxes are a form control element used for text and numerical entries. _________________________

 

 24. 

Option lists are a form control element for long lists of options. _________________________

 

 25. 

The syntax for creating a Password field is <input type= “password” />. _________________________

 

 26. 

You create a selection list using the <list> tag. _________________________

 

 27. 

Adding the several attribute to the <select> tag allows multiple selections from a list. _________________________

 

 28. 

When you link a label with an associated text element for scripting purposes, you must bind the label to the name attribute of the field. _________________________

 

 29. 

JavaScript function names, unlike variable names, are case-sensitive. _________________________

 

 30. 

A comparison operator comparing the value of one element with that of another creates a conditional expression that is either true or false. _________________________

 

 31. 

The single equal sign is an equivalency operator and is not used for making comparisons. _________________________

 

 32. 

A conditional operator tests whether a specific condition is true and returns one value if the condition is true and a different value if the condition is false. _________________________

 

Multiple Choice
Identify the letter of the choice that best completes the statement or answers the question.
 

 33. 

Fixed-width fonts are also referred to as ____ fonts.
a.
singular
c.
proportional
b.
monospace
d.
fixed-space
 

 34. 

You can use the ____ tag to display preformatted text.
a.
<pre>
c.
<format>
b.
<form>
d.
<preformatted>