Winter Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dumps65

CIW 1D0-735 Dumps

Page: 1 / 6
Total 55 questions

CIW JavaScript Specialist Questions and Answers

Question 1

Geraldine is creating a custom object to store user account data on her Web site. She has written the following code it is not working properly. What change should she make to enable the script to run correctly?

as

Options:

A.

She must remove the this keyword from the left side of the assignment variables

B.

She must add the parameters username. password and email to the function definition

C.

She must change the this keyword to the object keyword on the left side of the assignment variables

D.

She must change the function keyword to the object keyword in the function definition

Question 2

Consider the following code:

as

Which of the following is true based on the above code?

Options:

A.

The function sofaPic will be called upon when sofaPic image loads

B.

The function sofaPic is called when the image fails to load

C.

The function sofaPic is called when the mouse pointer moves off the image

D.

The function sofaPic is called when the mouse pointer moves over the image

Question 3

Which of the following is a benefit of using a predefined library, such as JQuery?

Options:

A.

Predefined libraries provide improved Web page load times.

B.

Predefined libraries always provide step-by-step instructions on how to manually enter code to perform a specific task.

C.

Predefined libraries provide thoroughly tested code that reduces the amount of time it takes to enter and debug code .

D.

Predefined libraries provide proprietary code that works well in multiple platforms and coding environments.

Question 4

The same origin policy was introduced at the same time as HTML5 to limit location changes in browser windows that are using frames. Given this policy which of the following would be a valid new location of a frame on the Web site http corn?

A)

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 5

Considering the following code:

Var 1 ;

For (I = 1; I < 10; I ++)

What part of the code fragment initializes the counter variable?

Options:

A.

i++

B.

i < 10;

C.

i = 1;

D.

Var 1;

Question 6

Which of the following comparison statement will return true?

A)

X=10;

Y=11;

y--;

x==y

B)

X=10;

Y=11;

Y++;

x==y’

C)

X=11;

Y=10;

y--;

x==y;

D)

X=11;

Y=10;

y-= 1;

x==y

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 7

Consider the following code:

as

What change if any needs to be made for a "Thank you" message to appear when the checkout page is loaded?

Options:

A.

On fine 11 onupload need to be changed to onload.

B.

On line 8 alter needs to be changed to prompt

C.

On line 11, onupload needs to be changed to onload.

D.

No changes needed. The alert message will appear when the page is loaded.

Question 8

Scarlet has the following code in her script:

Var namesArr =[‘’Joseph’,’ Charlotte’’, ‘’Nicole’’];

She wants to add the name Hank to the end of the array so that its length is 4. What code should she use?

Options:

A.

namesArr [4] ''Hank'';

B.

namesArr push (''Hank'');

C.

namesArr unshift (''Hank'');

D.

namesArr .shift (''Hank'');

Page: 1 / 6
Total 55 questions