Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribed

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)

image text in transcribed

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)

image text in transcribed

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)

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions