HTML5 App Development Fundamentals v1.0

Page:    1 / 7   
Exam contains 96 questions

Which are two features of SVG? (Choose two.)

  • A. uses high performance pixel-based graphics
  • B. can be modified by using CSS
  • C. uses high performance raster-based graphics
  • D. can be modified by using JavaScript


Answer : CD

Note:
SVG stands for Scalable Vector Graphics
SVG defines the graphics in XML format
SVG graphics do NOT lose any quality if they are zoomed or resized
Every element and every attribute in SVG files can be animated

SVG is a W3C recommendation -

Which HTML5 tag is used to display text with a fixed-width font and preserves both spaces and line breaks?

  • A. <area>
  • B. <hr>
  • C. <pre>
  • D. <strong>


Answer : C

What does "V" stand for in the file type SVG?

  • A. Video
  • B. Vertical
  • C. Vector
  • D. Variable


Answer : C

Which tag is used to create a drop-down list in HTML5?

  • A. <ul>
  • B. <select>
  • C. <datalist>
  • D. <dd>


Answer : B

Which attribute prefills a default value for an input element in HTML5?

  • A. name
  • B. placeholder
  • C. autocomplete
  • D. required


Answer : B

Which two outcomes will this code fragment accomplish? (Each correct answer presents a complete solution. Choose two.)


  • A. On pre-HTML5 browsers, the happy.wav file will not play, and instead Hello World will be displayed.
  • B. On an HTML5 browser that supports .wav files, the happy.wav file will be played and Hello World will be hidden.
  • C. On an HTML5 browser that supports .wav files, the happy.wav file will be played and Hello World will be displayed.
  • D. on pre-HTMLS browsers, the happy.wav file will play and Hello World will be hidden.


Answer : AB

Audio on the Web -
Until now, there has not been a standard for playing audio files on a web page.

Today, most audio files are played through a plug-in (like flash). However, different browsers may have different plug-ins.

HTML5 defines a new element which specifies a standard way to embed an audio file on a web page: the <audio> element.


Browser Support -
Internet Explorer 9+, Firefox, Opera, Chrome, and Safari support the <audio> element.

Example:
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

Which three technologies does HTML5 encompass? (Choose three.)

  • A. CSS
  • B. ASP.NET
  • C. C#
  • D. JavaScript
  • E. HTML


Answer : ADE

* HTML5 has full CSS3 Support.
* While developing HTML5 some rules were established including:
New features should be based on HTML, CSS, DOM, and JavaScript

You create an interface for a touch-enabled application.
You discover that some of the input buttons do not trigger when you tap the screen.
You need to identify the cause of the problem.
What are two possible causes? (Choose two.)

  • A. The input areas overlap with other input areas.
  • B. The touch screen is not initialized.
  • C. The input areas are using event handlers to detect input.
  • D. The defined input areas are not large enough.


Answer : AD

An HTML5 application can run without an Internet connection if:

  • A. the application is converted to an executable.
  • B. the .NET Framework is installed on the client computer.
  • C. the application specifies the use of a client-side SQL database.
  • D. the application specifies the use of an ApplicationCache interface.


Answer : D

On a Windows touch device, which gesture serves the same purpose as a right-click of the mouse?

  • A. swipe
  • B. pinch
  • C. tap
  • D. hold


Answer : D

Which three components define the URL used for localStorage data in HTML5? (Choose three.)

  • A. scheme
  • B. user credentials
  • C. hostname
  • D. unique port
  • E. query


Answer : ACD

localStorage is also the same as globalStorage[location.hostname], with the exception of being scoped to an HTML5 origin (scheme + hostname + non-standard port) and localStorage being an instance of Storage
* HTML5 local storage saves data in string form as key-value pairs. If the data you wish to save is not string data, you are responsible for conversion to and from string when using LocalStorage.

DRAG DROP -
Match the JavaScript objects to the corresponding characteristics or methods. (To answer, drag the appropriate JavaScript object from the column on the left to its characteristic or method on the right. Each JavaScript object may be used once, more than once, or not at all. Each correct match is worth one point.)
Select and Place:




Answer :

Which two code segments declare JavaScript functions? (Choose two.)

  • A. varfunct= (a);
  • B. function Foo(a){ "¦ }
  • C. var a=new Foo();
  • D. Foo=function(a){ ...}


Answer : CD

Example:
function add(x, y) {
return x + y;
}
var t = add(1, 2);
alert(t); //3
Example:
//x,y is the argument. 'returnx+y' is the function body, which is the last in the argument list. var add = new Function('x', 'y', 'return x+y'); var t = add(1, 2); alert(t); //3
Incorrect:
Not A: funct keyword not used in JavaScript

You add script tags to an HTML page. You need to update the text value within a specific HTML element. You access the HTML element by id. What should you do next?

  • A. Use the createTextNode method.
  • B. Use the appendChild method.
  • C. Set the new text value with the setAttribute method.
  • D. Use the firstChild property and set the new text value with the nodeValue property.


Answer : D

You create an instance named "location" of a geolocation object.
Which code fragment will initiate periodic updates of a device's geographic location?

  • A. location = navigator.geolocation;
  • B. location.watchPosition(showLocation) ;
  • C. location.getCurrentPosition(showLocation);
  • D. location.clearNatch(watchid);


Answer : B

Page:    1 / 7   
Exam contains 96 questions

Talk to us!


Have any questions or issues ? Please dont hesitate to contact us

Certlibrary doesn't offer Real Microsoft Exam Questions.
Certlibrary Materials do not contain actual questions and answers from Cisco's Certification Exams.
CFA Institute does not endorse, promote or warrant the accuracy or quality of Certlibrary. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.