Question: What does the following regexp match? D+ Question 11 options: 1) The two characters D+. 2) One or more non-digit characters. 3) One or more

What does the following regexp match? \D+

Question 11 options:

1) The two characters "D+".
2) One or more non-digit characters.
3) One or more instances of capital D.
4) One or more digit characters.

Save

Question 12 (5 points)

 What does the following regexp match? \D+ Question 11 options: 1)

What is the value of variable b after the following JavaScript fragment is evaluated? Why? a = '3'; b = a * 4;

Question 12 options:

1) NaN (Not a Number) because a is a string variable.
2) 12 because JavaScript coerced the string to a number and multiplied.
3) 34 because JavaScript coerced the number to a string and concatenated.
4) Undefined because the expression cannot be evaluated.

Save

Question 13 (5 points)

The two characters "D+". 2) One or more non-digit characters. 3) One

When would a JavaScript developer use a regular expression.

Question 13 options:

1) All syntactically-correct JavaScript expressions are regular.
2) When testing data for conformance to a pattern,
3) When the developer wants to use a predefined method, such as math.round( ).
4) To assign the value of an expression to a variable.

Save

Question 14 (5 points)

or more instances of capital D. 4) One or more digit characters.

Why should a JavaScript developer not use the document.write( ) method in an event handler?

Question 14 options:

1) It's OK to do this; you're just modifying the HTML page.
2) Because event handlers execute asynchronously, one cannot tell where on the page the HTML will appear.
3) The event handler could accidentally be called before the page is fully loaded.
4) Calling document.write( ) after the page has loaded makes an automatic call to document.open( ).

Save

Question 15 (5 points)

Save Question 12 (5 points) What is the value of variable b

The JavaScript object that represents the content of the browser's window is called the _____ object.

Question 15 options:

1) window
2) browser
3) document
4) HTML

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!