Certification Exam Prep Questions For Programming in HTML5 with JavaScript and CSS3 (70-480)


QuickStart is now offering assessment questions for Programming in HTML5 with JavaScript and CSS3 (70-480) Whether you are deciding which exam to sign up for, or simply want to practice the materials necessary to complete certification for this course, we have provided a practice assessment to better aid in certification. 100% of the questions are real questions; from a recent version of the test you will take for Programming in HTML5 with JavaScript and CSS3 (70-480)


Arrow
 

1

You need to determine what is written to the browser if the VerifyDestinationAddress function throws an error. What message or messages are displayed? (Choose all that apply.)

2

You need to determine what is written to the browser if the CreatePackages function throws an error. What message or messages are displayed? (Choose all that apply.)

3

You need to determine what is written to the browser if the CalculateShipping function throws an error. What message or messages are displayed? (Choose all that apply.)

4

A web page generates markup from different source files. Some source files contain button controls that use the following syntax: < input type"button"/> Other source files contain button controls that use the following syntax: < button/> You want to set the background color of all button controls to blue. regardless of the syntax that is used. You need to write code to accomplish your goal. Which code segment should you use?

5

A web page contains the following markup and script to unit test validation of a payment card: < form name="mainForm" onsubmit="testValidationSucceeded();" method="post"> Card Number: < input type="text" name="cardNumber"> < input type="submit" value="Validate"> < script> function testValidationSucceeded(event) event.returnValue = false; When the Validate button is clicked, the form never performs a post back. It should always post back if validation succeeds. You need to solve this problem. What should you do?

6

You are developing a web application using HTMLS and JavaScript. You want to download an image file asynchronously using XMLHttpRequest. You need to ensure that the image file is downloaded as binary data. What should you do?

7

You are using HTML5 to create a page that allows users to play audio files. The page contains the markup shown below: < audio id="player" /> < input type="text" id="audioFile" placeholder="Specify an audio file here"/> < button onclick="playAudio()">Play The playAudio function is shown in the exhibit. You need to add code at line 4 to play the audio file specified in the text box when the play button is clicked. The audio file must play only once. Which code segment should you use?

8

You are creating an online chat room using HTML5 WebSocket API. You want to receive WebSocket messages. Which event type should you listen to?

A. Close
Incorrect.
B. Message
Correct!
C. Send
Incorrect.
D. Open
Incorrect.
9

You are modifying an existing web page. The page contains the following markup shown in the exhibit. You need to ensure that standards-compliant screen readers interpret the menu correctly. What should you do?

10

The following markup exists on a web page: < html> < head> < style> section article {background-color:red} article ( background-colorgreen) .light{ background-coloryellow} .light article{ background-colorlightskyblue} < /style> < /head> < body> < section classr"light" styler"background-colordarkgrey", < article>This is a sample article You need to determine the background color of the article element. What is the background color?

A. Light Sky blue
Correct!
B. Yellow
Incorrect.
C. Red
Incorrect.
D. Green.
Incorrect.
11

You are developing a web application using HTMLS and JavaScript. You want to encode the form elements and their values shown in the exhibit to a string that can be sent to a server in an AJAX request. Which line of code should you use?

12

The source code of a web page is shown in the exhibit. The submit() function disables the Submit button before making the actual submission to prevent duplicate submissions. What should you use to invoke the submit() function in the onclick event handler of the button?

A. submit(self);
Incorrect.
B. submit(this);
Correct!
C. submit(self);
Incorrect.
D. submit();
Incorrect.
13

The following HTML4 markup exists on a page: < body> < div ideheadeCh < div idemenunh < div idemainContent"/> < div idefooteel> < /body> You need to replace this markup with semantic HTMLS structural elements. Which markup should you use?

14

You need to define a JavaScript object that has two properties named firstName and lastName. You need to initialize the firstName property to Jamie and the lastName property to Smith. Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply)

15

A web page contains this JavaScript code: var number = 2: function Initialize() { var number = 4; } Initialize(); number += 10; You need to determine the value of the number variable. What is the value of the number variable after the code runs?

A. 12
Correct!
B. 10
Incorrect.
C. 14
Incorrect.
D. NaN
Incorrect.
16

A web page contains several paragraph elements. You want each paragraph element to use the same border style, weight, and color as the element's parent element. You need to define a CSS rule to accomplish your goal. Which rule should you use?

A. p { border:parent}
Incorrect.
B. p { border:inherit}
Correct!
C. p { border:default}
Incorrect.
D. p border:important}
Incorrect.
17

You are using CSS3 and jQuery to dynamically style a web page. You want to find every paragraph element that is the third paragraph element of its parent element and set its background color to green. For example. in the following markup. you want to find the paragraph element that displays Paragraph 3: < div> < div idr"div1"/> < p>Paragraph 1< /p> < div idr"div2"/> < p>Paragraph 2 < p>Paragraph 3< /p> < /div> You need to write code to accomplish your goal. Which code segment should you use?

18

You defined two nested div elements, div1 and div2, and two event handlers, capture() and bubble(), as shown in the exhibit. You want to add a few lines of code so when you click on the text "Inner div", four alert boxes will be displayed in the following sequence: Capture at div1 Capture at div2 Bubble at div2 Bubble at div1 Which code fragment should you add?

19

