Winter Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

CIW 1D0-435 CIW JavaScript Fundamentals exam Exam Practice Test

Page: 1 / 24
Total 244 questions

CIW JavaScript Fundamentals exam Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$42  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$36.75  $104.99
Question 1

Raul is creating a Web page. Without a client-server interaction, he wants to ensure that a client enters data into some specific form fields. Which language should Raul use to accomplish this task?

Options:

A.

LiveWire

B.

HTML

C.

Client-side JavaScript

D.

Server-side JavaScript

Question 2

Which method of the String object would you use when writing a complex mathematical formula in JavaScript that includes powers, such as “E=MC2”?

Options:

A.

sup()

B.

anchor()

C.

small()

D.

fixed()

Question 3

Which property of the form object represents the identity of the form as defined in the

tag?

Options:

A.

elements

B.

method

C.

name

D.

target

Question 4

Which one of the following choices describes a type of information that a cookie can readily provide?

Options:

A.

The current licensing status of the software on the user's hard drive

B.

The addresses of all e-mail recipients with which the user has corresponded

C.

The current buying habits of the user

D.

A history of the sites that the user has visited

Question 5

What is the primary method for deleting cookies?

Options:

A.

Because most cookies have expiration dates, they are deleted with the passage of time.

B.

Each user must take the responsibility to delete cookies that are no longer needed.

C.

A cookie is deleted only when replaced by another cookie.

D.

Cookies can be deleted by clearing the browser cache every 10 days.

Question 6

Which special character in JavaScript is interpreted as a backslash?

Options:

A.

\b

B.

\/

C.

\\

D.

\r

Question 7

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

Options:

A.

host

B.

hash

C.

protocol

D.

href

Question 8

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

Question 9

What is the following?

Set-Cookie: name=Value: expires=date; path=path; domain=domain; secure

Options:

A.

A cookie header

B.

A name value pair

C.

A set cookie object

D.

A cookie setter

Question 10

A user can never delete or disable cookies

Options:

A.

TRUE

B.

FALSE

Question 11

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

Options:

A.

FALSE

B.

TRUE

Question 12

What should you use to evaluate multiple custom objects?

Options:

A.

A statement

B.

A variable

C.

A function

D.

A method

Question 13

Methods operate on _________ instances of objects.

Options:

A.

two

B.

three

C.

multiple

D.

single

Question 14

If the secure attribute is not used, the cookie is not deemed safe to be sent over unprotected channels.

Options:

A.

FALSE

B.

TRUE

Question 15

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

Question 16

The ____________ contains path information for the URL that issued the cookie.

Options:

A.

path=path pair

B.

domain=domain pair

C.

name=value pair

D.

url=url pair

Question 17

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

Question 18

JavaScript used two types of comment indicators. The _______ indicator delineates a comment on a single line of script. The _____ indicator is used for multiple line comments.

Options:

A.

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

B.

//,*/...*/

C.

//, /.../

D.

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

Question 19

A _______ is the specific color, width or height that belongs to the property of an object.

Options:

A.

method

B.

value

C.

property

D.

behavior

Question 20

Language objects are named with a capital letter. Since JavaScript is case sensitive, using lower case to refer to one of these objects will cause an error.

Options:

A.

TRUE

B.

FALSE

Question 21

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

Question 22

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()

Question 23

JavaScript contains both Keywords that you must use to achieve specific results and Reserved words that you are not permitted to use for variable or function names.

Options:

A.

TRUE

B.

FALSE

Question 24

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

Question 25

When you want to evaluate multiple objects in an array, you need a __________ instead of a ___________.

Options:

A.

literal, variable

B.

method, function

C.

variable, literal

D.

function, method

Question 26

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

Question 27

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

Question 28

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

Options:

A.

functions

B.

behaviors

C.

methods

D.

actions

Question 29

The location object is subordinate to the ___________ object in the JavaScript hierarchy.

Options:

A.

form field

B.

window

C.

browser

D.

document

Question 30

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

Question 31

_________ is used to associate an object's name with the object's properties or methods.

Options:

A.

A property

B.

A function

C.

A statement

D.

Dot notation

Question 32

JavaScript was the first scripting language developed for Webpage design.

Options:

A.

True

B.

False

Question 33

Which information is required to generate a cookie?

Options:

A.

The HTTP address, name server, and username validation are required.

B.

The validated return address of the user is the only required information.

C.

The name=value pair is the only required information.

D.

The path=domain is the only required information.

Question 34

The first character of a variable must be a letter or an underscore, but subsequent characters can be letters, numbers, and the underscore character.

Options:

A.

FALSE

B.

TRUE

Question 35

The following are both advantages of creating user defined objects in JavaScript:

1. You can create sophisticated solutions with a minimum of coding.

2. You can represent programming constructs as objects (which allows you to code efficient schemes for evaluating forms or creating client-side databases).

Options:

A.

TRUE

B.

FALSE

Question 36

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.

Page: 1 / 24
Total 244 questions