ITWM1010 Inclass Test 2 - as a Practice Test



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

 1. 

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

 2. 

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

 3. 

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.
 

 4. 

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

 5. 

Most JavaScript commands and names are not case-sensitive.
 

 6. 

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.
 

 7. 

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

 8. 

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.
 

 9. 

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

 

 10. 

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

 

 11. 

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

 

 12. 

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.
 

 13. 

Text formatted with the <th> tag is displayed in a(n) ____ font.
a.
italicized
c.
underlined
b.
boldface
d.
colored
 

 14. 

One tip for the effective use of tables is to use cell ____ to keep the table content from appearing too crowded.
a.
padding
c.
kerning
b.
tracking
d.
spanning
 

 15. 

To create a cell that spans two columns in a table, you enter the <td> tag as ____.
a.
<td rowspan>“2”>
c.
<td colspan>“2”>
b.
<td colspan=“2”>
d.
<td rowspan=“2”>
 

 16. 

Selection lists usually appear in ____ boxes.
a.
value list
b.
radio
c.
form
d.
drop-down list
 

 17. 

Which input type displays an inline image that can be clicked to perform an action from a script?
a.
type= “image”
b.
type= “inline”
c.
type= “picture”
d.
type= “action”
 

 18. 

In the general syntax for the <select> and <option> tags, each ____ tag represents an individual item in the selection list.
a.
<option>
b.
<item>
c.
<index>
d.
<each>
 

 19. 

The ____ attributes define the dimensions of a text area.
a.
height and width
b.
rows and cols
c.
top and bottom
d.
high and wide
 

 20. 

Which of the following is a possible value for the method attribute of the <form> tag?
a.
get or post
b.
get or put
c.
give or get
d.
put or post
 

 21. 

You can use the ____ attribute of the <form> tag to send form data to a different window or frame.
a.
target
b.
other
c.
external
d.
second
 

 22. 

You can hide the script from older browsers that do not support JavaScript by using ____ tags.
a.
slash
b.
<script>
c.
comment
d.
internal
 

 23. 

You can display single quotation marks with the document.write() method by enclosing your text string within ____.
a.
periods
b.
double quotation marks
c.
parentheses
d.
brackets
 

 24. 

Variable names cannot contain ____.
a.
numbers
b.
spaces
c.
underscore characters
d.
Any of the above
 

 25. 

____ are used to mark the beginning and end of the commands in a function.
a.
Brackets
b.
Parentheses
c.
Curly braces
d.
Commas
 



 
Check Your Work     Reset Help