最新的Microsoft Programming in HTML5 with JavaScript and CSS3 - 70-480免費考試真題
問題1
You have the following CSS markup that renders a red rectangle on a webpage.

How large will the red rectangle appear when it renders on the page?
You have the following CSS markup that renders a red rectangle on a webpage.

How large will the red rectangle appear when it renders on the page?
正確答案: C
說明:(僅 PDFExamDumps 成員可見)
問題2
You review a web form that contains the following markup and code:

You need to ascertain how the webpage responds when it loads and how it reacts to user actions.
For each statement in the table, select Yes if the code segment above causes the page to behave as described.
Select No if it does not. Make only one selection in each column.

You review a web form that contains the following markup and code:

You need to ascertain how the webpage responds when it loads and how it reacts to user actions.
For each statement in the table, select Yes if the code segment above causes the page to behave as described.
Select No if it does not. Make only one selection in each column.

正確答案:

Explanation

問題3
A web application has a web page that contains an HTML5 CANVAS element. A web extracts messages from the CANVAS element. You need to ensure that the web worker can read the message sent by the web page.
Which three object types can you use?
A web application has a web page that contains an HTML5 CANVAS element. A web extracts messages from the CANVAS element. You need to ensure that the web worker can read the message sent by the web page.
Which three object types can you use?
正確答案: C,D,F
說明:(僅 PDFExamDumps 成員可見)
問題4
You have the following markup.

For each of the following statements, select Yes if the statement is true. Otherwise, select False.
NOTE: Each correct selection is worth one point.

You have the following markup.

For each of the following statements, select Yes if the statement is true. Otherwise, select False.
NOTE: Each correct selection is worth one point.

正確答案:

Explanation

問題5
You would like to create a Windows 8 application by using Blend and HTML5, JavaScript, and CSS3.
Which feature of Blend enables you to pause an application when it reaches a desired state so you can set the style rules for the page and its controls while in this state? (Choose all that apply.)
You would like to create a Windows 8 application by using Blend and HTML5, JavaScript, and CSS3.
Which feature of Blend enables you to pause an application when it reaches a desired state so you can set the style rules for the page and its controls while in this state? (Choose all that apply.)
正確答案: B,C
說明:(僅 PDFExamDumps 成員可見)
問題6
You are developing a web application by using HTML5.
You have the following requirements.
* The color of a menu item must change when a user hovers over the item.
* The color of the menu item must change back to its original color after five seconds.
You need to ensure that the animation is applied to all menu items.
Which CSS3 code should you use?

You are developing a web application by using HTML5.
You have the following requirements.
* The color of a menu item must change when a user hovers over the item.
* The color of the menu item must change back to its original color after five seconds.
You need to ensure that the animation is applied to all menu items.
Which CSS3 code should you use?

