Let us see how much you have learned yesterday by going over these
review questions.
- What is the definition of DHTML?
- A combination of Java 2.0, and CSS
- HTML that changes using smoke and
mirrors
- A combination of HTML 4.0, JavaScript
and CSS
- None of the above.
- In the
function doTxt(item),
what property is used in the alert() to display to the browser the value
stored in the text box named user?
<input type=text name=user onChange=doTxt(this)>
- alert(item.value)
- alert(this)
- prompt(item.value)
- Any of the above
- Does IE follow the same standards as Netscape when writing DHTML?
- Yes.
- No.
- When pigs fly or when Netscape 6.1
and Explorer 6 get it fiquired out.
- None of the above.
- How do you define style sheet rules?
- <head> <style>
</style>
tags.
- Use an external file reference with
the <link rel=stylesheet href=food.css> tag.
- In line style rule <h1 style=font-size:
26pt>.
- All and any of the above.
- Do cookies pose a serious security risk?
- Yes.
- Sometimes.
- No.
- None of the above.
- What are the four cookie attributes??
- Chocolate,Dough,Peanut Butter and Macaroon
- set,delete,duration,domain
- (SPED to get my cookies): secure, path, expires, domain
- None of the above
- What are the two requirements to delete a cookie?
- 1.Do not delete, 2.eat them.()
- 1.Cookie must match your domain and path, 2. delCookie()
- 1. Set value to 0 and 2. expires to past date and ()
- 1. Set value to null and 2. expires to past date and time()
- none of the above
- What is the code to create a class style rule named myBox to position
a container exactly at the most top-left corner of the browser window?
- .myBox { position: relative; left:0
top:0 }
- class=myBox { position: absolute; left:0
top:0 }
- .myBox { position: absolute; left:0
top:0 }
- None of the above
- For both IE and Netscape -- in the function scroll(), what is the code
to position a container named scrollingText to exactly 10 pixels from the
top?
- function scroll() { if (ie) document.all.scrollingText.style.top
= 10; If (netscape) document.scrollingText.top = 20 }
- function marquee() { if (ie) document.all.scrollingText.style.top
= 10; Else (netscape) document.scrollingText.top = 20 }
- function scroll(position) { if (ie)
document.all.scrollingText.style.top = 10; If (netscape) document.scrollingText.top
= 20 }
- Any of the above
- Given this :
<div id="message">Happy Birthday</div>
What is the code in IE to dynamically change the contents of the message
container to Congratulations displayed in bold? <b>Congratulations</b>
- document.all.message.innerHtml.bold
= "<b>Congratulations</b>";
- document.all.message.innerHtml = "<b>Congratulations</b>";
- document.(this).message.innerHtml =
"<b>Congratulations</b>";
- None of the above
- In order to implement collapsible outlines, what style rule causes an
HTML element to disappear and close up space?
- display:hidden
- display:none
- display:visible
- Any of the above
- What low-level browser events are used when dragging an HTML component
across the page?
- Same in both IE and NS MouseUp, MouseDown,
MouseMove.
- Different in both IE and NS. for IE onMouseUp, onMouseDown,
onMouseMove,for NS MouseUp, MouseDown, MouseMove
- Same in both IE and NS onMouseUp, onMouseDown, onMouseMove.
- None of the above
each event executes a function
- What are the three storage limitations of cookies stored by the browser?
- 1. Max 20 cookies per mouthfull, 2. size < 4lbs, 3.
total approx 300 cookies per meal
- 1. Max 200 cookies per web application,
2. size < 40KB, 3. total approx 3000 cookies per browser
- All of the above
- 1. Max 20 cookies per web application, 2. size < 4KB,
3. total approx 300 cookies per browser
- Where should function definitions be placed in the HTML code and why?
- Always place your code outside the
<html> tags, thebrowser likes that
- <body> functions need to be close
to what you want effected
- <head> HTML parses the code sequentially,
therefore the head section always loads first
- None of the above.
Thanks To All of You in the Learning Tree 489 JavaScript
class -
Cheers!