70-480 Exam - Programming in HTML5 with JavaScript and CSS3

certleader.com

Q1. You are developing a website that helps users locate theaters in their area from a browser. You created a function named findTheaters (). 

The function must: 

. Get the current latitude and longitude of the user's device 

. Pass the user's location to findTheaters() 

The user needs to access the geolocation information from the browser before searching for theaters. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: C

Q2. You are creating a custom object as described by the following code. 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: D

Q3. You are modifying a blog site to improve search engine readability. 

You need to group relevant page content together to maximize search engine readability. 

Which tag should you use? 

A. <article> 

B. <span> 

C. <tbody> 

D. <cd> 

Answer:

Q4. You are modifying an existing web page. The page is being optimized for accessibility. The current page contains the following HTML. 

Standards-compliant screen readers must be able to identify the links contained within the navigation structure automatically. 

You need to create the navigation link structure in the page. 

With which container tags should you wrap the existing markup? 

A. <navmap> </navmap> 

B. <div id="nav"> </div> 

C. <nav> </nav> 

D. <map> </map> 

Answer:

Q5. You are creating a page that contains detailed employee information for a company portal. The page uses a jQuery library. The page contains a hidden button named btnEdit that is defined by the following code. 

<button id="btnEdit" style="display: none;n>Edit</button> 

The button is not displayed by default. 

The button must be displayed only if the user is logged on. 

You need to add code to the document.ready() function to meet the requirements for the button. 

Which line of code should you use? 

A. $ (‘#btnEdit’).appear (); 

B. $ (‘#btnEdit’).visible = true; 

C. $ (‘#btnEdit’).show(); 

D. $ (‘#btnEdit’).Visible(); 

Answer:

Q6. 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? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

E. Option E 

Answer: D

Q7. You are developing a web application that uses web workers to process images extracted from an HTML5 CANVAS object on a web page. 

You need to pass messages between the web workers and the web page. 

Which three types of objects should you use? (Each correct answer presents a complete solution. Choose three.) 

A. JSON 

B. Window 

C. Parent 

D. String 

E. JavaScript 

F. DOM 

Answer: ADE 

Q8. You are developing a web page that includes the following HTML. <span id="myTextSpan" class="myStyle">Hello, World!</Span> 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 

Answer: B

Q9. 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? 

A. $("#txtValue").val = (JSONObject.Confirmation); 

B. $("#txtValue").val (JSONObject.Confirmation); 

C. $("#txtValue").text = (JSONObject.Confirmation); 

D. $("#txtValue").text (JSONObject.Confirmation); 

Answer:

Q10. 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.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: AC