New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: best70

1D0-435 CIW JavaScript Fundamentals exam Questions and Answers

Questions 4

When using frames, where should functions and variables be stored in a JavaScript-based Web site?

Options:

A.

Anywhere in the Web server that has an appropriate set of permissions to access and write.

B.

Anywhere in the HTML pages that not invoked in making the frameset.

C.

In any HTML file that is invoked in making the frameset.

D.

In the cgi-bin directory of the Web server.

Buy Now
Questions 5

A _________ creates an empty template from which real-time objects, called __________, can be generated.

Options:

A.

constructor, instances

B.

function, instances

C.

method, constructors

D.

variable, constructors

Buy Now
Questions 6

___________ 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.

Options:

A.

ServerSide JavaScript

B.

JavaWire

C.

LiveWire

D.

Java

Buy Now
Questions 7

In JavaScript, which of the following will clear a cookie?

Options:

A.

You cannot ever clear a cookie

B.

Type "Clear Cookie"

C.

Adding an expiration date that has already passed.

D.

rename the cookie "clear.cookie"

Buy Now
Questions 8

Function blocks begin with the keyword __________ followed by the function name.

Options:

A.

run

B.

SCRIPT

C.

function

D.

method

Buy Now
Questions 9

JavaScript contains no Keywords that you must use to achieve specific results.

Options:

A.

FALSE

B.

TRUE

Buy Now
Questions 10

What will the following JavaScript code do when it runs?

var content="";

content += "<HTML><HEAD><BASE TARGET='_blank'></HEAD>";

content += "<BODY BGCOLOR='#CC9966' TEXT='#330000'>";

content += "Related Sites".big().fontcolor("blue") + "<P>\n";

content += "These sites are of interest to ";

content += "Afrikunda".italics();

content += " patrons.<P>\n";

Options:

A.

open a new window with new content

B.

create content on the fly

C.

nothing, it is invalid

D.

overwrite each line with the previous line

Buy Now
Questions 11

_______ represent various attributes of an object, such as height, color, font size, sentence length, and so forth.

Options:

A.

Values

B.

behaviors

C.

Methods

D.

Properties

Buy Now
Questions 12

JavaScript and _____________ are scripting languages that are similar in purpose. Both extend the capabilities of static Web pages.

Options:

A.

Java

B.

C++

C.

VBScript

D.

Visual Basic

Buy Now
Questions 13

What does the following JavaScript code do"

"Hello, World!".length;

Options:

A.

Test the width of a literal string.

B.

Writes Hello, World to the screen.

C.

Test the length of a literal string.

D.

nothing

Buy Now
Questions 14

Which of the following is the JavaScript's server-side solution that 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.

Options:

A.

ServerSide JavaScript

B.

JavaWire

C.

Java

D.

LiveWire

Buy Now
Questions 15

Regarding cookies: If the expires attribute is not used, when will the cookie expire?

Options:

A.

in 10 days

B.

in 3 days

C.

in 30 days

D.

at the end of the user's session with the Web application

Buy Now
Questions 16

JavaScript offer a predefined method for determining when you should use custom objects instead of arrays for your programs.

Options:

A.

FALSE

B.

TRUE

Buy Now
Questions 17

Assuming Z= 3 and y= 2, what would be the result of : Z+=Y

Options:

A.

The value of Y is now 5

B.

The value of Y is now 3

C.

The value of Z is now 5

D.

The value of Z is now 2

E.

5

Buy Now
Questions 18

A __________ is an organized block of code that handles actions generated by user events.

Options:

A.

function

B.

method

C.

statement

D.

object

Buy Now
Questions 19

Variables can store _______ data types in JavaScript.

Options:

A.

7

B.

5

C.

4

D.

6

Buy Now
Questions 20

The term __________________ refers to any application, such as a Web Browser or help engine, that renders HTML for display to users.

Options:

A.

browser window

B.

Internet Explorer

C.

user agent

D.

browser agent

Buy Now
Questions 21

The __________ method tests for the presence and position of a certain character.

Options:

A.

lastIndexOf()

B.

indexOf()

C.

presenceOf()

D.

length()

Buy Now
Questions 22

Which is the JavaScript property that is used to inform a script that an image has finished loading?

Options:

A.

final

B.

whole

C.

total

D.

complete

Buy Now
Questions 23

Wilhelm is writing a constructor in JavaScript. He uses the word "this" when referring to the properties and methods in his object parameters and functions. Why?

Options:

A.

The "this" keyword is used to represent the object as the properties and methods are defined.

B.

Wilhelm's schema is not finalized yet, so he uses "this" as an empty placeholder in the code until the schema is set.

C.

The word "this" has no significance outside of Wilhelm's script ?he chose this nomenclature randomly.

D.

Wilhelm can reuse the object by substituting the word "this" for the real values, using a function to insert the real names.

Buy Now
Questions 24

You are creating a Web page. You want to ensure that users who have older browsers that cannot display JavaScript can still view your home page.

How should you proceed?

Options:

A.

Save the JavaScript to a separate file with a .txt extension.

B.

Write the script in an additional scripting language.

C.

Use the HTML comment tag around the JavaScript code inside