Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

uestion 1 (10 points) One way to resolve the debugging problems that can result from the imprecision of floating-point arithmetic is to _____________________ the results

uestion 1 (10 points)

One way to resolve the debugging problems that can result from the imprecision of floating-point arithmetic is to _____________________ the results of your calculations.

Question 1 options:

Question 2 (10 points)

To view the changes that have been made to the DOM for a page by the JavaScript, you can

Question 2 options:

a)

display the HTML for the page in a browser

b)

display the HTML for the page in Chromes Sources panel

c)

display the HTML for the page in Chromes Elements panel

d)

none of the above

Question 3 (10 points)

Sometimes, validating the HTML code for a web page will help you debug an application, because

Question 3 options:

a)

the page wont run in a browser if it isnt valid

b)

a trivial HTML error can cause other types of errors

c)

you can be sure that a validated page will work correctly in a browser

d)

validation will catch some JavaScript errors

Question 4 (10 points)

When youre using Chromes developer tools, you can set a ____________________ and then step through the statements that follow one statement at a time.

Question 4 options:

Question 5 (10 points)

One way to display the source code for a page thats displayed in a browser is to ____________________ on the page and then select a command like Source or View Source.

Question 5 options:

Question 6 (10 points)

An easy way to trace the execution of an application is to insert __________________ methods at critical points in the code.

Question 6 options:

Question 7 (10 points)

The code that follows has a bug in it because the second use of the variable named salesTax is spelled with all lowercase letters (salestax). var calculateTax = function (subtotal, taxRate) { var salesTax = subtotal * taxRate; salestax = parseFloat(salesTax.toFixed(2)); return salesTax; } Assuming that there are no other problems, what will happen when this code is executed?

Question 7 options:

a)

salesTax will contain null when it is returned

b)

a runtime error will occur when the second statement in the function is executed

c)

a syntax error will occur because salestax hasnt been declared

d)

salesTax will contain the right value, but it wont be rounded

Question 8 (10 points)

Forgetting to declare a variable before using it in a JavaScript statement can cause debugging problems, because an undeclared variable is treated as a _____________________ variable.

Question 8 options:

Question 9 (10 points)

When you test an application with Chromes developer tools and a breakpoint is reached, you can view the current data by

Question 9 options:

a)

looking up the variable in the names table in the Console panel

b)

clicking in the bar to the left of a statement that uses an arithmetic expression

c)

hovering the mouse pointer over a variable name in the Elements panel

d)

moving the mouse pointer over the name of a variable in the Sources panel

Question 10 (10 points)

After you check to make sure that the user interface of a JavaScript application is the way you want it, you should test the application with ____________________ data.

Question 10 options:

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 Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

Understand the department managers key role in employee retention

Answered: 1 week ago