Lesson Review Questions from Microsoft Study Guide
*You want to set the style of the first letter of every paragraph in a <div> element whose id is readingPane.* *Which style selector is most appropriate?* A. #readingPane p::first-letter B. #readingPane::first-letter C. #readingPane p:first-child D. #readingPane:first-child
#readingPane p::first-letter
*You want to use jQuery to make an AJAX call that will use the HTTP POST method.* *Which jQuery method can you use?* A. $.post() B. $.getJSON() C. $.get() D. $.param()
$.post()
*You want to add a comment to your style sheet that says "temporary."* * Which is theproper line to add to the CSS file?* A. //temporary B. --temporary C. /* temporary */ D. rem temporary
/* temporary */
What is the web storage limit currently recommended by the World Wide Web Consortium (W3C)? A. 4 KB B. 5 MB C. 500 MB D. 10 MB
5 MB
*How should you start each HTML5 document?* A. <html> B. <head> C. <title> D. <!DOCTYPE html>
<!DOCTYPE html>
*You want to identify the author of webpages on your website by providing the author name and email address in the footer of each page. * What is the proper way to do this? A. <address><a href="email:[email protected]">Author Name</a></address> B. <contact><a href="email:[email protected]">Author Name</a></contact> C. <author><a href="email:[email protected]">Author Name</a></author> D. <name><a href="email:[email protected]">Author Name</a></name>
<address><a href="email:[email protected]">Author Name</a></address>
*You are creating a webpage that will display short stories, and you want the stories to be shareable on other sites.* *Which element should each story be wrapped with?* A. <section> B. <pre> C. <aside> D. <article>
<article>
*Which element can you add to the <table> element to provide a table caption?* A. <thead> B. <colgroup> C. <caption> D. <th>
<caption>
*You want to embed a Flash file called myFlash.swf in your HTML document. Which is the most appropriate code?* A. <a href="myFlash.swf" ></a> B. <iframe src="myFlash.swf" ></iframe> C. <img src="myFlash.swf" /> D. <embed src="myFlash.swf" ></embed>
<embed src="myFlash.swf" ></embed>
*You are creating a webpage that will collect data and send it to a server. * *Which element must you implement to be able to send data to the server?* A. <nav> B. <form> C. <textarea> D. <div>
<form>
*You want to create an expando attribute on several <h3> tags that display vehicles for sale.* *The expando attribute will store the VIN (vehicle identification number) of the vehicle for sale. Which of the following is the most appropriate example of creating the expando attribute?* A. <h3 vin='current VIN here'>1965 VW Beetle</h3> B. <h3 id='current VIN here'>1965 VW Beetle</h3> C. <h3 data-vin='current VIN here'>1965 VW Beetle</h3> D. <h3 datavin='current VIN here'>1965 VW Beetle</h3>
<h3 data-vin='current VIN here'>1965 VW Beetle</h3>
*You want to use the disabled Boolean attribute on a text box. How can you accomplish this?* *(Choose all that apply.)* A. <input name='firstName' type='text' disabled /> B. <input name='firstName' type='text' disabled='' /> C. <input name='firstName' type='text' disabled='true' /> D. <input name='firstName' type='text' disabled='disabled' />
<input name='firstName' type='text' disabled /> <input name='firstName' type='text' disabled='' /> <input name='firstName' type='text' disabled='disabled' />
*If you want to add a slider control to a webpage, which element do you use?* A. <input type="slider" name="myslider" /> B. <input type="number" name="myslider" /> C. <input type="submit" name="myslider" /> D. <input type="range" name="myslider" />
<input type="range" name="myslider" />
*You want your printer.css style sheet to target printers. How would you set up the style sheet link?* A. <link rel='printer' type='text/css' href='Content/printer.css' /> B. <link rel='stylesheet' type='text/css' href='Content/printer.css' media='print' /> C. <link rel='stylesheet' type='text/css' href='Content/printer.css' /> D. <link rel='stylesheet' type='text/css' href='Content/printer.css' target='print' />
<link rel='stylesheet' type='text/css' href='Content/printer.css' media='print' />
*You want to indicate an important item in your content text*. *Which element do you use?* A. <b> B. <em> C. <strong> D. <i>
<strong>
*You are creating a webpage that will be used to display a list of salespeople with their sales statistics for the years of 2010, 2011, and 2012 in two categories: sales of products and sales of services.* *You want to each of the years to be in the horizontal header, and under each year, you will have a "Products" column and a "Services" column.* How willyou define the element for year 2011? A. <th>2011</th> B. <th colspan="2">2011</th> C. <th span="2">2011</th> D. <th style="2">2011</th>
<th colspan="2">2011</th>
*What can you publish by using npm?* A. A JavaScript file B. A module C. A JavaScript class D. A package
A package
*You want to provide the ability to display or show columns, but you don't want to add a style or other marking to each <td> element.* *How can you accomplish this?* A. Add a <colgroup> element to the <table> element and define each column by using a <col> element inside the <colgroup> element. B. Add an id to each <td> element and provide a unique id for each; use the ids in your style sheet rules to obtain the desired style. C. Add a <col> element to the <table> element and define each column by using a <id> element inside the <col> element. D. Add a <hidden> element to the <table> element and define each column by using a <col> element inside the <hidden> element.
Add a <colgroup> element to the <table> element and define each column by using a <col> element inside the <colgroup> element.
*You want to ensure that the WebSocket connection is not disconnected as a result of inactivity.* How can you accomplish this? A. Add code to the onclose event to reopen the connection when it's closed. B. Add code to send an empty message periodically before the connection is closed. C. Set the keepAlive property on the WebSocket object to true. D. Create a new WebSocket object each time you send a message.
Add code to send an empty message periodically before the connection is closed.
If you modify a value stored in sessionStorage, which of the following could receive notifications of the change (if subscribed)? A. Another tab opened to a page on the same domain B. A second browser window open to the same page C. An iframe on the same page whose source is within the same domain D. The operating system that is hosting the browser
An iframe on the same page whose source is within the same domain
*Using the DataTransfer object, what kind of data can you pass to the drop event?* A. Any valid string, number, date/time, or Boolean value B. Any URL that is within the same domain as the webpage C. Any JSON object D. Any object that can be represented as a string or URL
Any object that can be represented as a string or URL
*Which panel can you use to access a list of the HTML elements, controls, and media that can be added to an HTML page that is open in the artboard?* A. Projects B. Assets C. Device D. Live DOM
Assets
*The following style sheet rule is defined in Corporate.css.* div p.highlight{ font-size: xx-large; background-color: yellow; } In Department.css, the following style sheet rule is defined. div p:first-of-type. { background-color: blue; } Your HTML document contains the following. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <link href="Corporate.css" rel="stylesheet" /> <link href="Department.css" rel="stylesheet" /> </head> <body> <div id="readingPane"> <p class='highlight'> Here is a test to see what the background color of a paragraph will be blue or yellow. </p> </div> </body> </html> *What will be the rendered background color of the paragraph?* A. Yellow B. Blue C. Transparent D. White
Blue
*Which technology is HTML5 preceded by and derived from?* A. HTML 4.01 B. SGML C. XHTML 1.0 D. XML
HTML 4.01
*Where should your JavaScript code be placed?* A. In the <head> element of your HTML document. B. Just before the </body> tag. C. You should always place your JavaScript code in separate files, external to your HTML document. D. Inside the <body> element, at the top.
Just before the </body> tag.
*On which panel can you see a hierarchically structured view of the DOM?* A. Live DOM B. Projects C. Assets D. Device
Live DOM
*What scoping can a package have? (Choose all that apply.)* A. Local B. Grouped C. Named D. Global
Local Global
*Which of the following would be a good candidate for Web SQL?* A. Mobile applications built specifically for Safari on the iOS platform B. Mobile applications built for any mobile device C. Public-facing web applications D. Mobile applications built specifically for Internet Explorer
Mobile applications built specifically for Safari on the iOS platform
*The <video> and <audio> elements inherit from which object?* A. HTMLMediaElement B. MediaElement C. MultiMediaElement D. the Multimedia object
MultiMediaElement
*Your application prompts the user to enter his or her age, which is placed in an agevariable. * A user ran the application and entered I Don't Know for the age. The application then multiplies age by two. What is the result?* A. undefined B. null C. NaN D. infinity
NaN
*The W3C standardized using which format for video?* A. .webm B. .avi C. .mpg D. .mp4 E. No standard has been selected.
No standard has been selected.
*When you want to send form data to the server to update data in the database, which HTTP method should you specify of the <form> element?* A. POST B. GET C. CONNECT D. SEND
POST
*You want to create a REST service for your internal web service and use the HTTP verbs that match CRUD operations. * *You know the browser your users will be using is ompatible, and the firewall will not be a problem*. *What are the HTTP verbs that match with CRUD (in order)?* A. CREATE, POST, GET, DELETE B. GET, RETRIEVE, UPDATE, DELETE C. PUT, GET, POST, DELETE D. POST, GET, UPDATE, DELETE
PUT, GET, POST, DELETE
*You are creating a new Windows 8 application, and you want to set up TDD for your JavaScript code.* *Which testing framework will you use?* A. QUnit B. QUnit-Metro C. Microsoft Test D. NUnit
QUnit-Metro
*Which of the following features is not supported by IndexedDB?* A. Transactions B. Cursors C. Indexed D. SQL
SQL
*You want to create a drawing of a machine that Contoso, Ltd., will be selling on its website.* *The drawing will be embedded in your HTML document, and you want it to maintain its quality when resized. Which is the most appropriate file type to use?* A. SVG B. GIF C. JPG D. PNG
SVG
Which of the following features does web storage support? A. Indexing B. Transactions C. Asynchronous read/write D. Simple key/value pair storage
Simple key/value pair storage
*Why would you install the express package?* A. Simplify website creation B. Provide session management C. Simplify retrieval of static content D. All of the above
Simplify website creation Provide session management Simplify retrieval of static content
*Which library would you use if you are creating a Node.js website and want to write browser-independent code that uses WebSocket?* A. SignalR B. Socket.IO C. FarmSockets D. AgnosticSocket
Socket.IO
Which of the following is the correct way to cancel a storage event? A. event.returnValue = false; B. event.preventDefault(); C. event.stopPropagation(); D. Storage events cannot be canceled after they are triggered.
Storage events cannot be canceled after they are triggered.
*You want to include a video on your webpage that has an .avi file extension.* If you supply the codec information, what will be displayed in browsers that support the <video> element but don't have the codec? A. The browser will show the <video> element, but will not play the video. B. The browser will automatically download the codec and play the video. C. The browser will display the contents of the <video> element. D. The browser will automatically download a version of the browser that supports the codec.
The browser will show the <video> element, but will not play the video.
*Which object can be used when the web worker and the creator need to reference the same object?* A. Mutex. B. Semaphore. C. Closure. D. The web worker and the creator cannot reference the same object.
The web worker and the creator cannot reference the same object.
*Which of the following is not a valid parameter on the getCurrentPosition method?* A. Error callback function B. Position options object C. Success callback function D. Use GPS only
Use GPS only
*You want to maintain separation between structure and presentation. How do you create your style rules?* A. Use inline styles. B. Use embedded styles. C. Use external style sheets. D. In the HTML document, specify @import to load style sheets.
Use external style sheets.
*You are interested in writing event-driven JavaScript code that will work on most browsers without writing browser-specific code. How can you accomplish this?* A. Use the jQuery library to help. B. Use only JavaScript statements that are the same across all browsers. C. Do not use any JavaScript. D. It's impossible to write event-driven JavaScript code that is not browser-specific.
Use the jQuery library to help.
*You would like to create a Windows 8 application by using Blend and HTML5,JavaScript, and CSS3.* *Which feature of Blend enables you to pause an application when it reaches a desired state so you can set the style rules for the page and its controls while in this state?* *(Choose all that apply.)* A. Assets panel B. Projects panel C. Visual Design D. Interactive mode
Visual Design Interactive mode
*You would like to create web applications and Windows 8 Windows Store applications by using HTML5, JavaScript, and CSS3, but while you're learning, you don't want to buy Visual Studio 2012.* *Which of the following Visual Studio 2012 editions can you use forfree to accomplish your goal?* A. Visual Studio Professional 2012 B. Visual Studio Premium 2012 C. Visual Studio Ultimate 2012 D. Visual Studio Express 2012 for Web and Visual Studio Express 2012 for Windows 8
Visual Studio Express 2012 for Web and Visual Studio Express 2012 for Windows 8
*You would like to create a web application by using HTML5, JavaScript, and CSS3.* *Which of the following Visual Studio 2012 editions can you use?* * (Choose all that apply.)* A. Visual Studio Professional 2012 B. Visual Studio Premium 2012 C. Visual Studio Ultimate 2012 D. Visual Studio Express 2012 for Web E. Visual Studio Express 2012 for Windows 8
Visual Studio Professional 2012 Visual Studio Premium 2012 Visual Studio Ultimate 2012 Visual Studio Express 2012 for Web
*You would like to create a Windows 8 application by using HTML5, JavaScript, and CSS3.* * Which of the following Visual Studio 2012 editions can you use?* *(Choose all that apply.)* A. Visual Studio Professional 2012 B. Visual Studio Premium 2012 C. Visual Studio Ultimate 2012 D. Visual Studio Express 2012 for Web E. Visual Studio Express 2012 for Windows 8
Visual Studio Professional 2012 Visual Studio Premium 2012 Visual Studio Ultimate 2012E Visual Studio Express 2012 for Windows 8
Which of the following storage mechanisms has the highest level of cross-browser support? A. Web storage B. Web SQL C. IndexDB D. FileSystem API
Web storage
*What are the steps for TDD?* A. Write the passing test, write the code, run the test again to validate that it still passes. B. Write the failing test, write the code, run the test again to validate that it passes. C. Write the code, write the test to validate that it passes, run the test again to validate that it still passes. D. Write the passing test, write the code, break the code, run the test again to validate that it fails.
Write the failing test, write the code, run the test again to validate that it passes.
*The content of the <svg> element is in which format?* A. SGML B. HTML C. XHMTL D. XML
XML
*What is the primary object used to make an asynchronous AJAX call that returns a JSON result?* A. XMLHttpRequest B. AjaxRequest C. JsonResponse D. AjaxAsync
XMLHttpRequest
*The following style sheet rule is defined in Corporate.css.* *div p.highlight{ font-size: xx-large; background-color: yellow; } In Department.css, the following style sheet rule is defined.* *div p { background-color: blue; }* *Your HTML document contains the following. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <link href="Corporate.css" rel="stylesheet" /> <link href="Department.css" rel="stylesheet" /> </head> <body> <div id="readingPane"> <p class='highlight'> Here is a test to see what the background color of a paragraph will be blue or yellow. </p> </div> </body> </html>* *What will be the rendered background color of the paragraph?* A. Yellow B. Blue C. Transparent D. White
Yellow
*In the web worker code, you want the asynchronous code to update the DOM* *Which method can you use?* A. updateDom(). B. workerUpdate(). C. dom(). D. You cannot update the DOM from within the asynchronous code.
You cannot update the DOM from within the asynchronous code
*How is inheritance supported in JavaScript?* A. You replace the prototype of the child object with a new instance of the parent object and then replace the prototype constructor with the child constructor. B. You call the createChild method on the parent object. C. You call the setParent method on the child object. D. JavaScript does not support inheritance
You replace the prototype of the child object with a new instance of the parent object and then replace the prototype constructor with the child constructor
*You want to draw an arc that is approximately three-quarters of a circle. Which method is the easiest to use to accomplish this task?* A. arcTo() B. arc() C. circle() D. dot()
arc()
Which of the following is not a property of the storageEvent object? A. oldValue B. key C. changeType D. storageArea
changeType
*What is the blueprint for an object called?* A. property B. method C. class D. event
class
*You have two arrays of strings, customers and employees, and you want to combine them to create a contacts array. Which method would be most suitable for this task?* A. concat B. join C. push D. splice
concat
*You have serialized the form data that has an <input type="email"> element. * *You want to deserialize the data to see the email address as entered. Which function can you use?* A. decodeURIComponent B. deserialize C. submit D. deserializeEmail
decodeURIComponent
*Which of the following removes a directory that contains existing files?* A. directoryEntry.remove(directoryRemoved, handleError); B. directoryEntry.removeRecursively(directoryRemoved, handleError); C. directoryEntry.removeAll(directoryRemoved, handleError); D. directoryEntry.remove(directoryRemoved, ALL, handleError)
directoryEntry.removeRecursively(directoryRemoved, handleError);
*Which method do you call to subscribe to the successful completion of an asynchronous operation?* A. done B. always C. complete D. success
done
*Which of the following events trigger continuously during a drag and drop operation?* (Choose all that apply.) A. dragstart B. drag C. dragend D. dragenter E. dragover F. dragleave G. drop
drag dragover
*To which events do you need to subscribe to program file drag and drop?* *(Choose all that apply.)* A. dragstart B. drag C. dragend D. dragenter E. dragover F. dragleave G. drop
dragenter dragover G. drop
*Which of the following events are associated with the item being dragged?* (Choose allthat apply.) A. dragstart B. drag C. dragend D. dragenter E. dragover F. dragleave G. drop
dragstart drag dragend
*Which of the following allows FileWriter to append data to the end of the file?* A. fileWriter.seek(fileWriter.length); B. fileWriter.seek(fileWriter.end); C. fileWriter.moveLast() D. fileWriter.moveToEnd();
fileWriter.seek(fileWriter.length);
*You want to position a <div> element in relation to the browser window.* Which position setting do you use? A. static B. relative C. absolute D. fixed
fixed
*Which object store method retrieves a record by its key value?* A. get(key) B. find(key) C. single(key) D. first(key)
get(key)
*Which method gets your current location once from the Geolocation object?* A. watchPosition() B. watchLocation() C. getCurrentPosition() D. getCurrentLocation()
getCurrentPosition()
*You want to obtain a list of all elements whose tag name is div, and you need to retrieve this list as quickly as possible. * *Which function is most appropriate for this task?* A. getElementsByName B. querySelectorAll C. getElementsByTagName D. getElementsByClass
getElementsByTagName
*Which of the following formulas can you use to calculate the distance between two samples?* A. haversine B. Pythagorean theorem C. quadratic D. hyperbolic
haversine
*You want to find three shades of a color to use on parts of your webpage. * *Which color function helps you accomplish this task?* A. rgb( ) B. rgba( ) C. hsl( ) D. color( )
hsl( )
Which of the following URLs can access data stored on http://www.example.com/lesson1/page1.html? A. http://www2.example.com/lesson1/page1.html B. http://www.example.com:8081/lesson1/page1.html C. https://www.example.com/lesson1/page1.html D. http://www.example.com/lesson2/page1.html E. http://example.com/lesson1/page1.html
http://example.com/lesson1/page1.html
*You are interested in locating all <p> elements on your webpage, so your statement is var paragraphs = $('p').* Which line of code would confirm whether at least one element is found? A. if( paragraphs.exists) B. if( paragraphs==null) C. if( paragraphs.length) D. if( paragraphs.count > 0)
if( paragraphs.length)
What is the correct syntax for removing all values existing in localStorage? A. localStorage.clear(); B. localStorage.removeAll(); C. localStorage.abandon(); D. localStorage.reset();
localStorage.clear();
*If you want your media to repeat continuously, which property would you set to true?* A. preload B. readyState C. seekable D. loop
loop
*You want to supply an audio file using a format that is compatible with the Internet Explorer, Safari, and Chrome browsers.* Which audio formats can you include to be compatible with most browsers? (Choose all that apply.) A. .mp4 B. .wav C. .mp3 D. .oga
mp3
*You don't want to supply an .mp3 format because you are concerned about potentially paying royalties.* What other audio formats can you include to be compatible with most browsers? (Choose all that apply.) A. .mp4 B. .wav C. .h264 D. .oga
mp4 wav oga
*Which method do you call on the deferred object to indicate a change in progress?* A. progress B. notify C. done D. resolve
notify
*You want to trigger some code when the media is loaded. Which event should you subscribe to?* A. onstalled B. onseeked C. onplay D. onloadeddata
onloadeddata
*When working with the WebSocket object, which event can be used to retrieve the data that was received from the server?* A. onopen B. onclose C. onmessage D. onerror
onmessage
*Which of the following is not a property on the File object?* A. name B. path C. type D. size
path
*Which method chains asynchronous operations?* A. pipe() B. done() C. resolve() D. always()
pipe()
*What does JavaScript use as a starting object when constructing a new object?* A. prototype B. property C. class D. event
prototype
*You are creating a webpage that prompts for a new user's profile information. The profile page requires the user to provide a user name, and if no user name is provided, the user will not be able to submit the page to the server. * *Which attribute must be placed on the user name text box to enforce this requirement?* A. enforced B. mandatory C. required D. user name
required
*Which method creates a resolved promise object?* A. resolve() B. done() C. $.when() D. $.Deferred().
resolve()
*A font that has curls at the top and bottom of its characters belongs to which fontfamily group?* A. monospace B. serif C. sans serif D. cursive E. fantasy
serif
*Which of the following will correctly insert a new record, using values passed in as SQL arguments to an executeSql() call?* A. t.executeSql("INSERT INTO books(title) VALUES(?)", ["A Tale of Two Cities"]); B. t.executeSql("INSERT INTO books(title) VALUES([0])", ["A Tale of Two Cities"]); C. t.executeSql("INSERT INTO books(title) VALUES([1])", ["A Tale of Two Cities"]); D. t.executeSql("INSERT INTO books(title) VALUES({0})", ["A Tale of Two Cities"]);
t.executeSql("INSERT INTO books(title) VALUES(?)", ["A Tale of Two Cities"]);
*When you retrieve a webpage from the server that contains Customer information, you want to be able to specify the id of the Customer within the URL. * *What can you use to provide the id?* A. the PostBack B. the QueryString C. the domain name D. a label
the QueryString
*Which code example can be used to draw a rectangle on a <canvas> element that has an id of myCanvas?* A. var canvas = document.getElementById('myCanvas'); var ctx = canvas.getContext(); ctx.rectangle(10, 10, 50, 75); B. var canvas = document.getElementById('myCanvas'); canvas.rectangle(10, 10, 50, 75); C. var canvas = document.getElementById('myCanvas'); var ctx = canvas.getContext('2d'); ctx.fillRect(10, 10, 75);0, 5 D. var canvas = document.getElementById('myCanvas'); var ctx = canvas.getContext(); ctx.fillRect(10, 10, 50, 75);
var canvas = document.getElementById('myCanvas'); var ctx = canvas.getContext('2d'); ctx.fillRect(10, 10, 75);0, 5
*You need to create a new database. Which of the following commands should you use?* A. var db = createDatabase('mydb', '1.0', 'My database', 5 * 1024 * 1024); B. var db = new Database('mydb'); C. var db = initDatabase('mydb', '1.0', 'My database', 5 * 1024 * 1024); D. var db = openDatabase('mydb', '1.0', 'My database', 5 * 1024 * 1024);
var db = openDatabase('mydb', '1.0', 'My database', 5 * 1024 * 1024);
*You want to locate all the elements on your webpage that are assigned the CSS class name Hidden. Which jQuery statement can you use?* A. var hidden = $ ('#Hidden'); B. var hidden = $ ('.Hidden'); C. var hidden = $ ('Hidden'); D. var hidden = $('class=Hidden');
var hidden = $ ('.Hidden');
*Which of the following represent valid variable declarations?* (Choose all that apply.) A. var switch; B. var myChar; C. var $cost; D. var _total; E. var 1to1; F. var tooGood4u;
var myChar; var $cost; var _total; var tooGood4u;
*What is the correct method for creating a transaction that will add a new record?* A. var trans = db.transaction('authors', 'readonly'); B. var trans = db.transaction('authors', 'readwrite'); C. var trans = db.transaction('authors'); D. var trans = db.createTransaction('authors','readwrite');
var trans = db.transaction('authors', 'readwrite');
*On the <svg> element, what attribute provides a window into the drawing and enables zoom capabilities?* A. zoom B. window C. viewBox D. zoomWindow
viewBox
*Which method continuously monitors your current location from the Geolocation object?* A. watchPosition() B. watchLocation() C. getCurrentPosition() D. getCurrentLocation()
watchPosition()
*You don't want to supply an .ogg video because you find that the .ogg format is choppy and low quality.* What other video formats can you include to be compatible with most browsers? (Choose all that apply.) A. .webm B. .avi C. .mpg D. .mp4 E. .mjpg
webm mp4
*Which of the following methods should you use when storing files that are relatively unimportant and can be removed if the browser is low in available space?* A. window.requestFileSystem(LOW, 5 * 1024 * 1024, getDirectory, handleError); B. window.requestFileSystem(PERSISTENT, 5 * 1024 * 1024, getDirectory, handleError); C. window.requestFileSystem(SIMPLE, 5 * 1024 * 1024, getDirectory, handleError); D. window.requestFileSystem(TEMPORARY, 5 * 1024 * 1024, getDirectory, handleError);
window.requestFileSystem(TEMPORARY, 5 * 1024 * 1024, getDirectory, handleError);