Black Friday Sale - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65percent

Welcome To DumpsPedia

1D0-435 Sample Questions Answers

Questions 4

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

Buy Now
Questions 5

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

Buy Now
Questions 6

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

Options:

A.

functions

B.

behaviors

C.

actions

D.

methods

Buy Now
Questions 7

VBScript and _____________ are scripting languages that are similar in purpose. Both extend the capabilities of static Web pages.

Options:

A.

C++

B.

Visual Basic

C.

JavaScript

D.

Java

Buy Now
Questions 8

Which property of the document object represents the color in which text is to be displayed?

Options:

A.

txColor

B.

bgColor

C.

fgColor

D.

txtColor

Buy Now
Questions 9

Wilhelm is creating a Web page using JavaScript. He wants to set a cookie with each site visitor so that his Web server can recognize visitors on subsequent visits for one month.

Which one of the following choices contains the elements required in this cookie?

Options:

A.

CGI script that requires the visitor to provide name and address.

B.

The name=value and user=ID fields.

C.

The name=value and expires=date fields.

D.

The “secure” keyword and all the key=value pairs.

Buy Now
Questions 10

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

Buy Now
Questions 11

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.

Buy Now
Questions 12

Jennie wants to retrieve the MIME information about her Web form.

Which property of the form object retrieves this information?

Options:

A.

method

B.

name

C.

action

D.

encoding

Buy Now
Questions 13

An __________ is a part of a statement that is evaluated as a value.

Options:

A.

exception

B.

assignment

C.

expression

D.

operator

Buy Now
Questions 14

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

Options:

A.

TRUE

B.

FALSE

Buy Now
Questions 15

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

Buy Now
Questions 16

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

Buy Now
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.

Buy Now
Questions 18

The ____________ method counts from the ending position of the string.

Options:

A.

indexOf()

B.

positionOf()

C.

lengthOf()

D.

lastIndexOf()

Buy Now
Questions 19

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

Options:

A.

FALSE

B.

TRUE

Buy Now
Questions 20

Which one of the following best describes JavaScript?

Options:

A.

Interpreted at run time, and complied

B.

Interpreted at run time, and not compiled

C.

Not interpreted at run time, and compiled on the server

D.

Not interpreted at run time, and not compiled

Buy Now
Questions 21

alert(), prompt(), and confirm() are all examples of _________________

Options:

A.

behaviors

B.

values

C.

methods

D.

actions

Buy Now
Questions 22

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

Buy Now
Questions 23

-= is a _________________ type of operator.

Options:

A.

Logical

B.

Arithmetic

C.

Assignment

D.

Unary

Buy Now
Questions 24

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

Buy Now
Questions 25

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

Buy Now
Questions 26

_______ are the actions that the object property can be made to perform, such as a calculation, an onscreen move, or the writing of text in a window.

Options:

A.

Behaviors

B.

Values

C.

Methods

D.

Properties

Buy Now
Questions 27

Although not mandatory, it is advisable to define all your functions in the HEAD element of your HTML document.

Options:

A.

TRUE

B.

FALSE

Buy Now
Questions 28

1stName would be a valid variable name.

Options:

A.

True

B.

False

Buy Now
Questions 29

In JavaScript, in order to target a frame, you need to know

Options:

A.

the frame's name.

B.

a frame's number in the frames array

C.

the URL of the frame.

D.

a frame's number in the frames array, or the frame's name.

Buy Now
Questions 30

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

Buy Now
Questions 31

A server named www.thisserver.com can set a cookie for the domain www.thatserver.com.

Options:

A.

FALSE

B.

TRUE

Buy Now
Questions 32

The only way to use date and time information in JavaScript is through the Date object.

Options:

A.

FALSE

B.

TRUE

Buy Now
Questions 33

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.

Buy Now
Questions 34

The continue statement can only be used within a __________________.

Options:

A.

for or a while loop

B.

for loop

C.

for or a next loop

D.

while statement

Buy Now
Questions 35

alinkColor, anchors, bgColor, cookie and fgColor are all properties of the _______________ object.

Options:

A.

document

B.

browser

C.

form field

D.

window

Buy Now
Questions 36

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.

Options:

A.

navigator

B.

userAgent

C.

useNav

D.

version

Buy Now
Questions 37

A (an) __________ is a value or expression containing data or code that is passed on to a function or procedure.

Options:

A.

method

B.

object

C.

argument

D.

statement

Buy Now
Questions 38

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.

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

Buy Now
Questions 39

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

Buy Now
Questions 40

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

Which JavaScript method should she use to perform this task?

Options:

A.

substring()

B.

supstring()

C.

subtext()

D.

searchtxt()

Buy Now
Questions 41

You are creating a Web page. You want to ensure that users who have older browsers that cannot display JavaScript can still view your home page.

How should you proceed?

Options:

A.

Save the JavaScript to a separate file with a .txt extension.

B.

Write the script in an additional scripting language.

C.

Use the HTML comment tag around the JavaScript code inside