最新的Microsoft Programming in HTML5 with JavaScript and CSS3 - 70-480免費考試真題
問題1
You are developing an application that processes order information. Thousands of orders are processed daily.
The application includes the following code segment. (Line numbers are included for reference only.)

The application must:
* Display the number of orders processed and the number of orders remaining
* Update the display for every 25th record processed
You need to develop the application to meet these requirements.
Which line of code should you insert at line 04?
The application includes the following code segment. (Line numbers are included for reference only.)

The application must:
* Display the number of orders processed and the number of orders remaining
* Update the display for every 25th record processed
You need to develop the application to meet these requirements.
Which line of code should you insert at line 04?
正確答案: B
說明:(僅 VCESoft 成員可見)
問題2
You are validating user input by using JavaScript and regular expressions.
A group of pre-defined regular expressions validate two input fields:
You need to use the correct expression to validate the input.
Which expression should you insert into each function? To answer, select the appropriate options from the drop-down lists in the answer area.

A group of pre-defined regular expressions validate two input fields:
You need to use the correct expression to validate the input.
Which expression should you insert into each function? To answer, select the appropriate options from the drop-down lists in the answer area.

正確答案:

Explanation

問題3
You are creating a JavaScript function that displays the name of a web application.
You declare the following button element.
<input type="button" id= "About" value="About" />
When a user clicks the button, a JavaScript function named About must be called.
You need to create an event handler that calls the About function when the button is clicked.
Which two code segments can you use? (Each correct answer presents a complete solution. Choose two.)

You declare the following button element.
<input type="button" id= "About" value="About" />
When a user clicks the button, a JavaScript function named About must be called.
You need to create an event handler that calls the About function when the button is clicked.
Which two code segments can you use? (Each correct answer presents a complete solution. Choose two.)

正確答案: B,C
說明:(僅 VCESoft 成員可見)
問題4
You are developing a web page by using HTML5 and C5S3. The page includes a <div> tag with the ID set to validate.
When the page is rendered, the contents of the <div> tag appear on a line separate from the content above and below it. The rendered page resembles the following graphic.

The page must be rendered so that the <div> tag is not forced to be separate from the other content. The following graphic shows the correctly rendered output.

You need to ensure that the page is rendered to meet the requirement.
Which line of code should you use?
When the page is rendered, the contents of the <div> tag appear on a line separate from the content above and below it. The rendered page resembles the following graphic.

The page must be rendered so that the <div> tag is not forced to be separate from the other content. The following graphic shows the correctly rendered output.

You need to ensure that the page is rendered to meet the requirement.
Which line of code should you use?
正確答案: B
說明:(僅 VCESoft 成員可見)
問題5
You are creating a function by using JavaScript.
You have the following requirements:
The function must display loan amounts to the user within the following HTML element:
<div id="display"></div>
* The loan amount of 2100 must display in the HTML element.
* All declared variables and functions must be scoped to the myApp variable.
You need to implement the function.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct location or locations in the answer area. Use only code segments that apply.)

You have the following requirements:
The function must display loan amounts to the user within the following HTML element:
<div id="display"></div>
* The loan amount of 2100 must display in the HTML element.
* All declared variables and functions must be scoped to the myApp variable.
You need to implement the function.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct location or locations in the answer area. Use only code segments that apply.)

正確答案:

Explanation

問題6
You write the following JavaScript code. (Line numbers are included for reference only.)

You need to write a function that will initialize and encapsulate the member variable fullname.
Which are two possible code fragments that you can insert at line 02 to achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

You need to write a function that will initialize and encapsulate the member variable fullname.
Which are two possible code fragments that you can insert at line 02 to achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
正確答案: B,D
問題7
You need to write a jQuery function to consume a file named Orders.xml.
You write the following code.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets in the answer area. Each code element 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 write the following code.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets in the answer area. Each code element 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

References:
https://github.com/processing/p5.js/wiki/Loading-external-files:-AJAX,-XML,-JSON
問題8
You are developing a web page that includes the following HTML.
<span id = "myTextSpan" class = "redText"> Hello There! </span>
The font color of text inside the span must be red.
You need to develop the web page to meet the requirement.
Which two CSS segments will achieve the goal? (Each correct answer presents a complete solution. Choose two.)

<span id = "myTextSpan" class = "redText"> Hello There! </span>
The font color of text inside the span must be red.
You need to develop the web page to meet the requirement.
Which two CSS segments will achieve the goal? (Each correct answer presents a complete solution. Choose two.)

正確答案: C,D
說明:(僅 VCESoft 成員可見)
問題9
You are developing a corporate website for a company. The website uses a style sheet to enforce corporate image standards. Users report that the website is not properly rendering the styles.
You create a web page to test the styles by using the following code.

You need to verify how the style will be displayed.
In which order will the results be displayed? (To answer, drag the appropriate style from the list of styles to the correct location or locations in the work area.)

You create a web page to test the styles by using the following code.

You need to verify how the style will be displayed.
In which order will the results be displayed? (To answer, drag the appropriate style from the list of styles to the correct location or locations in the work area.)

正確答案:

Explanation

問題10
You are developing a JavaScript library.
You have the following requirements:
* Custom exceptions must include an error message and custom error number.
* These exceptions must be thrown when data validation errors occur.
* Developers must call the library to easily catch the exception and identify the problem.
You develop the following code. (Line numbers are included for reference only.)

You need to complete the code to meet the requirements.
Which line of code should you insert at line 09?
You have the following requirements:
* Custom exceptions must include an error message and custom error number.
* These exceptions must be thrown when data validation errors occur.
* Developers must call the library to easily catch the exception and identify the problem.
You develop the following code. (Line numbers are included for reference only.)

You need to complete the code to meet the requirements.
Which line of code should you insert at line 09?
正確答案: A
說明:(僅 VCESoft 成員可見)
問題11
You develop an HTML5 application for a company. Employees must enter a personal identification number (PIN) in an INPUT element named SecurityCode to access their employee records.
The SecurityCode element must meet the following requirements:
* Allow up to 6 digits.
* Do not display numbers as they are entered.
* Display the text Enter PIN Code before the user enters any data.
You need to implement the SecurityCode element.
Which HTML markup should you add to the application?

The SecurityCode element must meet the following requirements:
* Allow up to 6 digits.
* Do not display numbers as they are entered.
* Display the text Enter PIN Code before the user enters any data.
You need to implement the SecurityCode element.
Which HTML markup should you add to the application?

正確答案: B
說明:(僅 VCESoft 成員可見)

