Q1. You are developing an HTML5 web application that displays the current temperature whenever a button is clicked. The following code provides this functionality. When the temperature is loaded, the status property on the loader instance does not change. You need to ensure that the status property on the loader instance is updated when the temperature is loaded. Which code segment should you…
Q1. You develop a webpage that allows a user to download a 3PEG image and convert it to a PNG file. You need to implement the code to download the contents of the JPEG image with no additional decoding. Which JavaScript function should you use? A. readAsBinaryString() B. readAsArrayBuffer() C. readAsDataURL() D. readAsText() View AnswerAnswer: B Q2. You are creating a custom function. You pass an object named…
Q1. You are developing a web form that includes the following code. When a user selects the check box, an input text box must be added to the page dynamically. You need to ensure that the text box is added. Which function should you use? A. Option A B. Option B C. Option C D. Option D View AnswerAnswer: B Q2. You are troubleshooting a web page that includes…
Q1. You are developing a web page that will contain an animated logo. The web page currently has a logo image on a canvas object. You need to spin the logo image on the canvas. Which method should you use? A. context.rotate() B. context.spin() C. context.translatePosition() D. context.setTransform() View AnswerAnswer: AQ2. You are developing an HTML5 web application and are styling text. You need to use the text-transform…
Q1. You are developing a web page by using HTML5 and C5S3. The page includes a tag with the ID set to validate. When the page is rendered, the contents of the tag appear on a line separate from the content above and below it. The rendered page resembles the following graphic. You need to ensure that the page is rendered to…
Q1. You are developing an e-commerce website. Users place products into a shopping cart. You need to ensure that the shopping cart data is available between browser sessions. Which object should you use to store the shopping cart data? A. clientStorage B. localStorage C. applicationStorage D. sessionStorage View AnswerAnswer: BQ2. You are creating a custom function. You pass an object named testObj to the function…
Q1. 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…
Q1. You are creating a rotating image of a company logo. The logo must spin on a horizontal axis and on a vertical axis. You need to use the least amount of development effort to meet the requirement. What should you do? A. Create an Image Spinner object, load the image into the spinner, and set the horizontal and vertical rotation properties. B. Create a…
Q1. You develop an HTML5 webpage. You have the following HTML markup: You need to add a background color to the first article in each section. Which code segment should you add to the webpage? A. $ ("section article:first-child").css("background-color", "#f2f2f2"); B. $ ("section:first-child").ess ( "background-color", "#f2f2f2"); C. $ ("article:first-of-type") .css("background-color", "#f2f2f2"); D. $ ("section:first-of-type").css("background-color", "#f2f2f2"); View AnswerAnswer: CQ2. You develop an HTML application that is located at…
Q1. You are developing a web page that includes the following HTML. Hello, World! You need to use inline CSS styling to format the text with Arial font. Which code segment should you use? A. Option A B. Option B C. Option C D. Option D View AnswerAnswer: BQ2. You are modifying a blog site to improve search engine readability. You need to group relevant page…
Q1. You are creating a class named Consultant that must inherit from the Employee class. The Consultant class must modify the inherited PayEmployee method. The Employee class is defined as follows. function Employee() {} Employee.prototype.PayEmployee = function ( ){ alertt'Hi there!'); } Future instances of Consultant must be created with the overridden method. You need to write the code to implement the Consultant class. Which code segments should…
Q1. You troubleshoot a webpage that contains the following HTML element: height= "300">Your browser does not support the HTML5 canvas. The following JavaScript code is included in a script tag in the HEAD section of the webpage: (Line numbers are included for reference only.) You need to invoke the clickReporter() JavaScript function when a user clicks the mouse on the canvas HTML…