正確答案: B
說明:(僅 PDFExamDumps 成員可見)
問題7
You are developing an application for an online retailer. The company ships only to certain countries.
The application must:
* Store a list of country codes in an array
* Validate the country code of the shipping address against the countries array
* Include a Boolean value in the array that indicates whether or not you can ship to the country
* Display a list of countries that can be shipped to if the user inputs a code for a country that the retailer cannot ship to You need to develop the application to meet the requirements.
Which code segment or segments should you use? (To answer, drag the appropriate code segment or segments from the list of code segments to the correct location or locations in the work area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

You are developing an application for an online retailer. The company ships only to certain countries.
The application must:
* Store a list of country codes in an array
* Validate the country code of the shipping address against the countries array
* Include a Boolean value in the array that indicates whether or not you can ship to the country
* Display a list of countries that can be shipped to if the user inputs a code for a country that the retailer cannot ship to You need to develop the application to meet the requirements.
Which code segment or segments should you use? (To answer, drag the appropriate code segment or segments from the list of code segments to the correct location or locations in the work area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

正確答案:

Explanation

* !arr[ctry] is true when the array element is false.
* The for..in statement iterates over the enumerable properties of an object, in arbitrary order. For each distinct property, statements can be executed.
Incorrect:
Not:

Would work fine if var i; would be replaced by i=0;
Reference: JavaScript Arrays; The for..in statement
問題8
You have the following HTML markup

You need to create a style so that the text "to this site" is displayed in blue.
Which markup should you use?
You have the following HTML markup

You need to create a style so that the text "to this site" is displayed in blue.
Which markup should you use?
正確答案: A
問題9
A company asks you to create a function that displays loan amounts to their customers.
You must create the function by using JavaScript to meet the following requirements:
* Display three different loan amounts to each customer.
* Display loan amounts in order starting with the greatest amount and ending with the least amount.
You need to implement the function.
How should you complete the relevant code? (To answer, drag the appropriate command or commands to the correct location or locations in the answer area. Use only commands that apply.)

A company asks you to create a function that displays loan amounts to their customers.
You must create the function by using JavaScript to meet the following requirements:
* Display three different loan amounts to each customer.
* Display loan amounts in order starting with the greatest amount and ending with the least amount.
You need to implement the function.
How should you complete the relevant code? (To answer, drag the appropriate command or commands to the correct location or locations in the answer area. Use only commands that apply.)

正確答案:

Explanation

* The innermost assignment to the loanAmount variable should be the highest.
* Local variables have local scope: They can only be accessed within the function.
Example
// code here can not use carName
function myFunction() {
var carName = "Volvo";
// code here can use carName
}
* A variable declared outside a function, becomes GLOBAL.
A global variable has global scope: All scripts and functions on a web page can access it.
Example
var carName = " Volvo";
// code here can use carName
function myFunction() {
// code here can usecarName
}
* The alert() method displays an alert box with a specified message and an OK button.
An alert box is often used if you want to make sure information comes through to the user.
Reference: JavaScript Scope
問題10
You are creating a custom function. You pass an object named testObj to the function as a parameter. You do not use inheritance through the functions.
The function must establish whether testObj inherits from another object named parentObj.
You need to ensure that the function performs as required.
Which method or operator should you add to the function?
You are creating a custom function. You pass an object named testObj to the function as a parameter. You do not use inheritance through the functions.
The function must establish whether testObj inherits from another object named parentObj.
You need to ensure that the function performs as required.
Which method or operator should you add to the function?
正確答案: A
說明:(僅 PDFExamDumps 成員可見)
問題11
You are developing an HTML5 web application for displaying encyclopedia entries.
Each encyclopedia entry has an associated image that is referred to in the entry.
You need to display the image by using the correct semantic markup.
What should you do? (To answer, select the appropriate options from the drop-down list in the answer area.)


You are developing an HTML5 web application for displaying encyclopedia entries.
Each encyclopedia entry has an associated image that is referred to in the entry.
You need to display the image by using the correct semantic markup.
What should you do? (To answer, select the appropriate options from the drop-down list in the answer area.)


正確答案:

Explanation

The <figure> element
The <figure> element is intended to be used in conjunction with the <figcaption> element to mark up diagrams, illustrations, photos, and code examples (among other things).
Example:
<figure>
<img src="/macaque.jpg" alt="Macaque in the trees">
<figcaption>A cheeky macaque, Lower Kintaganban River, Borneo. Original by <a href="
http://www.flickr.com/photos/rclark/">Richard Clark</a></figcaption>
</figure>
Reference: The figure & figcaption elements
問題12
You develop a web application by using jQuery. You develop the following jQuery code: (Line numbers are included for reference only.)

The web application exposes a RESTful web API that has an endpoint of/product/create.
You need to create a new product by using AJAX.
Which code segment should you insert at line 05?

You develop a web application by using jQuery. You develop the following jQuery code: (Line numbers are included for reference only.)

The web application exposes a RESTful web API that has an endpoint of/product/create.
You need to create a new product by using AJAX.
Which code segment should you insert at line 05?

正確答案: D
說明:(僅 PDFExamDumps 成員可見)