Frage 1
Frage
Which layout can you create by using a single CSS3 region?
Frage 2
Frage
Which two events are supported on touch devices? (Choose two.)
Antworten
-
click
-
touchstart
-
selection
-
drag
Frage 3
Frage
Which positioning scheme places an object in normal document flow?
Antworten
-
absolute
-
relative
-
fixed
-
float
Frage 4
Frage
Which three are valid JavaScript variables? (Choose three.)
Frage 5
Frage
Which CSS property defines which sides of an element where other floating elements are not allowed?
Antworten
-
float
-
position
-
display
-
clear
Frage 6
Frage
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.)
Antworten
-
value
-
class selector
-
id selector
-
property
-
declaration
Frage 7
Frage
In CSS, the flow-into property deposits:
Frage 8
Frage
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);
Antworten
-
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
Frage 9
Frage
Which three properties can be used with the TouchEvent object in the Safari touch API? (Choose three.)
Antworten
-
offsetTop
-
clientHeight
-
scale
-
touches
-
rotation
Frage 10
Frage
You create an instance named "ac" of an accelerometer object. Which code fragment will retrieve a single update?
Antworten
-
ac = navigator.accelerometer ;
-
ac.getAcceleration (accelerometerFunction) ;
-
ac.watchAcceleration (accelerometerFunction) ;
-
ac.clearWatch (watchid) ;
Frage 11
Frage
Which three technologies does HTML5 encompass? (Choose three.)
Antworten
-
CSS
-
ASP.NET
-
C#
-
JavaScript
-
HTML
Frage 12
Frage
Which CSS property defines which sides of an element where other floating elements are not allowed?
Antworten
-
float
-
position
-
display
-
clear
Frage 13
Frage
What is the default value of the CSS position property?
Antworten
-
fixed
-
absolute
-
static
-
relative
Frage 14
Frage
Which CSS3 code fragment styles an H2 element only if it is a direct child of a DIV element?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 15
Frage
You write the following code to create a page. (Line numbers are included for reference only.)
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 16
Frage
Which CSS code fragment centers an image horizontally?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 17
Frage
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?
Antworten
-
vartxtContents =document.getElementById('text1').value;
-
vartxtContents = document.getEIementyById('myText').value;
-
vartxtContents =document.getElementById('text1');
-
vartxtContents = document.getElementById('myText');
Frage 18
Frage
The data in a specific HTML5 local storage database can be accessed from:
Antworten
-
Different browsers on the same device.
-
Different browsers on different devices.
-
The same browser on different devices.
-
The same browser on the same device.
Frage 19
Frage
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?
Antworten
-
the tagName property
-
the className property
-
the style property
-
the class attribute
Frage 20
Frage
Which code fragment sets up a timer that calls a function named "adjust" every second?
Antworten
-
setTimeout(adjust, 1000);
-
setInterval(adjust, 1000);
-
setInterval(adjust, 1);
-
setTimeout(adjust, 1);
Frage 21
Frage
Which two HTML properties can JavaScript access to change the text value of an HTML element? (Choose two.)
Antworten
-
innerHTML
-
nodeType
-
title
-
nodeValue
Frage 22
Frage
Web Workers define an API for:
Antworten
-
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.
Frage 23
Frage
Which two are WebSocket events? (Choose two.)
Antworten
-
onconnect
-
onmessage
-
ondatareceived
-
onopen
Frage 24
Frage
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?
Antworten
-
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.
Frage 25
Frage
An HTML5 application can be used without going through a manufacturer's approval process if:
Antworten
-
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.
Frage 26
Frage
Which item specifies resources for an offline HTML5 application?
Antworten
-
a CSS style sheet
-
an HTML5 file
-
a JavaScript file
-
a cache manifest file
Frage 27
Frage
In HTML5, which two objects in the Web Storage specification are used to store data on the client? (Choose two.)
Antworten
-
websocket
-
navigator
-
cache
-
sessionStorage
-
localStorage
Frage 28
Frage
Which two code fragments represent ways to use HTML5 to save values to session storage? (Choose two.)
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 29
Frage
When you are testing a touch interface, which two gestures can you simulate by using a mouse? (Choose two.)
Frage 30
Frage
Which three event attributes are used with the CAPTION element in HTML5? (Choose three.)
Antworten
-
onmouseover
-
ondblclick
-
onkeydown
-
onconnect
-
onabort
Frage 31
Frage
Which HTML5 tag defines superscript text?
Antworten
-
< small >
-
<script>
-
<sup>
-
<sub>
Frage 32
Frage
What does the following HTML5 code fragment do?
Antworten
-
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.
Frage 33
Frage
Which are two features of SVG? (Choose two.)
Antworten
-
uses high performance pixel-based graphics
-
can be modified by using CSS
-
uses high performance raster-based graphics
-
can be modified by using JavaScript
Frage 34
Frage
Which HTML5 tag is used to display text with a fixed-width font and preserves both spaces and line breaks?
Antworten
-
<area>
-
<hr>
-
<pre>
-
<strong>
Frage 35
Frage
What does "V" stand for in the file type SVG?
Antworten
-
Video
-
Vertical
-
Vector
-
Variable
Frage 36
Frage
Which tag is used to create a drop-down list in HTML5?
Antworten
-
<ul>
-
<select>
-
<datalist>
-
<dd>
Frage 37
Frage
Which attribute prefills a default value for an input element in HTML5?
Antworten
-
name
-
placeholder
-
autocomplete
-
required
Frage 38
Frage
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>
Antworten
-
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.
Frage 39
Frage
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.)
Antworten
-
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.
Frage 40
Frage
An HTML5 application can run without an Internet connection if:
Antworten
-
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.
Frage 41
Frage
On a Windows touch device, which gesture serves the same purpose as a right-click of the mouse?
Frage 42
Frage
Which three components define the URL used for localStorage data in HTML5? (Choose three.)
Antworten
-
scheme
-
user credentials
-
hostname
-
unique port
-
query
Frage 43
Frage
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.)
Antworten
-
history
-
localStorage
-
document
-
sessionStorage
-
location
Frage 44
Frage
Which two code segments declare JavaScript functions? (Choose two.)
Antworten
-
varfunct= (a);
-
function Foo(a){
...
}
-
var a=new Foo();
-
Foo=function(a){
...}
Frage 45
Frage
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?
Antworten
-
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.
Frage 46
Frage
You create an instance named "location" of a geolocation object. Which code fragment will initiate periodic updates of a device's geographic location?
Antworten
-
location = navigator.geolocation;
-
location.watchPosition(showLocation) ;
-
location.getCurrentPosition(showLocation);
-
location.clearNatch(watchid);
Frage 47
Frage
You need to use JavaScript to access the "section1" element in the following code fragment:
<div id='section1'>
Which method should you use?
Antworten
-
getElementsByTagName
-
getElementById
-
getElementsByName
-
getElementsByClassName
Frage 48
Frage
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.)
Antworten
-
XML
-
CSS
-
HTML5
-
JavaScript
-
SOAP
Frage 49
Frage
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.)
Antworten
-
pattern
-
placeholder
-
required
-
multiple
-
maxlength
Frage 50
Frage
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.)
Antworten
-
touchcancel
-
touchstart
-
touchend
-
touchmove
Frage 51
Frage
Which three statements describe cookies? (Choose three.)
Antworten
-
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.
Frage 52
Frage
Which two terms represent interfaces in the File API? (Choose two.)
Antworten
-
Font
-
Blob
-
Keygen
-
FileList
Frage 53
Frage
Which two semantic tags are used to define layouts in HTML5? (Choose two.)
Antworten
-
<footer>
-
<head>
-
<progress:
-
<section>
Frage 54
Frage
Which two HTML5 tags format text content only? (Choose two.)
Antworten
-
<map>
-
<strong>
-
<canvas>
-
<em>
Frage 55
Frage
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>
Antworten
-
absolute
-
static
-
fixed
-
relative
Frage 56
Frage
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?
Antworten
-
<input id="txtValue" type-"text" pattern="/#" />
-
<input id="txtValue" type="number" />
-
<input id="txtVa!ue" type="integer" />
-
<input id="txtValue" type="text" required="required"/>
Frage 57
Frage
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?
Antworten
-
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.
Frage 58
Frage
Which code shows the correct way to nest tags in HTML5?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 59
Frage
Which JavaScript method is used to draw a circle on a canvas?
Antworten
-
ellipse
-
circle
-
bezierCurveTo
-
arc
Frage 60
Frage
Which code fragment will display an image file while the video is downloading?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 61
Frage
Which three generic font family names are valid values of the font-family property in CSS? (Choose three.)
Antworten
-
cursive
-
system
-
serif
-
fixed
-
fantasy
Frage 62
Frage
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.)
Antworten
-
universal selector
-
element type selector
-
pseudo-class
-
attribute selector
-
comment
Frage 63
Frage
When applied to an image, the CSS float:right property:
Antworten
-
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.
Frage 64
Frage
Which CSS3 code segment styles the text color of EM elements to be red and semi- transparent?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 65
Frage
Which term describes the canvas API?
Antworten
-
xml-based
-
vector-based
-
retained-mode
-
immediate-mode
Frage 66
Frage
Which CSS position value is used to position an element relative to the browser window?
Antworten
-
position: relative;
-
position: absolute;
-
position: static;
-
position: fixed;
Frage 67
Frage
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.)
Antworten
-
localStorage.key(0);
-
localStorage.setItem("name", nameData);
-
localStorage.clear();
-
localStorage.removeItem("name");
-
localStorage.getItem("name");
Frage 68
Frage
You write the following JavaScript code. (Line numbers are included for reference only.)
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 69
Frage
Your HTML5 code includes this code segment:
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 70
Frage
Which JavaScript method allows you to register multiple handlers for a single touch event?
Antworten
-
dispatchEvent
-
initUIEvent
-
addEventListener
-
initEvent
Frage 71
Frage
When you are working with the path API, what is the purpose of the clip method?
Antworten
-
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
Frage 72
Frage
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?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 73
Frage
When you are using the GeoLocation API, which two arguments does the getCurrentPosition function utilize? (Choose two.)
Antworten
-
success callback
-
MAC address
-
browser type
-
ip address
-
failure callback
Frage 74
Frage
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.)
Antworten
-
THEAD
-
TH
-
OPTGROUP
-
FIELDSET
-
COLGROUP
Frage 75
Frage
Which HTML5 tag is used to mark text that has been added to the original document?
Frage 76
Frage
Which HTML5 code fragment shows a way to validate numeric input as having a value from 1 to 100, inclusive?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 77
Frage
Which element should you use to rotate an SVG square?
Antworten
-
path
-
ANIMATETRANSFORM
-
ANIMATEMOTION
-
AREA SHAPE
Frage 78
Frage
Which three events are valid for the HTML CANVAS element? (Choose three.)
Antworten
-
scroll
-
mouseup
-
blur
-
datareceived
-
hover
Frage 79
Frage
Which code fragment will display the Play and Pause controls in the audio interface?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 80
Frage
You write the following code. (Line numbers are included for reference only.)
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 81
Frage
Which code fragment prepares the HTML5 application to be used offline?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 82
Frage
You need to retrieve a value from local storage by using the key "aardvark." Which code fragment should you use?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 83
Frage
What value does the following JavaScript code fragment store into the variable num?
varnum = localStorage.length;
Antworten
-
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
Frage 84
Frage
Which two touch gestures require a multi-touch device? (Choose two.)
Frage 85
Frage
In HTML5, the autofocus attribute:
Antworten
-
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.
Frage 86
Frage
Which two tags are used with the HTML5 TABLE element? (Choose two.)
Antworten
-
<body>
-
<tfoot>
-
<td>
-
<head>
Frage 87
Frage
Which CSS3 code segment styles the text color of EM elements to be red and semitransparent?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 88
Frage
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?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 89
Frage
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.)
Antworten
-
Static
-
absolute
-
fixed
-
relative
-
inherit
Frage 90
Frage
When content from a flow is loaded into a region, overflowed content:
Antworten
-
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.
Frage 91
Frage
Which CSS3 code fragment rounds the corners of a border?
Frage 92
Frage
Which two CSS properties can be used to position multiple HTML elements next to one another? (Choose two.)
Antworten
-
display
-
position
-
overflow
-
float
Frage 93
Frage
Which CSS3 code fragment will style only the external links in an HTML document?
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
Frage 94
Frage
Which three code fragments define an HTML input control? (Choose three.)
Antworten
-
Option A
-
Option B
-
Option C
-
Option D
-
Option E