Question: After the if statement that follows is executed, what will the value of discountAmount be? var discountAmount; var orderTotal = 200; if (orderTotal > 200)

After the if statement that follows is executed, what will the value of discountAmount be?

var discountAmount; var orderTotal = 200; if (orderTotal > 200) { discountAmount = orderTotal * .3; } else if (orderTotal > 100) { discountAmount = orderTotal * .2; } else { discountAmount = orderTotal * .1; }

Question 24 options:

a)

0.0

b)

20.0

c)

40.0

d)

60.0

Which of the following statements is false? A JavaScript variable

Question 22 options:

a)

is case-sensitive

b)

can start with a $ sign

c)

can start with a number

d)

can contain an underscore

When we talk about an object's property, we are describing...

Question 21 options:

a)

Characteristics of objects

b)

Things that happen to objects

c)

The number of items in an object

d)

The general composition of an object

Which object represents a web page?

Question 20 options:

a)

page object

b)

document object

c)

window object

d)

site object

In the following statement, the function show() is executed first.

$(".children").append("

Smart!

").show()

Question 9 options:

True

False

Javascript arrays must contain items of the same type (ex: all numbers or all strings).

Question 10 options:

True

False

The "this" keyword can be used without jQuery.

Question 11 options:

True

False

You can only use variables that start with a $ if you are using jQuery.

Question 12 options:

True

False

The load method always requests and returns JSON data.

Question 13 options:

True

False

One benefit of using Ajax to get data for a web page is that the page doesnt have to be reloaded into the browser.

Question 14 options:

True

False

The JSONP for a web site tells you how you can use Ajax to get data from the site.

Question 15 options:

True

False

Which of these is a valid way of including a javascript file named "myScript.js" on a web page?

Question 16 options:

a)

b)

c)

d)

Which of these javascript comment blocks is correct?

Question 19 options:

a)

// This is a comment

b)

c)

/* This is a comment */

d)

A and C

e)

All of the above

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!