Easter Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

CIW JavaScript Fundamentals exam Question and Answers

CIW JavaScript Fundamentals exam

Last Update May 15, 2024
Total Questions : 244

We are offering FREE 1D0-435 CIW exam questions. All you do is to just go and sign up. Give your details, prepare 1D0-435 free exam questions and then go for complete pool of CIW JavaScript Fundamentals exam test questions that will help you more.

1D0-435 pdf

1D0-435 PDF

$35  $99.99
1D0-435 Engine

1D0-435 Testing Engine

$42  $119.99
1D0-435 PDF + Engine

1D0-435 PDF + Testing Engine

$56  $159.99
Questions 1

What is the maximum size for any given cookie header?

Options:

A.  

The maximum size for the cookie header is 4 kilobytes.

B.  

The maximum size for the cookie header is 15 kilobytes.

C.  

There is no maximum size for the cookie header.

D.  

There is no maximum size for the cookie header, but the entire cookie cannot exceed 20 kilobytes.

Discussion 0
Questions 2

The ________ method request user input through a text field within a dialog box.

Options:

A.  

request()

B.  

alert()

C.  

confirm()

D.  

prompt()

Discussion 0
Questions 3

In which part of the HTTP communication protocol does the cookie initially begin to function?

Options:

A.  

In the initial query, to identify the user to the server.

B.  

In the HTTP response header.

C.  

In the parsing of the server’s user database.

D.  

After the server confirms the browser’s ability to recognize cookies.

Discussion 0
Questions 4

Which property of the location object refers to the hostname:port solution of the URL?

Options:

A.  

host

B.  

pathname

C.  

hash

D.  

protocol

Discussion 0
Questions 5

Sasha needs to display quotation marks for a greeting on the corporate Web page. She adds the quotation marks to the JavaScript as follows:

var questions = new Array(2)

questions[0] = “What is the capital of the USA?”;

questions[1] = “Who is the company “President”?”;

questions[2] = “Who is the company “Vice-President”?”;

When Sasha runs the code, however, the quotation marks do not appear around the words “President” and “Vice-President”

Which of the following choices shows how Sasha should rewrite the code to make the script execute properly?

Options:

A.  

questions[1] = “Who is the company “\President” \?”;

questions[2] = “Who is the company “\Vice-President” \?”;

B.  

questions[1] = “Who is the company “\President”\?”;

questions[2] = “Who is the company “\Vice-President”\?”;

C.  

questions[1] = “Who is the company \ “President” \?”;

questions[2] = “Who is the company \ “Vice-President” \?”;

D.  

questions[1] = “Who is the company \”President\”?”;

questions[2] = “Who is the company \”Vice-President\”?”;

Discussion 0
Questions 6

How would you change two frames simultaneously in JavaScript?

Options:

A.  

You must write a JavaScript function that includes two references to top.

B.  

You must write a JavaScript function that includes two or more location.href statements.

C.  

You must write a JavaScript function that includes the top.top statement.

D.  

You must write a JavaScript function that includes the parent.parent statement.

Discussion 0
Questions 7

The window object is subordinate to the document object in the JavaScript hierarchy.

Options:

A.  

FALSE

B.  

TRUE

Discussion 0
Questions 8

The specific color, width or height that belongs to a property of an object is held by what?

Options:

A.  

An object

B.  

A value

C.  

A method

D.  

A string

Discussion 0
Questions 9

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

Options:

A.  

True

B.  

False

Discussion 0
Questions 10

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

Options:

A.  

canned

B.  

user-defined

C.  

object based

D.  

Java

Discussion 0
Questions 11

JavaScript is a strong object-based language.

Options:

A.  

False

B.  

TRUE

Discussion 0
Questions 12

Which of the following is the JavaScript string object special character to insert a new line?

Options:

A.  

/n

B.  

\n

C.  

\b

D.  

/b

Discussion 0
Questions 13

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

Options:

A.  

FALSE

B.  

TRUE

Discussion 0
Questions 14

The name=value pair is the only information required to generate a cookie. All other parameters are optional.

Options:

A.  

FALSE

B.  

