Massive Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

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

Demo: 36 questions
Total 244 questions

CIW JavaScript Fundamentals exam Questions and Answers

Question 1

To instantiate and then populate the properties of each new instance with actual data, you must _________ _________.

Options:

A.

declare functions

B.

declare variables

C.

create values

D.

call the function

Question 2

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 3

in JavaScript, x++ will add one to the value of x after the assignment is complete.

Options:

A.

TRUE

B.

FALSE

Question 4

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 5

JavaScript is a strong object-oriented language that relies, for a large part of its functionality, on objects and their attendant methods and properties.

Options:

A.

False

B.

TRUE

Question 6

In programming, _____ encapsulate predesignated attributes and behaviors.

Options:

A.

methods

B.

objects

C.

attributes

D.

values

Question 7

Since JavaScript is case sensitive, using lower case to refer to language objects will result in an error.

Options:

A.

FALSE

B.

TRUE

Question 8

|| is a comparison operator.

Options:

A.

FALSE

B.

TRUE

Question 9

JavaScript was the first scripting language developed for Webpage design.

Options:

A.

True

B.

False

Question 10

The variable name "firstname" is the same as variable name "FirstName".

Options:

A.

TRUE

B.

FALSE

Question 11

_________ 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 12

The __________ is the building block of all custom objects.

Options:

A.

statement

B.

function

C.

variable

D.

constructor

Question 13

Which form element would you use to create a scriptable button other than a reset or submit button?

Options:

A.

reset

B.

frm.Button

C.

button

D.

form.button

Question 14

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

Options:

A.

FALSE

B.

TRUE

Question 15

With JavaScript, it is possible to change two frames simultaneously.

To do this, you must write a function that includes _________________

Options:

A.

two location.href statements

B.

two parent.parent statements

C.

two references to top

D.

You cannot really do this.

Question 16

Which of the following would be the correct JavaScript way to make a text string appear in bold print?

Options:

A.

"Hello!"

B.

"Hello!.bold()";

C.

"Hello!".bold();

D.

"Hello!"

Question 17

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

Question 18

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 19

Which property of the location object specifies the internal link anchor name, which is followed by the number sign (#) in the URL?

Options:

A.

hash

B.

href

C.

host

D.

pathname

Question 20

When using custom JavaScript objects, why should you use arrays of instantiate each object individually?

Options:

A.

If the Web browser must parse the same code repeatedly, your computer will probably run more slowly.

B.

Because JavaScript requires more time to instantiate objects individually than does Perl or another scripting language.

C.

Arrays are more efficient because they are flexible and they are indexed, thus repetitive tasks are easier to handle.

D.

Because JavaScript handles memory so poorly, it is impossible to write single variables that function in any number.

Question 21

Consider the various JavaScript methods, such as alert(), prompt(), and confirm(). These methods are methods of which object?

Options:

A.

Variable object

B.

Event object

C.

Window object

D.

Condition object

Question 22

Which special character in JavaScript is interpreted as a new line?

Options:

A.

\\

B.

\n

C.

\b

D.

\t

Question 23

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 24

Chiyo wants to open a new window with JavaScript, but she repeatedly receives an error message. She reviews her code, as shown: open ("http://www.prolific.com ", "Pro Window" , "toolbar = 1 ,location = 1 ,menubar = 1 , scrollbars = 1 ,status = 1 ,resizable = 1"); Which one of the following choices shows how Chiyo should rewrite this line of code so that no errors result when it is executed?

Options:

A.

open("http://www.prolific.com ","Pro Window","toolbar=1 ,location=1,menubar=1,scrollbars=1,status=1,resizable=1 ");

B.

open("http://www.prolific.com ","Pro Window ","toolbar = 1,location =1,menubar = 1 ,scrollbars = 1,status = 1 ,resizable = 1");

C.

open("http://www.prolific.com ","ProWindow ","toolbar=1,location=1,menubars=1,scrollbars=1,status=1,resizable=1 ");

D.

open ("http://www.prolific.com ", "ProWindow","toolbar = 1,location = 1,menubar = 1,scrollbars = 1,status = 1,resizable = 1 ");

Question 25

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

Options:

A.

request()

B.

alert()

C.

confirm()

D.

prompt()

Question 26

Consider the following HTML:

<|>

Which method of the String object is used to write the JavaScript equivalent to this HTML?

Options:

A.

bold()

B.

fixed()

C.

italic()

D.

sub()

Question 27

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 28

A function that defines methods and properties of a custom object used as a template for instances of the custom object is a _______________

Options:

A.

predefined object

B.

method

C.

constructor

D.

new instance

Question 29

Which JavaScript object should be used to create buttons that animate whenever the mouse pointer passes over them?

Options:

A.

Button

B.

File

C.

Image

D.

Frame

Question 30

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.

Question 31

A way to exit a loop that would otherwise continue to execute is to use the break statement. If a condition is reached, the user is allowed to break out of the loop. You can use the break statement within the ______________.

Options:

A.

if and else loops

B.

for and while loops

C.

while and else statements

D.

if and for statements

Question 32

Which one of the following is an action that can be performed by an object?

Options:

A.

Property

B.

Value

C.

Method

D.

String

Question 33

The form element ___________ is used for a single-line text field used for data entry.

Options:

A.

text

B.

data box

C.

data

D.

textarea

Question 34

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"

Question 35

The JavaScript object model divides objects into 3 groups. They are:

Options:

A.

Browser, window and form objects.

B.

Browser, language and form field objects.

C.

Browser, window and document objects.

D.

Window, document and form objects.

Question 36

Which of the following is the proper file extension for an external script file.

Options:

A.

.js

B.

.html

C.

.src

D.

.jvs

Demo: 36 questions
Total 244 questions