Month End Special - 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

1D0-435 Questions and Answers

Question # 6

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

A.

.js

B.

.html

C.

.src

D.

.jvs

Full Access
Question # 7

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 # 8

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

A.

canned

B.

user-defined

C.

object based

D.

Java

Full Access
Question # 9

In Microsoft Internet Explorer, what is the purpose of the DAT file?

A.

The DAT file contains a history of the cookie's origin and expiration date.

B.

The DAT file is used in caching, sometimes in tandem with cookies.txt.

C.

The DAT file contains user preferences that, when used in conjunction with certain cookies and Web sites, streamline the

ordering process by loading the user profile once.

D.

The DAT file is a Digital Archived Text file that provides superior performance to the cookies.txt file.

Full Access
Question # 10

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

A.

FALSE

B.

TRUE

Full Access
Question # 11

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

A.

functions

B.

behaviors

C.

methods

D.

actions

Full Access
Question # 12

A ______________ is used to send form contents to a server.

A.

send box

B.

submit button

C.

send button

D.

submit box

Full Access
Question # 13

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

Full Access
Question # 14

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

A.

lastIndexOf()

B.

indexOf()

C.

presenceOf()

D.

length()

Full Access
Question # 15

Raul wants to display the current data and time in the Web page he just created.

Which JavaScript object can he use to access this information and display it on a Web page?

A.

Realtime

B.

Clock

C.

Time

D.

Date

Full Access
Question # 16

Which method of the String object would you use when writing the name of a chemical compound, such as “H20”?

A.

sup()

B.

sub()

C.

small()

D.

anchor()

Full Access
Question # 17

What willthe following JavaScript code do when it runs?

<SCRIPT Language="JavaScript">

<!--

var d=new Date;

var h=d.getHours();

var msg="";

var targ;

if(h<12)

msg="<h1>Good Morning!</h1>";

else if(h>=12 && h<18)

msg="<h1>Good Afternoon!</h1>";

else

msg="<h1>Good Evening!<h1>";

document.write(msg);

/-->

</SCRIPT>

A.

It will write "Good Afternoon!'

B.

If it is before noon, it will write "Good Morining!", if after noon but before 6 pm, "Good Afternoon!" if after 6 pm, "Good Evening!"

C.

It will write "Good Evening!"

D.

It will write "Good Morning!'

Full Access
Question # 18

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

A.

if and else loops

B.

for and while loops

C.

while and else statements

D.

if and for statements

Full Access
Question # 19

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 # 20

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

A.

TRUE

B.

FALSE

Full Access
Question # 21

__________ 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 # 22

Cookies are commonly used to store information about a user to maintain state.

A.

FALSE

B.

TRUE

Full Access
Question # 23

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 # 24

alert(), prompt() and confirm() are all methods of the __________ object.

A.

window

B.

browser

C.

form

D.

document

Full Access
Question # 25

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

A.

Property

B.

Value

C.

Method

D.

String

Full Access
Question # 26

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

A.

FALSE

B.

TRUE

Full Access
Question # 27

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

A.

FALSE

B.

TRUE

Full Access
Question # 28

Ann inadvertently deleted her cookies.txt file.

How will this affect her browsing experience?

A.

She must re-enter her personal information wherever she has user accounts that rely on cookies.

B.

She will enjoy a quicker browsing experience because the servers she visits need not confirm her user identity.

C.

It depends on the type of cookies.txt file that was generated within her browser user profile; if the cache files and cookies.txt were deleted, all links will appear unvisited.

D.

Her Web browser will no longer function because the cookies.txt file is necessary for browser operation.

Full Access
Question # 29

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?

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 ");

Full Access
Question # 30

Tanja needs to examine only a small portion of a string.

Which JavaScript method should she use to perform this task?

A.

substring()

B.

supstring()

C.

subtext()

D.

searchtxt()

Full Access
Question # 31

What is the JavaScript term for a string value that represents the URL of the document from which the current document was accessed?

A.

Referrer

B.

Location

C.

Link

D.

Anchor

Full Access
Question # 32

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 # 33

Which one of the following is a descriptive characteristic of an object, such as color, width or height?

A.

Object

B.

Property

C.

Method

D.

String

Full Access
Question # 34

In JavaScript, objects possess which of the following?

A.

Attributes and styles

B.

Properties and methods

C.

Behaviors and styles

D.

Attributes and strings

Full Access
Question # 35

What is the primary method for deleting cookies?

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.

Full Access
Question # 36

In JavaScript, the operator =, is an assignment operator. It will __________________

A.

add the value of the left operand to the right operand

B.

add together the operands.

C.

assign the value of the left operand to the right operand.

D.

assign the value of the right operand to the left operand.

Full Access