New Year Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

CIW 1D0-435 - CIW JavaScript Fundamentals exam

Page: 5 / 8
Total 244 questions

The button object is the simplest of all objects. Its main event handler is __________.

A.

onClick

B.

onSubmit

C.

Click

D.

onReset

__________ are the actual data values you provide in JavaScript.

A.

Variables

B.

Literals

C.

Properties

D.

Methods

JavaScript is a strong object-based language.

A.

False

B.

TRUE

A ______________ is used to send form contents to a server.

A.

send box

B.

submit button

C.

send button

D.

submit box

__________ are used in expressions to store or return a value.

A.

variables

B.

assignments

C.

operators

D.

methods

When using custom JavaScript objects, why should you use arrays of instantiate each object individually?

A.

If the Web browser must parse the same code repeatedly, your computer will probably run more slowly.

B.

Because JavaScript requires more time to instantiate objects individually than does Perl or another scripting language.

C.

Arrays are more efficient because they are flexible and they are indexed, thus repetitive tasks are easier to handle.

D.

Because JavaScript handles memory so poorly, it is impossible to write single variables that function in any number.

Which property of the location object specifies the internal link anchor name, which is followed by the number sign (#) in the URL?

A.

hash

B.

href

C.

host

D.

pathname

Which one of the following choices best describes how cookies are stored on a user’s hard drive?

A.

On UNIX machines, cookies are stored as .bin files in the user’s home directory.

B.

Cookies are stored in files that are linked to each site visited.

C.

Depending on the browser type, cookies are stored as text strings in directories.

D.

Cookies are stored in the directory where the browser executables are stored, and are compressed to save space.

What is the primary difference between methods and functions when working with custom JavaScript objects?

A.

There is no difference between methods and functions in JavaScript.

B.

Methods work with single instances of objects, whereas functions can work on all instances of an object.

C.

Functions are declared in the constructor, whereas methods are never declared in the constructor.

D.

Methods are single entities, whereas functions can have more than one method.

Can a programmer refer to a variable from anywhere in a frameset?

A.

No – the protocol does not allow this.

B.

Yes – if the Webmaster refers to the variable using the proper syntax.

C.

Yes – if the variable is coded to account for differences in Netscape and Microsoft browsers.

D.

Yes – but this is not advisable because you cannot refer more than three variables.