Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Question # 4

Which is the best definition of a JavaScript instance?

A.

A time-limited set of values taken from a database

B.

An example of a field in a database

C.

An example of an object

D.

A static representation of real-time data

Full Access
Question # 5

Which is the JavaScript property that is used to inform a script that an image has finished loading?

A.

final

B.

whole

C.

total

D.

complete

Full Access
Question # 6

Which special character in JavaScript is interpreted as a tab?

A.

\\

B.

\t

C.

\b

D.

\f

Full Access
Question # 7

Which one of the following choices best describes how cookies are stored on a user’s hard drive?

A.

On UNIX machines, cookies are stored as .bin files in the user’s home directory.

B.

Cookies are stored in files that are linked to each site visited.

C.

Depending on the browser type, cookies are stored as text strings in directories.

D.

Cookies are stored in the directory where the browser executables are stored, and are compressed to save space.

Full Access
Question # 8

Which special character in JavaScript is interpreted as a backslash?

A.

\b

B.

\/

C.

\\

D.

\r

Full Access
Question # 9

JavaScript was the first scripting language developed for Webpage design.

A.

True

B.

False

Full Access
Question # 10

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

A.

FALSE

B.

TRUE

Full Access
Question # 11

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

A.

onClick, onSelect, onChange

B.

click, select, change

C.

blur, forus, change

D.

onBlur, onFocus, onChange

Full Access
Question # 12

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

A.

TRUE

B.

FALSE

Full Access
Question # 13

The __________ method tests for the presence and position of a certain character.

A.

lastIndexOf()

B.

indexOf()

C.

presenceOf()

D.

length()

Full Access
Question # 14

For a comment that extends beyond the current line, enclose the area that will not execute with ____________________________-

A.

*/comment/*

B.

/*comment*/

C.

*/comment*/

D.

/*comment/*

Full Access
Question # 15

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

A.

"Hello!"

B.

"Hello!.bold()";

C.

"Hello!".bold();

D.

"Hello!"

Full Access
Question # 16

Assuming Z= 3 and y= 2, what would be the result of : Z+=Y

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

Full Access
Question # 17

function empObject(name, age, department) {

this.name = name;

this.age = age;

this.department = department;

this.showOne = showOne;

}

The code above Defines a constructor function for a custom object named empObject. It contains three properties: name, age, and department. It contains one method: showOne

A.

TRUE

B.

FALSE

Full Access
Question # 18

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

A.

predefined object

B.

method

C.

constructor

D.

new instance

Full Access
Question # 19

-= is a _________________ type of operator.

A.

Logical

B.

Arithmetic

C.

Assignment

D.

Unary

Full Access
Question # 20

How would you change two frames simultaneously in JavaScript?

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.

Full Access
Question # 21

Which property of the form object is a string value that contains the name of the window or frame to which responses to form submissions are directed?

A.

name

B.

elements

C.

encoding

D.

target

Full Access
Question # 22

Consider the following HTML:

<|>

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

A.

bold()

B.

fixed()

C.

italic()

D.

sub()

Full Access
Question # 23

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

A.

FALSE

B.

TRUE

Full Access
Question # 24

Which one of the following choices best describes a fundamental problem with JavaScript Web sites?

A.

Webmasters sometimes include too many cookies, and this can slow all transactions on a site.

B.

Cookies can inadvertently generate false verification of user IDs, creating potential security risks for the end user.

C.

Scripts can generate security problems or infinite loops if written incorrectly.

D.

The IPv6 protocol will have a major impact on JavaScript-based Web sites.

Full Access
Question # 25

A ____________ is an input object in the shape of a small square that can be selected, or checked on or off.

A.

input box

B.

checkbox

C.

select

D.

radio button

Full Access
Question # 26

The __________ object is used to reflect information about the browser being used. This object can determine the brand and version of the browser in use, as well as the user's operating system.

A.

navigator

B.

userAgent

C.

useNav

D.

version

Full Access
Question # 27

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

A.

FALSE

B.

TRUE

Full Access
Question # 28

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 ___________________.

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.

Full Access
Question # 29

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

The _____ indicator is used for multiple line comments.

A.

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

B.

//, /.../

C.

//,*/...*/

D.

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

Full Access
Question # 30

|| is a comparison opertator. x||y returns true if both x and y are true.

A.

FALSE

B.

TRUE

Full Access
Question # 31

A _________ creates an empty template from which real-time objects, called __________, can be generated.

A.

constructor, instances

B.

function, instances

C.

method, constructors

D.

variable, constructors

Full Access
Question # 32

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

A.

preform temporary calcuations.

B.

validate form field submissions.

C.

alert users with a greeting.

D.

prompt users for input.

Full Access
Question # 33

__________ is used frequently in JavaScript to combine text strings, especially in conjunction with prompt() and alert().

A.

Concatenation

B.

String()

C.

Instaniation

D.

Confirmation

Full Access
Question # 34

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

A.

FALSE

B.

TRUE

Full Access
Question # 35

In JavaScript, which of the following will clear a cookie?

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"

Full Access
Question # 36

Which JavaScript keyword targets the parent of all parent files in a frameset?

A.

parent

B.

_top

C.

top

D.

_parent

Full Access