Exam Code: 70-480 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Programming in HTML5 with JavaScript and CSS3
Certification Provider: Microsoft
Free Today! Guaranteed Training- Pass 70-480 Exam.
2021 Dec 70-480 exam answers
Q61. You are testing the value of the following variable in JavaScript.
var height = "300";
A block of code must execute if the following conditions are true: . The height variable is set to 300 . The height variable is of type string You need to implement the code to run the test.
Which line of code should you use?
A. if (height = = 300)
B. if (height = = "300")
C. if (height ! "300")
D. if (height ! = 300)
Answer: B
Q62. You are developing an HTML5 page named main.html. The JavaScript code for the main page is located in a file named myApp.js.
You need to create a web worker and instantiate it from main.html.
Where should you place the web worker code?
A. In the myApp.js file
B. In the main.html file
C. In a separate .js (JavaScript) file
D. In a separate executable file
Answer: C
Q63. You are styling a box object on a page by using CSS3. You need to set the transparency of the object to 50%. Which two CSS3 styles will achieve the goal? (Each correct answer presents a complete solution. Choose two.)
A. Option A
B. Option B
C. Option C
D. Option D
Answer: BC
Q64. Your company uses a third-party component that generates HTML for a website. The third-party component creates DIV elements that display a yellow background.
The third-party component uses inline styles in the DIV elements that are inconsistent with your corporate standards. You must override the DIV elements in the style sheet with the corporate styles.
You need to ensure that the website meets corporate standards.
Which style should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Q65. You are developing an HTML5 web application and are styling text.
You need to use the text-transform CSS property.
Which value is valid for the text-transform property?
A. Capitalize
B. Red
C. 20px
D. Italic
Answer: A
Up to date 70-480 test preparation:
Q66. 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.)
You need to authenticate to the WCF service.
What should you do?
A. At line 11, add the following lines of code. ,username: yourusername ,password: yourpassword
B. At line 11, add the following line of code. ,credentials: prompt
C. At line 06, replace the code with the following line of code. url: "http://contoso.com/Service.svc/GetCountry? Username=username&password=psssword",
D. At line 11, add the following line of code. The username and password will be stored in an XML file. ,credentials: credentials.xml
Answer: A
Q67. You are creating a JavaScript object that represents a customer.
You need to extend the Customer object by adding the GetCommission() method.
You need to ensure that all future instances of the Customer object implement the GetCommission() method.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q68. You are developing an application that analyzes population data for major cities in the United States. The application retrieves population statistics for a city by using a web service.
You need to request data from the web service by using jQuery.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q69. You develop a webpage by using HTML5. You create the following markup:
<input type "url" name= "website" required="required" />
You need to ensure that the value that the user enters contains a secure URL.
What should you do?
A. Add the following attribute to the input tag: value="https://v
B. Add the following attribute to the input tag: pattern="https://.+"
C. Add the following attribute to the input tag: value="ssl"
D. Add the following attribute to the input tag: itemtype="https"
Answer: B
Q70. You are troubleshooting a web page that includes the following code segment.
You need to evaluate the value of the variable x.
What will be displayed in the user interface?
A. 0
B. 1
C. 2
D. An error
Answer: A