MCSD Programming in HTML5 with JavaScript and CSS3

Here you have the best Microsoft 70-480 practice exam questions

  • You have 260 total questions to study from
  • Each page has 5 questions, making a total of 52 pages
  • You can navigate through the pages using the buttons at the bottom
  • This questions were last updated on October 16, 2025
  • This site is not affiliated with or endorsed by Microsoft.
Question 1 of 260
DRAG DROP -
You are validating user input by using JavaScript and regular expressions.
A group of predefined regular expressions will validate two input fields:
✑ An email address in a function named validateEmail (for example, firstname@contoso.com)
✑ A nine-digit number that allows optional hyphens after the second and fifth character in a function named validateSSN(for example, 555555555 or 555-55-
5555)
You need to use the correct expression to validate the input.
Which expression should you insert into each function? (To answer, drag the appropriate regular expression statement to the correct location. Each regular expression statement 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.)
Select and Place:
Exam 70-480: Question 1 - Image 1
    Correct Answer:
    Exam 70-480: Question 1 - Image 2
Question 2 of 260
You are developing a customer web form that includes the following HTML.
<input id="txtValue" type="text" />
A customer must enter a valid age in the text box prior to submitting the form.
You need to add validation to the control.
Which code segment should you use?
Exam 70-480: Question 2 - Image 1
    Correct Answer: D

    To validate that the input is a valid age, you need to ensure that the value entered into the input field is captured and checked against a regular expression that handles numbers. Option D uses the .val() method to get the value from the input field, which is the proper method for input elements. It then uses a regular expression (regex) to validate that the input is a numeric value, which matches the requirement of validating an age. Despite the presence of the leftover emailPattern.test(userinput) line, it correctly performs the necessary validation to check if the field is not empty and contains a valid numeric value.

Question 3 of 260
You are developing an application that consumes a Windows Communication Foundation (WCF) service.
The application interacts with the service by using the following code. (Line numbers are included for reference only.)
Exam 70-480: Question 3 - Image 1
You need to authenticate to the WCF service.
What should you do?
    Correct Answer: A

    To authenticate to the WCF service using jQuery's ajax method, the correct way is to add authentication credentials in the settings object. This can be done by specifying the 'username' and 'password' options within the $.ajax call. This approach directly passes the credentials required for HTTP access authentication. Therefore, adding 'username' and 'password' at line 11 is the correct method for authentication in this scenario.

Question 4 of 260
You are developing a web page that enables customers to upload documents to a web server. The page includes an HTML5 PROGRESS element named progressBar that displays information about the status of the upload.
The page includes the following code. (Line numbers are included for reference only.)
Exam 70-480: Question 4 - Image 1
An event handler must be attached to the request object to update the PROGRESS element on the page.
You need to ensure that the status of the upload is displayed in the progress bar.
Which line of code should you insert at line 03?
    Correct Answer: D

Question 5 of 260
You are developing a customer web form that includes the following HTML.
<label id="txtValue"X/label>
Information from the web form is submitted to a web service. The web service returns the following JSON object.
{
"Confirmation": "1234",
"FirstName": "John"
}
You need to display the Confirmation number from the JSON response in the txtValue label field.
Which JavaScript code segment should you use?
    Correct Answer: D

    To display the Confirmation number in the txtValue label field, you need to set its text content. In jQuery, the correct method to set the text content of an element is .text. The correct code segment is: $('#txtValue').text(JSONObject.Confirmation);. This ensures that the Confirmation number from the JSON response is correctly displayed in the label.