Pregunta 1
Pregunta
Which layout can you create by using a single CSS3 region?
Pregunta 2
Pregunta
Which two events are supported on touch devices? (Choose two.)
Respuesta
-
click
-
touchstart
-
selection
-
drag
Pregunta 3
Pregunta
Which positioning scheme places an object in normal document flow?
Respuesta
-
absolute
-
relative
-
fixed
-
float
Pregunta 4
Pregunta
Which three are valid JavaScript variables? (Choose three.)
Pregunta 5
Pregunta
Which CSS property defines which sides of an element where other floating elements are not allowed?
Respuesta
-
float
-
position
-
display
-
clear
Pregunta 6
Pregunta
Drag 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.)
Respuesta
-
value
-
class selector
-
id selector
-
property
-
declaration
Pregunta 7
Pregunta
In CSS, the flow-into property deposits:
Pregunta 8
Pregunta
The 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);
Respuesta
-
a circle at the given point
-
a square at the given point
-
a semi-circle at the given point
-
a line from one point to another
Pregunta 9
Pregunta
Which three properties can be used with the TouchEvent object in the Safari touch API? (Choose three.)
Respuesta
-
offsetTop
-
clientHeight
-
scale
-
touches
-
rotation
Pregunta 10
Pregunta
You create an instance named "ac" of an accelerometer object. Which code fragment will retrieve a single update?
Respuesta
-
ac = navigator.accelerometer ;
-
ac.getAcceleration (accelerometerFunction) ;
-
ac.watchAcceleration (accelerometerFunction) ;
-
ac.clearWatch (watchid) ;
Pregunta 11
Pregunta
Which three technologies does HTML5 encompass? (Choose three.)
Respuesta
-
CSS
-
ASP.NET
-
C#
-
JavaScript
-
HTML
Pregunta 12
Pregunta
Which CSS property defines which sides of an element where other floating elements are not allowed?
Respuesta
-
float
-
position
-
display
-
clear
Pregunta 13
Pregunta
What is the default value of the CSS position property?
Respuesta
-
fixed
-
absolute
-
static
-
relative
Pregunta 14
Pregunta
Which CSS3 code fragment styles an H2 element only if it is a direct child of a DIV element?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 15
Pregunta
You write the following code to create a page. (Line numbers are included for reference only.)
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 16
Pregunta
Which CSS code fragment centers an image horizontally?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 17
Pregunta
Your 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?
Respuesta
-
vartxtContents =document.getElementById('text1').value;
-
vartxtContents = document.getEIementyById('myText').value;
-
vartxtContents =document.getElementById('text1');
-
vartxtContents = document.getElementById('myText');
Pregunta 18
Pregunta
The data in a specific HTML5 local storage database can be accessed from:
Respuesta
-
Different browsers on the same device.
-
Different browsers on different devices.
-
The same browser on different devices.
-
The same browser on the same device.
Pregunta 19
Pregunta
You 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?
Respuesta
-
the tagName property
-
the className property
-
the style property
-
the class attribute
Pregunta 20
Pregunta
Which code fragment sets up a timer that calls a function named "adjust" every second?
Respuesta
-
setTimeout(adjust, 1000);
-
setInterval(adjust, 1000);
-
setInterval(adjust, 1);
-
setTimeout(adjust, 1);
Pregunta 21
Pregunta
Which two HTML properties can JavaScript access to change the text value of an HTML element? (Choose two.)
Respuesta
-
innerHTML
-
nodeType
-
title
-
nodeValue
Pregunta 22
Pregunta
Web Workers define an API for:
Respuesta
-
Publishing frequently updated works for syndication.
-
Running scripts in the background,
-
Bi-directional, full-duplex communications over a single TCP socket.
-
Distributing load across multiple web servers.
Pregunta 23
Pregunta
Which two are WebSocket events? (Choose two.)
Respuesta
-
onconnect
-
onmessage
-
ondatareceived
-
onopen
Pregunta 24
Pregunta
You 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?
Respuesta
-
The touch screen is not calibrated.
-
The input areas are too close together.
-
The defined input areas are too small.
-
The input areas are semi-transparent.
Pregunta 25
Pregunta
An HTML5 application can be used without going through a manufacturer's approval process if:
Respuesta
-
the browser on the device supports HTML5.
-
the manufacturer has unlocked the device's SIM card.
-
the application has been compiled.
-
the developer has the correct application ID.
Pregunta 26
Pregunta
Which item specifies resources for an offline HTML5 application?
Respuesta
-
a CSS style sheet
-
an HTML5 file
-
a JavaScript file
-
a cache manifest file
Pregunta 27
Pregunta
In HTML5, which two objects in the Web Storage specification are used to store data on the client? (Choose two.)
Respuesta
-
websocket
-
navigator
-
cache
-
sessionStorage
-
localStorage
Pregunta 28
Pregunta
Which two code fragments represent ways to use HTML5 to save values to session storage? (Choose two.)
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 29
Pregunta
When you are testing a touch interface, which two gestures can you simulate by using a mouse? (Choose two.)
Pregunta 30
Pregunta
Which three event attributes are used with the CAPTION element in HTML5? (Choose three.)
Respuesta
-
onmouseover
-
ondblclick
-
onkeydown
-
onconnect
-
onabort
Pregunta 31
Pregunta
Which HTML5 tag defines superscript text?
Respuesta
-
< small >
-
<script>
-
<sup>
-
<sub>
Pregunta 32
Pregunta
What does the following HTML5 code fragment do?
Respuesta
-
It plays the myVacation.avi video if the browser supports it; otherwise, plays the myVacation.ogg video if the browser supports it.
-
It plays two videos: first myVacation.avi, and then myVacation.ogg.
-
It plays both videos simultaneously, myVacation.avi and myVacation.ogg.
-
It prompts the user to choose which format of the myVacation video it should play, .avi or .ogg.
Pregunta 33
Pregunta
Which are two features of SVG? (Choose two.)
Respuesta
-
uses high performance pixel-based graphics
-
can be modified by using CSS
-
uses high performance raster-based graphics
-
can be modified by using JavaScript
Pregunta 34
Pregunta
Which HTML5 tag is used to display text with a fixed-width font and preserves both spaces and line breaks?
Respuesta
-
<area>
-
<hr>
-
<pre>
-
<strong>
Pregunta 35
Pregunta
What does "V" stand for in the file type SVG?
Respuesta
-
Video
-
Vertical
-
Vector
-
Variable
Pregunta 36
Pregunta
Which tag is used to create a drop-down list in HTML5?
Respuesta
-
<ul>
-
<select>
-
<datalist>
-
<dd>
Pregunta 37
Pregunta
Which attribute prefills a default value for an input element in HTML5?
Respuesta
-
name
-
placeholder
-
autocomplete
-
required
Pregunta 38
Pregunta
Which 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>
Respuesta
-
On pre-HTML5 browsers, the happy.wav file will not play, and instead Hello World will be displayed.
-
On an HTML5 browser that supports .wav files, the happy.wav file will be played and Hello World will be hidden.
-
On an HTML5 browser that supports .wav files, the happy.wav file will be played and Hello World will be displayed.
-
on pre-HTMLS browsers, the happy.wav file will play and Hello World will be hidden.
Pregunta 39
Pregunta
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.)
Respuesta
-
The input areas overlap with other input areas.
-
The touch screen is not initialized.
-
The input areas are using event handlers to detect input.
-
The defined input areas are not large enough.
Pregunta 40
Pregunta
An HTML5 application can run without an Internet connection if:
Respuesta
-
the application is converted to an executable.
-
the .NET Framework is installed on the client computer.
-
the application specifies the use of a client-side SQL database.
-
the application specifies the use of an ApplicationCache interface.
Pregunta 41
Pregunta
On a Windows touch device, which gesture serves the same purpose as a right-click of the mouse?
Pregunta 42
Pregunta
Which three components define the URL used for localStorage data in HTML5? (Choose three.)
Respuesta
-
scheme
-
user credentials
-
hostname
-
unique port
-
query
Pregunta 43
Pregunta
Drag 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.)
Respuesta
-
history
-
localStorage
-
document
-
sessionStorage
-
location
Pregunta 44
Pregunta
Which two code segments declare JavaScript functions? (Choose two.)
Respuesta
-
varfunct= (a);
-
function Foo(a){
...
}
-
var a=new Foo();
-
Foo=function(a){
...}
Pregunta 45
Pregunta
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?
Respuesta
-
Use the createTextNode method.
-
Use the appendChild method.
-
Set the new text value with the setAttribute method.
-
Use the firstChild property and set the new text value with the nodeValue property.
Pregunta 46
Pregunta
You create an instance named "location" of a geolocation object. Which code fragment will initiate periodic updates of a device's geographic location?
Respuesta
-
location = navigator.geolocation;
-
location.watchPosition(showLocation) ;
-
location.getCurrentPosition(showLocation);
-
location.clearNatch(watchid);
Pregunta 47
Pregunta
You need to use JavaScript to access the "section1" element in the following code fragment:
<div id='section1'>
Which method should you use?
Respuesta
-
getElementsByTagName
-
getElementById
-
getElementsByName
-
getElementsByClassName
Pregunta 48
Pregunta
Drag 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.)
Respuesta
-
XML
-
CSS
-
HTML5
-
JavaScript
-
SOAP
Pregunta 49
Pregunta
Drag 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.)
Respuesta
-
pattern
-
placeholder
-
required
-
multiple
-
maxlength
Pregunta 50
Pregunta
Drag 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.)
Respuesta
-
touchcancel
-
touchstart
-
touchend
-
touchmove
Pregunta 51
Pregunta
Which three statements describe cookies? (Choose three.)
Respuesta
-
They can be created, read, and erased using the document.cookie property.
-
They are limited in size to 5 MB.
-
They are deleted automatically when the session ends.
-
They can be used only by pages on the domain where they were set.
-
They contain the data in the form of a name=value pair.
Pregunta 52
Pregunta
Which two terms represent interfaces in the File API? (Choose two.)
Respuesta
-
Font
-
Blob
-
Keygen
-
FileList
Pregunta 53
Pregunta
Which two semantic tags are used to define layouts in HTML5? (Choose two.)
Respuesta
-
<footer>
-
<head>
-
<progress:
-
<section>
Pregunta 54
Pregunta
Which two HTML5 tags format text content only? (Choose two.)
Respuesta
-
<map>
-
<strong>
-
<canvas>
-
<em>
Pregunta 55
Pregunta
You 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>
Respuesta
-
absolute
-
static
-
fixed
-
relative
Pregunta 56
Pregunta
You 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?
Respuesta
-
<input id="txtValue" type-"text" pattern="/#" />
-
<input id="txtValue" type="number" />
-
<input id="txtVa!ue" type="integer" />
-
<input id="txtValue" type="text" required="required"/>
Pregunta 57
Pregunta
You 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?
Respuesta
-
Using the keyup event, add an anonymous function that returns true when a specific character keycode value is determined.
-
Using the change event, add an anonymous function that returns true when a specific character keycode value is determined.
-
Using the keydown event, add an anonymous function that returns false when a specific character keycode value is determined.
-
Using the change event, add an anonymous function that returns false when a specific character keycode value is determined.
Pregunta 58
Pregunta
Which code shows the correct way to nest tags in HTML5?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 59
Pregunta
Which JavaScript method is used to draw a circle on a canvas?
Respuesta
-
ellipse
-
circle
-
bezierCurveTo
-
arc
Pregunta 60
Pregunta
Which code fragment will display an image file while the video is downloading?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 61
Pregunta
Which three generic font family names are valid values of the font-family property in CSS? (Choose three.)
Respuesta
-
cursive
-
system
-
serif
-
fixed
-
fantasy
Pregunta 62
Pregunta
Drag 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.)
Respuesta
-
universal selector
-
element type selector
-
pseudo-class
-
attribute selector
-
comment
Pregunta 63
Pregunta
When applied to an image, the CSS float:right property:
Respuesta
-
positionsthe image to the left and displays all of the text to the right of the image.
-
positionsthe image to the right of the region and wraps text around the top, left, and bottom.
-
positionsthe image to the left of the region and wraps text around the top, right, and bottom.
-
positionsthe image to the right and wraps text to the top and bottom.
Pregunta 64
Pregunta
Which CSS3 code segment styles the text color of EM elements to be red and semi- transparent?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 65
Pregunta
Which term describes the canvas API?
Respuesta
-
xml-based
-
vector-based
-
retained-mode
-
immediate-mode
Pregunta 66
Pregunta
Which CSS position value is used to position an element relative to the browser window?
Respuesta
-
position: relative;
-
position: absolute;
-
position: static;
-
position: fixed;
Pregunta 67
Pregunta
Drag 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.)
Respuesta
-
localStorage.key(0);
-
localStorage.setItem("name", nameData);
-
localStorage.clear();
-
localStorage.removeItem("name");
-
localStorage.getItem("name");
Pregunta 68
Pregunta
You write the following JavaScript code. (Line numbers are included for reference only.)
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 69
Pregunta
Your HTML5 code includes this code segment:
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 70
Pregunta
Which JavaScript method allows you to register multiple handlers for a single touch event?
Respuesta
-
dispatchEvent
-
initUIEvent
-
addEventListener
-
initEvent
Pregunta 71
Pregunta
When you are working with the path API, what is the purpose of the clip method?
Respuesta
-
pastes a shape object in from the system clipboard
-
constrains the rendered output of the shape object
-
copies the shape object to the system clipboard
-
stores the shape object for later reference in script
Pregunta 72
Pregunta
You 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?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 73
Pregunta
When you are using the GeoLocation API, which two arguments does the getCurrentPosition function utilize? (Choose two.)
Respuesta
-
success callback
-
MAC address
-
browser type
-
ip address
-
failure callback
Pregunta 74
Pregunta
Drag 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.)
Respuesta
-
THEAD
-
TH
-
OPTGROUP
-
FIELDSET
-
COLGROUP
Pregunta 75
Pregunta
Which HTML5 tag is used to mark text that has been added to the original document?
Pregunta 76
Pregunta
Which HTML5 code fragment shows a way to validate numeric input as having a value from 1 to 100, inclusive?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 77
Pregunta
Which element should you use to rotate an SVG square?
Respuesta
-
path
-
ANIMATETRANSFORM
-
ANIMATEMOTION
-
AREA SHAPE
Pregunta 78
Pregunta
Which three events are valid for the HTML CANVAS element? (Choose three.)
Respuesta
-
scroll
-
mouseup
-
blur
-
datareceived
-
hover
Pregunta 79
Pregunta
Which code fragment will display the Play and Pause controls in the audio interface?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 80
Pregunta
You write the following code. (Line numbers are included for reference only.)
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 81
Pregunta
Which code fragment prepares the HTML5 application to be used offline?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 82
Pregunta
You need to retrieve a value from local storage by using the key "aardvark." Which code fragment should you use?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 83
Pregunta
What value does the following JavaScript code fragment store into the variable num?
varnum = localStorage.length;
Respuesta
-
maximum length of a character string
-
potential capacity of local storage
-
number of bytes available in local storage
-
number of key-value pairs in local storage
Pregunta 84
Pregunta
Which two touch gestures require a multi-touch device? (Choose two.)
Pregunta 85
Pregunta
In HTML5, the autofocus attribute:
Respuesta
-
defines the cursor location when a form is first accessed.
-
controls the movement between fields in a form.
-
adds a default value to the field in a form.
-
enables one field and disables all others.
Pregunta 86
Pregunta
Which two tags are used with the HTML5 TABLE element? (Choose two.)
Respuesta
-
<body>
-
<tfoot>
-
<td>
-
<head>
Pregunta 87
Pregunta
Which CSS3 code segment styles the text color of EM elements to be red and semitransparent?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 88
Pregunta
You 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?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 89
Pregunta
Match 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.)
Respuesta
-
Static
-
absolute
-
fixed
-
relative
-
inherit
Pregunta 90
Pregunta
When content from a flow is loaded into a region, overflowed content:
Respuesta
-
attempts to fit into the region by auto-adjusting the styles.
-
continues into the next region.
-
is truncated and an error flag is set.
-
is buffered for download.
Pregunta 91
Pregunta
Which CSS3 code fragment rounds the corners of a border?
Pregunta 92
Pregunta
Which two CSS properties can be used to position multiple HTML elements next to one another? (Choose two.)
Respuesta
-
display
-
position
-
overflow
-
float
Pregunta 93
Pregunta
Which CSS3 code fragment will style only the external links in an HTML document?
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
Pregunta 94
Pregunta
Which three code fragments define an HTML input control? (Choose three.)
Respuesta
-
Option A
-
Option B
-
Option C
-
Option D
-
Option E