Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

CIW 1D0-435 - CIW JavaScript Fundamentals exam

Page: 1 / 8
Total 244 questions

What willthe following JavaScript code do when it runs?

<SCRIPT Language="JavaScript">

<!--

var d=new Date;

var h=d.getHours();

var msg="";

var targ;

if(h<12)

msg="<h1>Good Morning!</h1>";

else if(h>=12 && h<18)

msg="<h1>Good Afternoon!</h1>";

else

msg="<h1>Good Evening!<h1>";

document.write(msg);

/-->

</SCRIPT>

A.

It will write "Good Afternoon!'

B.

If it is before noon, it will write "Good Morining!", if after noon but before 6 pm, "Good Afternoon!" if after 6 pm, "Good Evening!"

C.

It will write "Good Evening!"

D.

It will write "Good Morning!'

If the secure attribute is not used, the cookie is not deemed safe to be sent over unprotected channels.

A.

FALSE

B.

TRUE

A user can never delete or disable cookies

A.

TRUE

B.

FALSE

A button that changes its image on mouseover is an example of _______________.

A.

the mouseover object

B.

the mouseover method

C.

the mouseover property

D.

the image object

Which of the following is the proper file extension for an external script file.

A.

.js

B.

.html

C.

.src

D.

.jvs

Creating your object references as elements of an array rather than creating individual variables will make them easier to use for repetitive tasks?

A.

FALSE

B.

TRUE

What should you use to evaluate multiple custom objects?

A.

A statement

B.

A variable

C.

A function

D.

A method

In JavaScript, ++x+ will add one to the value of x after the assignment is complete.

A.

FALSE

B.

TRUE

___________ is JavaScript's server-side solution. It enables you to connect Web pages to databases, as well as enable server-side image maps and save client state so that the computer will remember where the client is in a multi-page preocess.

A.

ServerSide JavaScript

B.

JavaWire

C.

LiveWire

D.

Java

Which of the following is a correct way in JavaScript to target the second frame in a frames array, assuming the name of the frame is "b"?

A.

parent.b.location.href = "new.htm";

B.

parent.frames[1].location.href = "new.htm"; or parent.b.location.hre = "new.htm";

C.

parent.frames[1].location.href = "new.htm";

D.

parent.frames[1].URL.href = "new.htm";