Quiz
CET_TARDE - MTA HTML5 Application Development Fundamentals 2
This quiz has question types that open in the usual player.
Questions in this quiz (94)
1Which layout can you create by using a single CSS3 region?
- Aa table layout
- Ba snaked-column layout
- Ca multiple column liquid layout
- Da multiple column fixed layout
2Which two events are supported on touch devices? (Choose two.)
- Aclick
- Btouchstart
- Cselection
- Ddrag
3Which positioning scheme places an object in normal document flow?
- Aabsolute
- Brelative
- Cfixed
- Dfloat
4Which three are valid JavaScript variables? (Choose three.)
- Axyz1
- B.Int
- Cint1
- D_int
- E1xyz
5Which CSS property defines which sides of an element where other floating elements are not allowed?
- Afloat
- Bposition
- Cdisplay
- Dclear
6Drag and Drop Question
Match the CSS terms to the corresponding examples. (To answer, drag the appropriate term from the column on the left to its example on the right. Each term may be used once, more than once, or not at all. Each correct match is worth one point.)- Avalue
- Bclass selector
- Cid selector
- Dproperty
- Edeclaration
7In CSS, the flow-into property deposits:
- Athe flow into the content.
- Bthe regions into a flow.
- Cthe flow into the regions.
- Dcontent into the flow.
8The variable named "ctx" is the context of an HTML5 canvas object. What does the following code fragment draw? ctx.arc(x, y, r, 0, Math.PI, true);
- Aa circle at the given point
- Ba square at the given point
- Ca semi-circle at the given point
- Da line from one point to another
9Which three properties can be used with the TouchEvent object in the Safari touch API? (Choose three.)
- AoffsetTop
- BclientHeight
- Cscale
- Dtouches
- Erotation
10You create an instance named "ac" of an accelerometer object. Which code fragment will retrieve a single update?
- Aac = navigator.accelerometer ;
- Bac.getAcceleration (accelerometerFunction) ;
- Cac.watchAcceleration (accelerometerFunction) ;
- Dac.clearWatch (watchid) ;
11Which three technologies does HTML5 encompass? (Choose three.)
- ACSS
- BASP.NET
- CC#
- DJavaScript
- EHTML
12Which CSS property defines which sides of an element where other floating elements are not allowed?
- Afloat
- Bposition
- Cdisplay
- Dclear
13What is the default value of the CSS position property?
- Afixed
- Babsolute
- Cstatic
- Drelative
14Which CSS3 code fragment styles an H2 element only if it is a direct child of a DIV element?
- AOption A
- BOption B
- COption C
- DOption D
15You write the following code to create a page. (Line numbers are included for reference only.)
- AOption A
- BOption B
- COption C
- DOption D
16Which CSS code fragment centers an image horizontally?
- AOption A
- BOption B
- COption C
- DOption D
17Your code includes the following fragment:
<input type="text" name="text1" id="myText" />
You need to add code that will retrieve the contents of the INPUT element. Which JavaScript code
fragment will accomplish this?- AvartxtContents =document.getElementById('text1').value;
- BvartxtContents = document.getEIementyById('myText').value;
- CvartxtContents =document.getElementById('text1');
- DvartxtContents = document.getElementById('myText');
18The data in a specific HTML5 local storage database can be accessed from:
- ADifferent browsers on the same device.
- BDifferent browsers on different devices.
- CThe same browser on different devices.
- DThe same browser on the same device.
19You are creating a page by using HTML5. You add script tags to the page. You need to use JavaScript to access an element by id and add a class to the element.
Which property or attribute should you use?- Athe tagName property
- Bthe className property
- Cthe style property
- Dthe class attribute
20Which code fragment sets up a timer that calls a function named "adjust" every second?
- AsetTimeout(adjust, 1000);
- BsetInterval(adjust, 1000);
- CsetInterval(adjust, 1);
- DsetTimeout(adjust, 1);
21Which two HTML properties can JavaScript access to change the text value of an HTML element? (Choose two.)
- AinnerHTML
- BnodeType
- Ctitle
- DnodeValue
22Web Workers define an API for:
- APublishing frequently updated works for syndication.
- BRunning scripts in the background,
- CBi-directional, full-duplex communications over a single TCP socket.
- DDistributing load across multiple web servers.
23Which two are WebSocket events? (Choose two.)
- Aonconnect
- Bonmessage
- Condatareceived
- Donopen
24You create an interface for a touch-enabled application. During testing you discover that some touches trigger multiple input areas.
Which situation will cause this problem?- AThe touch screen is not calibrated.
- BThe input areas are too close together.
- CThe defined input areas are too small.
- DThe input areas are semi-transparent.
25An HTML5 application can be used without going through a manufacturer's approval process if:
- Athe browser on the device supports HTML5.
- Bthe manufacturer has unlocked the device's SIM card.
- Cthe application has been compiled.
- Dthe developer has the correct application ID.
26Which item specifies resources for an offline HTML5 application?
- Aa CSS style sheet
- Ban HTML5 file
- Ca JavaScript file
- Da cache manifest file
27In HTML5, which two objects in the Web Storage specification are used to store data on the client? (Choose two.)
- Awebsocket
- Bnavigator
- Ccache
- DsessionStorage
- ElocalStorage
28Which two code fragments represent ways to use HTML5 to save values to session storage? (Choose two.)
- AOption A
- BOption B
- COption C
- DOption D
29When you are testing a touch interface, which two gestures can you simulate by using a mouse? (Choose two.)
- Atap
- Bpinch
- Cflick
- Drotate
30Which three event attributes are used with the CAPTION element in HTML5? (Choose three.)
- Aonmouseover
- Bondblclick
- Conkeydown
- Donconnect
- Eonabort
31Which HTML5 tag defines superscript text?
- A< small >
- B<script>
- C<sup>
- D<sub>
32What does the following HTML5 code fragment do?
- AIt plays the myVacation.avi video if the browser supports it; otherwise, plays the myVacation.ogg video if the browser supports it.
- BIt plays two videos: first myVacation.avi, and then myVacation.ogg.
- CIt plays both videos simultaneously, myVacation.avi and myVacation.ogg.
- DIt prompts the user to choose which format of the myVacation video it should play, .avi or .ogg.
33Which are two features of SVG? (Choose two.)
- Auses high performance pixel-based graphics
- Bcan be modified by using CSS
- Cuses high performance raster-based graphics
- Dcan be modified by using JavaScript
34Which 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>
35What does "V" stand for in the file type SVG?
- AVideo
- BVertical
- CVector
- DVariable
36Which tag is used to create a drop-down list in HTML5?
- A<ul>
- B<select>
- C<datalist>
- D<dd>
37Which attribute prefills a default value for an input element in HTML5?
- Aname
- Bplaceholder
- Cautocomplete
- Drequired
38Which two outcomes will this code fragment accomplish? (Each correct answer presents a complete solution. Choose two.)
<audio src="happy.wav" controls="controls">
Hello World
</audio>- AOn pre-HTML5 browsers, the happy.wav file will not play, and instead Hello World will be displayed.
- BOn an HTML5 browser that supports .wav files, the happy.wav file will be played and Hello World will be hidden.
- COn an HTML5 browser that supports .wav files, the happy.wav file will be played and Hello World will be displayed.
- Don pre-HTMLS browsers, the happy.wav file will play and Hello World will be hidden.
39You 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.)
- AThe input areas overlap with other input areas.
- BThe touch screen is not initialized.
- CThe input areas are using event handlers to detect input.
- DThe defined input areas are not large enough.
40An HTML5 application can run without an Internet connection if:
- Athe application is converted to an executable.
- Bthe .NET Framework is installed on the client computer.
- Cthe application specifies the use of a client-side SQL database.
- Dthe application specifies the use of an ApplicationCache interface.
41On a Windows touch device, which gesture serves the same purpose as a right-click of the mouse?
- Aswipe
- Bpinch
- Ctap
- Dhold
42Which three components define the URL used for localStorage data in HTML5? (Choose three.)
- Ascheme
- Buser credentials
- Chostname
- Dunique port
- Equery
43Drag and Drop Question
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.)- Ahistory
- BlocalStorage
- Cdocument
- DsessionStorage
- Elocation
44Which two code segments declare JavaScript functions? (Choose two.)
- Avarfunct= (a);
- Bfunction Foo(a){
...
} - Cvar a=new Foo();
- DFoo=function(a){
...}
45You 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?
- AUse the createTextNode method.
- BUse the appendChild method.
- CSet the new text value with the setAttribute method.
- DUse the firstChild property and set the new text value with the nodeValue property.
46You create an instance named "location" of a geolocation object. Which code fragment will initiate periodic updates of a device's geographic location?
- Alocation = navigator.geolocation;
- Blocation.watchPosition(showLocation) ;
- Clocation.getCurrentPosition(showLocation);
- Dlocation.clearNatch(watchid);
47You need to use JavaScript to access the "section1" element in the following code fragment:
<div id='section1'>
Which method should you use?- AgetElementsByTagName
- BgetElementById
- CgetElementsByName
- DgetElementsByClassName
48Drag and Drop Question
Match the HTML5 technologies to the corresponding descriptions. (To answer, drag the appropriate technology from the column on the left to its description on the right. Each technology may be used once, more than once, or not at all. Each correct match is worth one point.)- AXML
- BCSS
- CHTML5
- DJavaScript
- ESOAP
49Drag and Drop Question
Match the HTML5 input attributes to the corresponding descriptions. (To answer, drag the appropriate attribute from the column on the left to its description on the right. Each attribute may be used once, more than once, or not at all. Each correct match is worth one point.)- Apattern
- Bplaceholder
- Crequired
- Dmultiple
- Emaxlength
50Drag and Drop Question
Match the touch events to the corresponding actions. (To answer, drag the appropriate touch event from the column on the left to its action on the right. Each touch event may be used once, more than once, or not at all. Each correct match is worth one point.)- Atouchcancel
- Btouchstart
- Ctouchend
- Dtouchmove
51Which three statements describe cookies? (Choose three.)
- AThey can be created, read, and erased using the document.cookie property.
- BThey are limited in size to 5 MB.
- CThey are deleted automatically when the session ends.
- DThey can be used only by pages on the domain where they were set.
- EThey contain the data in the form of a name=value pair.
52Which two terms represent interfaces in the File API? (Choose two.)
- AFont
- BBlob
- CKeygen
- DFileList
53Which two semantic tags are used to define layouts in HTML5? (Choose two.)
- A<footer>
- B<head>
- C<progress:
- D<section>
54Which two HTML5 tags format text content only? (Choose two.)
- A<map>
- B<strong>
- C<canvas>
- D<em>
55You are developing an HTML5 page. The page includes the following code. The inner paragraph must be exactly 15 pixels from the top left corner of the outer paragraph. You set the left style for the inner paragraph to the appropriate value. You need to set the position property of the inner paragraph. Which value should you use?
<p id="outer" style="position:relative">
<p id ="inner"></p>
</p>- Aabsolute
- Bstatic
- Cfixed
- Drelative
56You are developing a customer web form that includes the following HTML input field.
<input id="txtValue"/>
If a customer enters a value in the input field, then it must be a numeric value. You need to add validation to the input field. Which HTML should you use?- A<input id="txtValue" type-"text" pattern="/#" />
- B<input id="txtValue" type="number" />
- C<input id="txtVa!ue" type="integer" />
- D<input id="txtValue" type="text" required="required"/>
57You develop an HTML5 webpage. You have the following HTML markup:
<input type="text" id="username" />
You need to prevent users from entering specific characters into the username field. What should you do?- AUsing the keyup event, add an anonymous function that returns true when a specific character keycode value is determined.
- BUsing the change event, add an anonymous function that returns true when a specific character keycode value is determined.
- CUsing the keydown event, add an anonymous function that returns false when a specific character keycode value is determined.
- DUsing the change event, add an anonymous function that returns false when a specific character keycode value is determined.
58Which code shows the correct way to nest tags in HTML5?
- AOption A
- BOption B
- COption C
- DOption D
59Which JavaScript method is used to draw a circle on a canvas?
- Aellipse
- Bcircle
- CbezierCurveTo
- Darc
60Which code fragment will display an image file while the video is downloading?
- AOption A
- BOption B
- COption C
- DOption D
61Which three generic font family names are valid values of the font-family property in CSS? (Choose three.)
- Acursive
- Bsystem
- Cserif
- Dfixed
- Efantasy
62Drag and Drop Question
Match the CSS terms to the corresponding CSS code examples. (To answer, drag the appropriate CSS term from the column on the left to its CSS code example on the right. Each CSS term may be used once, more than once, or not at all. Each correct match is worth one point.)- Auniversal selector
- Belement type selector
- Cpseudo-class
- Dattribute selector
- Ecomment
63When applied to an image, the CSS float:right property:
- Apositionsthe image to the left and displays all of the text to the right of the image.
- Bpositionsthe image to the right of the region and wraps text around the top, left, and bottom.
- Cpositionsthe image to the left of the region and wraps text around the top, right, and bottom.
- Dpositionsthe image to the right and wraps text to the top and bottom.
64Which CSS3 code segment styles the text color of EM elements to be red and semi- transparent?
- AOption A
- BOption B
- COption C
- DOption D
65Which term describes the canvas API?
- Axml-based
- Bvector-based
- Cretained-mode
- Dimmediate-mode
66Which CSS position value is used to position an element relative to the browser window?
- Aposition: relative;
- Bposition: absolute;
- Cposition: static;
- Dposition: fixed;
67Drag and Drop Question
Match the JavaScript code fragments with the HTML5 local storage functions. (To answer, drag the appropriate code fragment from the column on the left to its local storage function on the right. Each code fragment may be used once, more than once, or not at all. Each correct match is worth one point.)
- AlocalStorage.key(0);
- BlocalStorage.setItem("name", nameData);
- ClocalStorage.clear();
- DlocalStorage.removeItem("name");
- ElocalStorage.getItem("name");
68You write the following JavaScript code. (Line numbers are included for reference only.)
- AOption A
- BOption B
- COption C
- DOption D
69Your HTML5 code includes this code segment:
- AOption A
- BOption B
- COption C
- DOption D
70Which JavaScript method allows you to register multiple handlers for a single touch event?
- AdispatchEvent
- BinitUIEvent
- CaddEventListener
- DinitEvent
71When you are working with the path API, what is the purpose of the clip method?
- Apastes a shape object in from the system clipboard
- Bconstrains the rendered output of the shape object
- Ccopies the shape object to the system clipboard
- Dstores the shape object for later reference in script
72You need to ensure the scope of a variable named j is limited to the block of a single function named foo(). Which JavaScript code fragment will accomplish this?
- AOption A
- BOption B
- COption C
- DOption D
73When you are using the GeoLocation API, which two arguments does the getCurrentPosition function utilize? (Choose two.)
- Asuccess callback
- BMAC address
- Cbrowser type
- Dip address
- Efailure callback
74Drag and Drop Question
Match the HTML5 elements to the corresponding functions. (To answer, drag the appropriate HTML5 element from the column on the left to its function on the right. Each HTML5 element may be used once, more than once, or not at all. Each correct match is worth one point.)- ATHEAD
- BTH
- COPTGROUP
- DFIELDSET
- ECOLGROUP
75Which HTML5 tag is used to mark text that has been added to the original document?
- A<q>
- B<pre>
- C<ins>
- D<i>
76Which HTML5 code fragment shows a way to validate numeric input as having a value from 1 to 100, inclusive?
- AOption A
- BOption B
- COption C
- DOption D
77Which element should you use to rotate an SVG square?
- Apath
- BANIMATETRANSFORM
- CANIMATEMOTION
- DAREA SHAPE
78Which three events are valid for the HTML CANVAS element? (Choose three.)
- Ascroll
- Bmouseup
- Cblur
- Ddatareceived
- Ehover
79Which code fragment will display the Play and Pause controls in the audio interface?
- AOption A
- BOption B
- COption C
- DOption D
80You write the following code. (Line numbers are included for reference only.)
- AOption A
- BOption B
- COption C
- DOption D
81Which code fragment prepares the HTML5 application to be used offline?
- AOption A
- BOption B
- COption C
- DOption D
82You need to retrieve a value from local storage by using the key "aardvark." Which code fragment should you use?
- AOption A
- BOption B
- COption C
- DOption D
83What value does the following JavaScript code fragment store into the variable num?
varnum = localStorage.length;- Amaximum length of a character string
- Bpotential capacity of local storage
- Cnumber of bytes available in local storage
- Dnumber of key-value pairs in local storage
84Which two touch gestures require a multi-touch device? (Choose two.)
- Ahold
- Btap
- Cpinch
- Dspread
85In HTML5, the autofocus attribute:
- Adefines the cursor location when a form is first accessed.
- Bcontrols the movement between fields in a form.
- Cadds a default value to the field in a form.
- Denables one field and disables all others.
86Which two tags are used with the HTML5 TABLE element? (Choose two.)
- A<body>
- B<tfoot>
- C<td>
- D<head>
87Which CSS3 code segment styles the text color of EM elements to be red and semitransparent?

