70-480 | Microsoft 70-480 Dumps Questions 2021

exam ref 70 480 for Microsoft certification, Real Success Guaranteed with Updated exam ref 70 480. 100% PASS 70-480 Programming in HTML5 with JavaScript and CSS3 exam Today!

Check 70-480 free dumps before getting the full version:

NEW QUESTION 1
HOTSPOT
You are developing a web application that retrieves data from a web service. The data being retrieved is a custom binary datatype named bint. The data can also be represented in XML.
Two existing methods named parseXml() and parseBint() are defined on the page. The application must:
Retrieve and parse data from the web service using binary format if possible
Retrieve and parse the data from the web service using XML when binary format is not possible You need to develop the application to meet the requirements.
What should you do? (To answer, select the appropriate options from the drop-down lists in the answer area.)
70-480 dumps exhibit
70-480 dumps exhibit

    Answer:

    Explanation: * accepts : 'application/bint, text/xml'
    accepts:'application/bin,text/xml' to accept only XML and binary content in HTML responses.
    * Use the following condition to check if the html response content is binary: If(request.getResponseHeader("Content-Type")=="application/bint"
    * var request = $.ajax({ uri:'/',
    accepts: 'application/bint, text/xml', datafilter: function(data,type){
    if(request.getResponseHeader("Content-Type")=="application/bint") return parseBint(data);
    else
    return parseXml();
    },
    success: function (data) { start(data);
    }
    });

    NEW QUESTION 2
    You are developing an HTML5 web application that provides a discussion forum for users. When a user registers to access the application, the user enters an email address.
    Users can enter data that can result in cross-site scripting (XSS) attacks. You need to ensure that email input is as secure as possible.
    Which two techniques should you use? (Each correct answer presents a complete solution. Choose two.)

    • A. Remove all nonalphanumeric characters before submitting data.
    • B. Use the email tag in forms where the email address is entered.
    • C. Display all email addresses inside of an HTML5 ADDRESS element.
    • D. Use jQuery validation with a regular expression to ensure that email addresses are valid.
    • E. Ensure that all form data is encrypted when it is submitted.

    Answer: BD

    Explanation: B: The <input type="email"> is used for input fields that should contain an e-mail address. Depending on browser support, the e-mail address can be automatically validated when submitted.
    Some smartphones recognize the email type, and adds ".com" to the keyboard to match email input. D: JQuery can be used to validate email addresses.
    Reference: HTML Input Types; Email Validation Using jQuery Codes

    NEW QUESTION 3
    You are developing an application to track project management for your company. The status of the project is stored in a variable named percentComplete.
    The method must execute only when percentComplete is equal to the numeric value 100. You need to develop the application to meet the requirement.
    Which code segment should you use?
    70-480 dumps exhibit

    • A. Option A
    • B. Option B
    • C. Option C
    • D. Option D

    Answer: D

    Explanation: ===: This is “strict” or “identical” equality.
    Reference: JavaScript Triple Equals Operator vs Double Equals Operator ( === vs == )

    NEW QUESTION 4
    DRAG DROP
    You are developing an application that reads information from a file. The application must:
    Execute a block of code if there is an error accessing the file
    Execute a second block of code whether or not there is an error accessing the file You need to ensure that the error handling requirements are met.
    Which three statements should you implement in sequence? (To answer, move the appropriate statements from the list of actions to the answer area and arrange them in the correct order.)
    70-480 dumps exhibit

      Answer:

      Explanation: 70-480 dumps exhibit
      Explanation
      The fileopen statement is put within the try clause. The catch(e) will catch a fileopen error.
      The finally clause will be executed regardless of whether an error occurs in the try clause proceeding it

      NEW QUESTION 5
      You develop an HTML application that contains a table that displays a list of products. The table is defined with the following HTML markup:
      70-480 dumps exhibit
      You must style the table to look like the following image:
      70-480 dumps exhibit
      You need to implement the CSS selectors to select the rows that must have a blue background. Which CSS selector should you use?

      • A. thead:only-child, tbody:after, table:before
      • B. tr [line |-0, 1, 3]
      • C. tr:first-of-type, tr:last-of-type
      • D. tr:first-line, tr:last-child

      Answer: B

      Explanation: Header (line 0), first line and third line.

      NEW QUESTION 6
      You are troubleshooting an application. Users report that the UI is slow to respond.
      You need to improve UI responsiveness by moving application tasks to web workers.
      Which two tasks can you move to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

      • A. A function that loops through the Document Object Model to update the style of page elements
      • B. A long-running calculation that requires looping through an array
      • C. A function that performs graphic-intensive animation
      • D. A function that stores large amounts of data to local storage

      Answer: BC

      Explanation: Note:
      * Despite the improvements in JavaScript engines, it is not uncommon for users to encounter frozen user interfaces as the browser works through resource intensive tasks. This leads to a horrible user experience. The purpose of Web Workers is to give developers a way of instructing the browser to process large tasks in the background; therefore preventing the UI from freezing up.
      * The Web Workers specification defines an API for spawning background scripts in your web application. Web Workers allow you to do things like fire up long-running scripts to handle computationally intensive tasks, but without blocking the UI or other scripts to handle user interactions

      NEW QUESTION 7
      You have the following code.
      70-480 dumps exhibit
      You need to ensure that the screen appears as shown in the following exhibit:
      70-480 dumps exhibit
      Which position should you use for Target 1?

      • A. static
      • B. fixed
      • C. initial
      • D. inherit

      Answer: B

      Explanation: References:
      http://www.w3schools.com/cssref/pr_class_position.asp

      NEW QUESTION 8
      You are troubleshooting an application. Users report that the UI is slow to respond. You need to improve UI responsiveness by moving application tasks to web workers.
      Which two tasks can you move to achieve this goal? (Choose Two)

      • A. A function that loops through the Document Object Model to update the style of page elements
      • B. A long-running calculation that requires looping through an array
      • C. A function that performs intensive video compression
      • D. A function that stores large amounts of data to local storage

      Answer: BC

      NEW QUESTION 9
      You develop an HTML5 webpage. You have the following HTML markup:
      70-480 dumps exhibit
      You need to change the background color for all of the elements whose name attribute ends with the word name.
      Which code segment should you add to the webpage?

      • A. $ ('input [name!="name"]’) .css ({ 'background-color' : ' #E0ECF8'}) ;
      • B. ${'input [name="~name"] ') .css ({ 'background-color' : ' #E0ECF8' }) ;
      • C. ${'input[name="*name"]').css({'background=color': #E0ECF8'});
      • D. $( 'input [name="$name"] ') .css ({ 'background-color' : '#E0ECF8'});

      Answer: C

      Explanation: The string pattern "*name" matches all strings that ends with name.

      NEW QUESTION 10
      HOTSPOT
      You develop an HTML messaging application that allows users to send messages. The messages can have an optional file attachment that is identified by a filename.
      You use the following function to send a message:
      70-480 dumps exhibit
      You need to send a message with a file attachment.
      How should you complete the relevant code? (To answer, select the appropriate option from each drop-down list in the answer area.)
      70-480 dumps exhibit

        Answer:

        Explanation: Object Properties
        The name:values pairs (in JavaScript objects) are called properties.
        var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"}; Reference: JavaScript Objects

        NEW QUESTION 11
        You would like to create web applications and Windows 8 Windows Store applications by using HTML5, JavaScript, and CSS3, but while you're learning, you don't want to buy Visual Studio 2012. Which of the following Visual Studio 2012 editions can you use for free to accomplish your goal?

        • A. Visual Studio Professional 2012
        • B. Visual Studio Premium 2012
        • C. Visual Studio Ultimate 2012
        • D. Visual Studio Express 2012 for Web and Visual Studio Express 2012 for Windows 8

        Answer: D

        Explanation: References:
        http://www.daoudisamir.com/references/vs_ebooks/html5_css3.pdf

        NEW QUESTION 12
        You are developing an application in HTML5. You have the following code.
        70-480 dumps exhibit
        You need to add an additional property to the function definition. Which line of code should you use?

        • A. NewOrder [“newProperty”] = “newProperty”
        • B. NewOrde
        • C. prototyp
        • D. newProperty = “newProperty”
        • E. this.NewOrde
        • F. newProperty = “newProperty”
        • G. NewOrde
        • H. newProperty = “newProperty”

        Answer: C

        Explanation: References: http://www.w3schools.com/js/js_object_prototypes.asp

        NEW QUESTION 13
        HOTSPOT
        You troubleshoot a webpage that includes the following code segment:
        70-480 dumps exhibit
        You need to evaluate the value of the variable named customer.name.
        For each statement in the table, select Yes if the code segment above causes the variable to evaluate as described. Select No if it does not. Make only one selection in each column.
        70-480 dumps exhibit

          Answer:

          Explanation: The variable customer is undefined, as it outside the scope of the function, at line alert(customer.name);

          NEW QUESTION 14
          HOTSPOT
          You are developing a web page that will be accessed from various types of devices. You have the following requirements:
          The appropriate display resolution must be selected dynamically based on the device connecting to
          the page.
          Mobile devices with a maximum width of 480 pixels must be able to use the page. You need to ensure that the page displays correctly on any device.
          How should you build the code? (To answer, select the appropriate options from the drop-down lists in the answer area.)
          70-480 dumps exhibit
          70-480 dumps exhibit

            Answer:

            Explanation: * The @media rule is used to define different style rules for different media types/devices. CSS Syntax
            @media not|only mediatype and (media feature) { CSS-Code;
            }
            * Media type: Screen
            Used for computer screens. Incorrect:
            Not size: there is no media type size.
            Reference: CSS3 @media Rule; CSS Media Types

            NEW QUESTION 15
            HOTSPOT
            You are developing a form that captures a user's email address by using HTML5 and jQuery. The form must capture the form elements as a string.
            You need to implement this functionality.
            How should you develop the form? (To answer, select the appropriate options from the drop-down lists in the answer area.)
            70-480 dumps exhibit

              Answer:

              Explanation: 70-480 dumps exhibit

              NEW QUESTION 16
              NOTE: This question is a part of series of questions that presents the same scenario. Each question in the series contains unique solution that might meet the started goals. Some questions sets might have more than one correct solution, while others might not have a correct solution.
              After you answer a question in this section. you will not be able to return to it. As a result, these questions will not appear in the review screen.
              You have the following HTML5 and CSS3 markup within a webpage.
              70-480 dumps exhibit
              You need to set the background color of the Home link to yellow. The solution can affect the color of the other elements.
              Solution: You use the following style:
              70-480 dumps exhibit
              Does this meet the goal?

              • A. Yes
              • B. No

              Answer: B

              NEW QUESTION 17
              DRAG DROP
              You are developing a web application that retrieves data from a web service. The data being retrieved is a custom binary datatype named bint. The data can also be represented in XML.
              Two existing methods named parseXml() and parseBint() are defined on the page. The application must:
              Retrieve and parse data from the web service by using binary format if possible
              Retrieve and parse the data from the web service by using XML when binary format is not possible You need to develop the application to meet the requirements.
              What should you do? (To answer, drag the appropriate code segment to the correct location. 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.)
              70-480 dumps exhibit

                Answer:

                Explanation: * accepts : 'application/bint, text/xml'
                accepts:'application/bin,text/xml' to accept only XML and binary content in HTML responses.
                * Use the following condition to check if the html response content is binary: If(request.getResponseHeader("Content-Type")=="application/bint"
                * var request = $.ajax({ uri:'/',
                accepts: 'application/bint, text/xml', datafilter: function(data,type){
                if(request.getResponseHeader("Content-Type")=="application/bint")
                return parseBint(data); else
                return parseXml();
                },
                success: function (data) { start(data);
                }
                });

                NEW QUESTION 18
                HOTSPOT
                You test a webpage that contains the following JavaScript code:
                70-480 dumps exhibit
                The webpage also contains the following markup:
                70-480 dumps exhibit
                You need to ascertain how the webpage responds when the user enters characters and then clicks the add and divide buttons.
                For each statement in the table, select Yes if the action causes the webpage to behave as described. Select No if it does not. Make only one selection in each column.
                70-480 dumps exhibit

                  Answer:

                  Explanation: 70-480 dumps exhibit

                  NEW QUESTION 19
                  You are developing an HTML page that includes the following code.
                  <h1 id="header">A Static Page</hl>
                  You need to modify the content of the H1 element dynamically by using JavaScript. Which code segment should you use?
                  70-480 dumps exhibit

                  • A. Option A
                  • B. Option B
                  • C. Option C
                  • D. Option D

                  Answer: D

                  Explanation: innerHTML
                  The innerHTML property sets or returns the HTML content (inner HTML) of an element. Example
                  Change the HTML content of a <h1> element with id="header": document.getElementById("header").innerHTML = "A dynamic page"; Reference: HTML DOM innerHTML Property

                  NEW QUESTION 20
                  You need to write a self-executing anonymous function in JavaScript. Which code snippet should you include in the function?

                  • A. (function () {...});
                  • B. (function anon() {...}) ();
                  • C. (function anon() {...};
                  • D. (function () {...}) ();

                  Answer: D

                  Explanation: References:
                  http://esbueno.noahstokes.com/post/77292606977/self-executing-anonymous-functions-or-how-to- write

                  P.S. Certleader now are offering 100% pass ensure 70-480 dumps! All 70-480 exam questions have been updated with correct answers: https://www.certleader.com/70-480-dumps.html (288 New Questions)