Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

How to Pass the CIW 1D0-435 Exam: Comprehensive CIW JavaScript Fundamentals exam Guide and Tips

Questions 31

Consider the following Code:

<script>

var state = "";

var orderAmount = 50;

state = prompt("Which state do you live in?","");

if (state.toUpperCase() == "CA") {

alert("Your total owed is: " + (orderAmount * 1.0825));

} else {

alert("Your total owed is:" + orderAmount);

}

</script>

What will the alert method display if the user lives in Tennessee?

Options:

A.

1.0825 % of the order amount

B.

nothing

C.

The order amount only

D.

The order amount plus sales tax of 1.0825

Buy Now
Questions 32

Some methods are also called functions, because they can return values.

Options:

A.

FALSE

B.

TRUE

Buy Now
Questions 33

JavaScript is an event-driven programming language. Events trigger _________.

Options:

A.

functions

B.

behaviors

C.

methods

D.

actions

Buy Now
Questions 34

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 35

Which one of the following is a descriptive characteristic of an object, such as color, width or height?

Options:

A.

Object

B.

Property

C.

Method

D.

String

Buy Now
Questions 36

Which of the following is the term for a single line of JavaScript code that is executed in a script or program?

Options:

A.

Statement

B.

String

C.

Sentence

D.

Comment

Buy Now
Questions 37

Can the practice of calling JavaScript functions from framesets be extended to calling them from different browser windows?

Options:

A.

Yes – but only if the Webmaster creates a hard link to the new window.

B.

No – the method used to refer one window to another is always coded in the frameset.

C.

No – JavaScript cannot perform this task; it is handled in the index.txt file.

D.

Yes – the syntax is slightly different, but the concept is basically the same.

Buy Now
Questions 38

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 39

Which property of the navigator object identifies the operating system for which the browser was compiled?

Options:

A.

platform

B.

userAgent

C.

appVersion

D.

appCodeName

Buy Now
Questions 40

Which property of the location object specifies whether HTTP or FTP is being used?

Options:

A.

host

B.

hash

C.

protocol

D.

href

Buy Now
Exam Code: 1D0-435
Exam Name: CIW JavaScript Fundamentals exam
Last Update: Jun 24, 2024
Questions: 244

PDF + Testing Engine

$159.99
$64

Testing Engine

$119.99
$48

PDF (Q&A)

$99.99
$40