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: 4 / 8
Total 244 questions

Once the constructor is defined, you need to create new instances of the object. This process is called instantiation.

A.

FALSE

B.

TRUE

Variables can store _______ data types in JavaScript.

A.

7

B.

5

C.

4

D.

6

_________ refers to the fact that some objects cannot be used or referenced without referring to the parent object.

A.

Containership

B.

Enveloping

C.

Parentship

D.

Hierarchy

The __________ is the building block of all custom objects.

A.

statement

B.

function

C.

variable

D.

constructor

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

A.

FALSE

B.

TRUE

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?

A.

1.0825 % of the order amount

B.

nothing

C.

The order amount only

D.

The order amount plus sales tax of 1.0825

Which of the following operators is the logical "and", that evaluates to true when both operands are true?

A.

AND

B.

&

C.

and

D.

&&

Placing / in front of a line of text, within the Script tags will result in ______________

A.

everything to the end of the line being ignored.

B.

The command that follows being carried out

C.

Everything that follows being ignored

D.

Nothing, as this is not valid

If a function is not a built in function, then it is a _________________ function.

A.

canned

B.

user-defined

C.

object based

D.

Java

var firstName="Sandy" would be the correct way to declare the variable firstName and assign it an initial value of "Sandy".

A.

True

B.

False