Reference no: EM131353997
Question 1
You want to display a message on your Web page to users that don't have JavaScript enabled in their browser. Which of the following code snippets below performs this?
A. <!--You don't have JavaScript enabled //
B. <!--You don't have JavaScript enabled//
C. if (NOSCRIPT) You don't have JavaScript enabled
D. <NOSCRIPT>You don't have JavaScript
enabled</NOSCRIPT>
Question 2
What are the <NOSCRIPT> tags used for?
A. To turn off JavaScript on the users computer.
B. To disable JavaScript on the Web site.
C. To enclose a message inside the tags for users who don't have JavaScript enabled on their browser.
D. To indicate a Java Applet.
Question 3
A children's site wants to ask its users what 4 + 4 equals. Which method is best for obtaining the correct answer from the users?
A. alert()
B. prompt()
C. confirm()
D. request()
Question 4
Which of the following code snippets displays the proper use of the for loop?
A. for (i=10, i>5, i--) {
}
B. for (i=10; i>5; i--)
}
C. for ("i=10, i>5, i--") {
}
D. for i=10, i>5, i--{
}
Question 5
What does the following code do?
setTimeout("myFunction()", 100)
A. Executes myFunction 100 times
B. Executes myFunction after a counter reaches 100
C. Executes myFunction after pausing for 100 milliseconds
D. Executes myFunction for 100 milliseconds
Question 6
JavaScript refers to images by their __________ attribute.
A. GIF
B. JPEG
C. NAME
D. IMG
Question 7
When creating a rollover, the mouse event handlers must be placed in the __________ tag.
A. <A></A>
B. <IMG>
C. <SCRIPT></SCRIPT>
D. <MOUSE></MOUSE>
Question 8
The statement if (document.images) checks to see if the:
A. computer recognizes images.
B. browser recognizes JavaScript.
C. browser can preload the images.
D. browser recognizes image objects.
Question 9
When creating image rollovers, the images involved must have the same __________.
A. image type
B. size dimensions
C. color
D. subject matter
Question 10
A semicolon in a JavaScript marks the end of a __________.
A. line
B. function
C. method
D. statement
Question 11
A/An __________ references individual items in an array.
A. arrayIndex
B. arrayindex
C. subscript
D. superscript
Question 12
The __________ statement appears after the JavaScript statement in each case.
A. break
B. option
C. array
D. select
Question 13
To create an image object that can be referenced by JavaScript code, you must add the _________ attribute to the HTML IMG SRC tag.
A. object
B. form
C. name
D. event handler
Question 14
What is wrong with the following syntax?
function notify()
alert("You triggered a function")
A. There is no space between notify and ().
B. The braces { } are missing.
C. function should be capitalized.
D. You can't have a method in a function.
Question 15
An alternative to the If ... Else statement to test for multiple conditions is the __________ statement.
A. switch
B. array
C. while
D. index
Question 16
An __________ is a collection of data items, represented by one variable name.
A. index
B. array
C. alert
D. event handler
Question 17
The __________ method returns the number of milliseconds that have elapsed since 12:00 a.m., January 1, 1970.
A. getTime()
B. getDate()
C. timeNow()
D. secondsTime()
Question 18
One of the three steps necessary to create a rolling banner is to create an __________ object.
A. image
B. index
C. index of
D. initialization
Question 19
The __________ HTML tag is a form element used to define a selection list.
A. <LIST>
B. <SELECT>
C. <INDEX>
D. <BUTTON>
Question 20
Using the recursive method of setTimeout("myFunction()",5000) creates a delay of:
A. 5 seconds.
B. 5,000 seconds.
C. 50 seconds.
D. 5 minutes.
Transition element and talk about the element physical
: Pick one of the transition element and talk about the element's physical, chemical properties, preparation, discovery, and industrial application of that element.
|
Compare poems from a single poet
: DAT 520- You may compare poems from a single poet, or compare poems across poets. Have a debatable, persuasive claim and focus on specific points of comparison, using the Lesson to guide your structure.
|
Aqueous solutions of ammonium chloride
: Given 0.1-M aqueous solutions of ammonium chloride (NH4Cl) and ammonia (NH3) to the so- lution of that weak base. Calculate the volumes of salt and ammonia to be mixed, in order to make 50 mL of a buffer solution with pH = 9.0. The ammonium ion (N..
|
Milligrams of calcium carbonate are in a rolaids tablet
: A Rolaids tablet contains calcium carbonate for neutralizing stomach acid. If a Rolaids tablet neutralizes 24.65 mL of 0.547 M hydrochloric acid, how many milligrams of calcium carbonate are in a Rolaids tablet?
|
What is wrong with the given syntax
: What is wrong with the following syntax? One of the three steps necessary to create a rolling banner is to create an __________ object. The __________ HTML tag is a form element used to define a selection list.
|
What forms of water will be present at equilibrium
: A 0.025 g sample of H2O is injected into a 1.00 L flask at 30.0 °C. What forms of water will be present at equilibrium? Vapor pressure of water at 30.0 °C is 31.8 mm Hg.
|
Substantial difference in boiling between ethanol
: What is hydrogen bonding and how might hydrogen bonding be used to explain the substantial difference in boiling between ethanol CH3CH2OH (grain alcohol) and dimethyl ether (CH3OCH3)?
|
Arrow-pushing mechanism for the formation of product
: Write a rational arrow-pushing mechanism for the formation of this product (when alpha-pinene is reacted with aqueous sulfuric acid). And then write a rational arrow-pushing mechanism for the formation of the decomposition product.
|
Do you think that aschs experiments were unethical
: Do you think that Asch's experiments were unethical? What information would you include in the informed consent form for study subjects, if you were Solomon Asch, and what would you say to them during a debriefing?After thinking about Asch's rese..
|