TRUE

Discussion 0
Questions 15

What would the following code return?

"This is a test".indexOf("h",0);

Options:

A.  

3

B.  

14

C.  

2

D.  

1

Discussion 0
Questions 16

The select object has three event handlers: __________, __________ and __________.

Options:

A.  

onClick, onSelect, onChange

B.  

click, select, change

C.  

blur, forus, change

D.  

onBlur, onFocus, onChange

Discussion 0
Questions 17

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

Options:

A.  

the command that follows being carried out

B.  

everything that follows being ignored

C.  

nothing, as this is not valid

D.  

everything to the end of the line being ignored.

Discussion 0
Questions 18

__________ and __________ are interchangeable in JavaScript.

Options:

A.  

Methods and functions

B.  

Ojects and functions

C.  

Properties and attributes

D.  

Methods and properties

Discussion 0
Questions 19

________________ developed JavaScript.

Options:

A.  

Netscape

B.  

IBM

C.  

W3C

D.  

Microsoft

Discussion 0
Questions 20

A __________ is a named space of memory, like a container that holds a value.

Options:

A.  

value

B.  

prompt()

C.  

property

D.  

variable

Discussion 0
Questions 21

JavaScript is case sensitive, and the keyword "function" must be all lowercase.

Options:

A.  

FALSE

B.  

TRUE

Discussion 0
Questions 22

Amazon.com deposits a cookie that allows a user to purchase a book by clicking only once. The user does not have to re-enter credit card or any other information.

What is this an example of?

Options:

A.  

cookie magic

B.  

state maintenance

C.  

cookie assignment

D.  

cookie maintenance

Discussion 0
Questions 23

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

Options:

A.  

FALSE

B.  

TRUE

Discussion 0
Questions 24

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

Options:

A.  

the mouseover object

B.  

the mouseover method

C.  

the mouseover property

D.  

the image object

Discussion 0
Questions 25

The _______ indicator delineates a comment on a single line of script.

The _____ indicator is used for multiple line comments.

Options:

A.  

//, /*.....*/

B.  

//, /.../

C.  

//,*/...*/

D.  

/*.....*/, //

Discussion 0
Questions 26

If you want to declare a variable that can be accessed by more than one function or script block in your program, you will need to declare the variable ___________________.

Options:

A.  

In the HEAD element of the HTML document.

B.  

Outside of any function definition.

C.  

Inside your function definition.

D.  

In the body element of the HTML document.

Discussion 0
Questions 27

Frames are arranged in a parent child hierarchy. With this in mind, in JavaScript, which keyword targets the parent of all parents in a frameset?

Options:

A.  

top

B.  

_parent

C.  

parent

D.  

_top

Discussion 0
Questions 28

Which of the following are all the types of expressions allowed in JavaScript?

Options:

A.  

Assignment, arithmetic, string and logical

B.  

Assignment, arithmetic, string and boolean

C.  

Assignment, arithmetic, string, logical, comparison, and boolean

D.  

Assignment, arithmetic, string, logical and boolean

Discussion 0
Questions 29

A (an) _________ is a programming function that models the characteristic of abstract or real "objects" using classes.

Options:

A.  

method

B.  

attribute

C.  

object

D.  

value

Discussion 0
Questions 30

On of the most common and functional uses of client-side JavaScript is to _______________________________.

Options:

A.  

preform temporary calcuations.

B.  

validate form field submissions.

C.  

alert users with a greeting.

D.  

prompt users for input.

Discussion 0
Questions 31

The _________ method, allows you to create text that is dynamically written to the window as the script is executed.

Options:

A.  

document.write()

B.  

document.prompt()

C.  

prompt()

D.  

document.input()

Discussion 0
Questions 32

Which of the following is the correct way to test for the presence of a cookie?

Options:

A.  

test(document.cookie);

B.  

alert(document.cookie);

C.  

document.cookie

D.  

prompt(document.cookie);

Discussion 0
Questions 33

You want to comment out multiple lines of JavaScript.

Which of the following should you use in your code?

Options:

A.  

//

B.  

C.  

/”…”/

D.