- AOption A
- BOption B
- COption C
- DOption D
88You add a div object to a page.
Which CSS3 code fragment will add a scrollbar only if the content exceeds the width or height of the object?
- AOption A
- BOption B
- COption C
- DOption D
89Match the CSS position property values to the corresponding descriptions. (To answer, drag each value from the column on the left to its description on the right. Each value may be used once, more than once, or not at all. Each correct match is worth one point.)

- AStatic
- Babsolute
- Cfixed
- Drelative
- Einherit
90When content from a flow is loaded into a region, overflowed content:
- Aattempts to fit into the region by auto-adjusting the styles.
- Bcontinues into the next region.
- Cis truncated and an error flag is set.
- Dis buffered for download.
91Which CSS3 code fragment rounds the corners of a border?
- Aborder-image: 50px;
- Bborder-clip: 50px concave;
- Cborder-radius: 50px;
- Dborder-clip: 50px;
92Which two CSS properties can be used to position multiple HTML elements next to one another? (Choose two.)
- Adisplay
- Bposition
- Coverflow
- Dfloat
93Which CSS3 code fragment will style only the external links in an HTML document?

- AOption A
- BOption B
- COption C
- DOption D
94Which three code fragments define an HTML input control? (Choose three.)

- AOption A
- BOption B
- COption C
- DOption D
- EOption E
Information
- Description
- HTML5 Application Development Fundamentals Quizzes preparing to certification
- Author
- Hawerth Castro
- Language
- Português
- Views
- 610
- Tags
- Rating
- 5.0 out of 5 · 1 rating Rate this quiz