You are using HTML5 and JavaScript to implement a web-based chat application. You use the WebSocket application programming interface (API) for bi-directional communication. The application connects to a chat service at the URL wss://ChatService. You need to implement a callback to write a message to the browser when it is received from the server. Which code segment should you use?

20

The following code exists on a web page (line numbers are included-for reference purposes only): 01 try 02 ( 03 CalculateShipping(): 04 ) 05 catch(e) 06 07 CalculateDefaultShipping(): 08 ) 09 10 function CalculateShipping() 11 ( 12 try 13 14 Packageltems(): 15 GetGroundRateQ: 16 GetAirRate(): 17 ) 18 catch(e) 19 { 20 LogError(e): 21} 22 ) You need to ensure that the CalculateDefaultShipping function is called only if the LogError function is called. What should you do?

21

The following markup exists on a web page: < html> < head> < style> p ( background-color:red) .light{ background-color:pink) .light p( background-color:yellow} < /style> < /head> < /body> < div class="light" style="background-color:green"> < p>This is some sample text< /p> < /div> < /body> < /html> You need to determine the background color of the paragraph element. What is the background color?

A. Green
Incorrect.
B. Yellow
Correct!
C. Pink
Incorrect.
D. red
Incorrect.
22

A web page contains the following markup: < table> < to> < td>Name:< /td> < td>< input idname" type"text"/>< /td> < /tr> < tr> < tc1>Age< /td> < td>< input idage" type"number"/>< /td> < kr> < tr> < td>Salary< /td> < td>< input id=" salary" typer"number"/>< /td> < /tr> < /table> When the mouse pointer enters an input element, the background color of the row must turn green. You need to write code to accomplish your goal. Which jQuery code segment should you use?

23

The following markup exists on a web page: < form> < input ith"page" typer"url" required'required"/> < input type"submit" value"Submit"/> < /form> However, when you enter the following relative URL. validation fails when you submit the form: /Root/Admin/Login.aspx You need to solve this problem by modifying the markup of the page field. What should you do?

24

You are developing a web page that retrieves data from a web service at http://service.measureup.com/Exams. The web service returns data in the following format: ("Exams":] ("ID":"70-480", "Title":"Programming in HTMLS with JavaScript and CSS3"}, ("ID":"70-481", "Title":"Essentials of Developing Windows Store Apps"), ("ID":"70-482", "Title":sAdvanced Windows Store App Development")] You write the following code to retrieve the title of the first exam (line numbers are included for reference purposes only): 01 var request = new XMLHttpRequesto; 02 requestopen("GET", "http://service.measureup.com/Exams", false): 03 request.send(); 04 05 var title = doc.Exams[0].Title; You need to add code at line 04 to complete the implementation. Which code segment should you use?

25

You are developing a webpage using HTMLS and CSS3. You have applied the following CSS style to a DIV element. div.button background-color: rgb(41, 140, 218); border-radius: 0 10px; color: #FFFFFF; display:table-cell; font-weight: bold; height: 40px; text-align: center; vertical-align:middle; width: 90px; Several button styles are shown in the exhibit. Which button style matches the applied style?

A. Style 2
Correct!
B. Style 4
Incorrect.
C. Style 1
Incorrect.
D. Style 3
Incorrect.
26

A web page allows users to trier JavaScript Object Notation (JSON)-encoded data into an input field named data. You need to var date the data to ensure that It Is JSON-encoded. Which code segment should you use?

27

The following markup and JavaScript code exists on a web page (line numbers are included for reference purposes only): 01 < button idebutton'>Accelerate< /button> 02 function vehicle() 03 ( 04 this.speed = 0: 05 ) 06 vehicle.prototype.accelerateAfterClick = function() 07( 08 this.speed = this.speed • 2 - 1: 09 button.onclick = function() 10 ( 11 window.alert(this.speed): 12 }: 13 }: 14 var car = new vehicle(): 15 car.accelerateAfterClick(): When you click the button, the word 'undefined" is displayed in the alert message. You need to modify this markup or code so that the alert message correctly displays the value of the speed variable. What should you do?

28

The following JavaScript code hides a user interface element: function Hide(element, onhidden) { II Code omitted to hide the element onhidden(): You need to call the Hide function to an object named button and display a message box after the object is hidden. Which code segment should you use?

29

The following markup exists on a web page: < form> First Name: < Input id="FirstName" type="text7>< ba> Last Name: < input id="LastName" type="text"/>< brb < /form> You need to use the values of the form to generate a query string in the following format: FirstNamerJamie & LastNameSmith What should you do? (Each correct answer presents a partial solution. Choose two.)

30

You are building a webpage using HTML5 and CSS3. The webpage contains multiple anchor links. Some of these links are targeting URLs using the HTTPS protocol. You want to highlight these links with a different color. Which CSS selector should you use?

PDP Url

Sample Question - Programming in HTML5 with JavaScript and CSS3 (70-480)


Self-Paced

Learning Style

Beginner

Difficulty

1 Hour

Course Duration

Certificate

See Sample

Buy Individually
About Individual Course:
  • Individual course plan gives you access to this course
$109.00
$109.00
/ Each

Outline

More Information

More Information
Lab Access No
Learning Style Self-Paced Learning
Difficulty Beginner
Course Duration 1 Hour
Language English

Reviews

Write Your Own Review
Only registered users can write reviews. Please Sign in or create an account

Contact A Learning Consultant


click here