Microsoft 70-480 Practice Questions Contd..

Posted by

The post is the continuation of previous post that contains the practice questions and answers for Microsoft Certification Exam (70-480) i.e. “Programming in HTML5 with JavaScript and CSS3”. The practice questions are for the candidates who are looking forward to seeking certification in MCSA: Web Applications i.e. Microsoft Certified Solution Associate. Get started now!.

QUESTION NO: 21

You work as a senior developer at ABC.com. The ABC.com network consists of a single domain named ABC.com.

You are running a training exercise for ABC.com’s junior developers. You are currently discussing an element positioning attribute that relies on the default flow of the document, and reflows content should the browser be resized.

Which of the following is the attribute being discussed?

A. Provisional positioning.

B. Relative positioning.

C. Variable positioning.

D. Absolute positioning.

Answer: B

QUESTION NO: 22

You work as a developer at ABC.com. The ABC.com network consists of a single domain named ABC.com.

You are in the process of creating a new client web form for ABC.com. You have added the HTML input field shown below:

<input id=”txtValue”/>

You then added the validation shown below to the HTML input field:

<input id=”txtValue” type=”number” />

Which of the following describes the reason for this validation?

A. It requires the input value to be a specific number of characters.

B. It requires the input value to be a number character.

C. It prevents the input value to be a number character.

D. It allows the input value to be any number of characters.

Answer: B

QUESTION NO: 23

You work as a developer at ABC.com. The ABC.com network consists of a single domain named ABC.com.

You are in the process of creating a new client web form for ABC.com. You have added the HTML input field shown below:

<input id=”txtValue”/>

You then added the validation shown below to the HTML input field:

<input id=”txtValue” type=”text” pattern=” [A-Za-z] {3}” />

Which of the following describes the reason for this validation?

A. It requires the input value to be three random characters.

B. It requires the input value to be a country code, three letters in length.

C. It requires the input value to be three numerical characters.

D. It requires the input value to be a country code, of any length.

Answer: B

QUESTION NO: 24

You work as a developer at ABC.com. The ABC.com network consists of a single domain named ABC.com. You make use of CSS3 and HTML5 for development purposes.

You are in the process of creating a new client web form for ABC.com. You have added the HTML input field shown below:

<input id=”txtValue” type=”text” />

You want to write the appropriate code to make sure that txtValue has a value inserted, prior to the form being tendered.

Which of the following is the required code?

A. function validate() {

var name = $(“#txtValue”).val () ;

if (name == null // name == “”)

alert (“please enter valid value”) ;

return;

}

B. function validate() {

var name = $(“#txtValue”).val ($) ;

if (name == null // name == “”)

alert (“”) ;

}

C. function validate() {

var name = (“#txtValue”).val ($) ;

alert (“please enter valid value”) ;

}

D. function validate() {

var name = $().val () ;

if (name == $ // name == “$”)

return;

}

Answer: A

QUESTION NO: 25

You work as a senior developer at ABC.com. The ABC.com network consists of a single domain named ABC.com.

You are running a training exercise for ABC.com’s junior developers. You are currently discussing the onreadystatechange event.

Which of the following is TRUE with regards to the onreadystatechange event? (Choose two.)

A. Certain objects will only execute the onreadystatechange event when a DHTML Behavior is

attached.

B. Objects will NOT execute the onreadystatechange event when a DHTML Behavior is attached.

C. All elements expose an onreadystatechange event.

D. Only certain elements expose an onreadystatechange event.

Answer: A, C

QUESTION NO: 26

You work as a developer at ABC.com. The ABC.com network consists of a single domain named ABC.com.

You are in the process of creating a new client web form for ABC.com. You have added the HTML input field shown below:

<input id=”txtValue”/>

You are then instructed to add code that clients are only allowed to insert 3 characters from the English character set, which represents an applicable country code.

Which of the following is TRUE with regards to the required code?

A. The code should include the Match Class.

B. The code should include the Regex Class.

C. The code should include the Group Class.

D. The code should include the Capture Class.

Answer: B

QUESTION NO: 27

You work as a developer at ABC.com. The ABC.com network consists of a single domain named ABC.com.

You have been instructed to develop an application that accesses data from a file. You have been informed that in the event of an error occurring when the file is read, a block of code should be triggered. Also, another block of code must be triggered regardless of whether this error occurs or not.

To achieve this, you require the use of three statements that must be applied in a specific order.

Which of the following is the statement that must be applied second?

A. The completely statement.

B. The finally statement.

C. The restore statement.

D. The throw statement.

E. The debug statement.

F. The throw statement.

Answer: B

QUESTION NO: 28

You work as a senior developer at ABC.com. The ABC.com network consists of a single domain named ABC.com.

You are running a training exercise for ABC.com’s junior developers. You are currently discussing creating an event handler that includes the addEventListener method.

Which of the following describes the purpose of this method?

A. It registers an event listener on a UIElement derived object.

B. It adds an object to the end of the collection.

C. It adds collection of StylusPoint objects to the collection.

D. It inserts an object into the collection at the specified index.

Answer: A

QUESTION NO: 29

You work as a developer at ABC.com. The ABC.com network consists of a single domain named ABC.com.

You have been instructed to test the value of the variable shown below:

var a = “200”;

You then write the following code:

if (a === “200”)

Which of the following is the purpose of this line of code?

A. It allows a block of code to fire if the height is less than 200.

B. It allows for a block of code to fire if the height equals 200, and the data type is string.

C. It prevents a block of code from firing if the height equals 200.

D. It prevents a block of code from firing if the length equals 200, and the data type is string.

Answer: B

QUESTION NO: 30

You work as a developer at ABC.com. The ABC.com network consists of a single domain named ABC.com. You make use of CSS3 and HTML5 for development purposes.

You are in the process of creating a new web application for ABC.com. The application will be configured to make use of web workers to process illustrations obtained from an HTML5 CANVAS object on a web page.

You also have to make sure that two-way communication exists between the web workers and the main page.

Which of the following actions should you take? (Choose all that apply.)

A. You should consider writing code that makes use of a Window object.

B. You should consider writing code that makes use of a Child object.

C. You should consider writing code that allows both the main page and the worker thread to listen for the onmessage event.

D. You should consider writing code that allows only the worker thread to listen for the onmessage event.

Answer: A,C

<<Previous Next >>

2 comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.