CET_TARDE - MTA HTML5 Application Development Fundamentals 2

Descrição

HTML5 Application Development Fundamentals Quizzes preparing to certification
Hawerth Castro
Quiz por Hawerth Castro, atualizado more than 1 year ago
Hawerth Castro
Criado por Hawerth Castro mais de 6 anos atrás
467
0

Resumo de Recurso

Questão 1

Questão
Which layout can you create by using a single CSS3 region?
Responda
  • a table layout
  • a snaked-column layout
  • a multiple column liquid layout
  • a multiple column fixed layout

Questão 2

Questão
Which two events are supported on touch devices? (Choose two.)
Responda
  • click
  • touchstart
  • selection
  • drag

Questão 3

Questão
Which positioning scheme places an object in normal document flow?
Responda
  • absolute
  • relative
  • fixed
  • float

Questão 4

Questão
Which three are valid JavaScript variables? (Choose three.)
Responda
  • xyz1
  • .Int
  • int1
  • _int
  • 1xyz

Questão 5

Questão
Which CSS property defines which sides of an element where other floating elements are not allowed?
Responda
  • float
  • position
  • display
  • clear

Questão 6

Questão
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.)
Responda
  • value
  • class selector
  • id selector
  • property
  • declaration

Questão 7

Questão
In CSS, the flow-into property deposits:
Responda
  • the flow into the content.
  • the regions into a flow.
  • the flow into the regions.
  • content into the flow.

Questão 8

Questão
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);
Responda
  • 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

Questão 9

Questão
Which three properties can be used with the TouchEvent object in the Safari touch API? (Choose three.)
Responda
  • offsetTop
  • clientHeight
  • scale
  • touches
  • rotation

Questão 10

Questão
You create an instance named "ac" of an accelerometer object. Which code fragment will retrieve a single update?
Responda
  • ac = navigator.accelerometer ;
  • ac.getAcceleration (accelerometerFunction) ;
  • ac.watchAcceleration (accelerometerFunction) ;
  • ac.clearWatch (watchid) ;

Questão 11

Questão
Which three technologies does HTML5 encompass? (Choose three.)
Responda
  • CSS
  • ASP.NET
  • C#
  • JavaScript
  • HTML

Questão 12

Questão
Which CSS property defines which sides of an element where other floating elements are not allowed?
Responda
  • float
  • position
  • display
  • clear

Questão 13

Questão
What is the default value of the CSS position property?
Responda
  • fixed
  • absolute
  • static
  • relative

Questão 14

Questão
Which CSS3 code fragment styles an H2 element only if it is a direct child of a DIV element?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 15

Questão
You write the following code to create a page. (Line numbers are included for reference only.)
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 16

Questão
Which CSS code fragment centers an image horizontally?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 17

Questão
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?
Responda
  • vartxtContents =document.getElementById('text1').value;
  • vartxtContents = document.getEIementyById('myText').value;
  • vartxtContents =document.getElementById('text1');
  • vartxtContents = document.getElementById('myText');

Questão 18

Questão
The data in a specific HTML5 local storage database can be accessed from:
Responda
  • Different browsers on the same device.
  • Different browsers on different devices.
  • The same browser on different devices.
  • The same browser on the same device.

Questão 19

Questão
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?
Responda
  • the tagName property
  • the className property
  • the style property
  • the class attribute

Questão 20

Questão
Which code fragment sets up a timer that calls a function named "adjust" every second?
Responda
  • setTimeout(adjust, 1000);
  • setInterval(adjust, 1000);
  • setInterval(adjust, 1);
  • setTimeout(adjust, 1);

Questão 21

Questão
Which two HTML properties can JavaScript access to change the text value of an HTML element? (Choose two.)
Responda
  • innerHTML
  • nodeType
  • title
  • nodeValue

Questão 22

Questão
Web Workers define an API for:
Responda
  • 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.

Questão 23

Questão
Which two are WebSocket events? (Choose two.)
Responda
  • onconnect
  • onmessage
  • ondatareceived
  • onopen

Questão 24

Questão
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?
Responda
  • 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.

Questão 25

Questão
An HTML5 application can be used without going through a manufacturer's approval process if:
Responda
  • 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.

Questão 26

Questão
Which item specifies resources for an offline HTML5 application?
Responda
  • a CSS style sheet
  • an HTML5 file
  • a JavaScript file
  • a cache manifest file

Questão 27

Questão
In HTML5, which two objects in the Web Storage specification are used to store data on the client? (Choose two.)
Responda
  • websocket
  • navigator
  • cache
  • sessionStorage
  • localStorage

Questão 28

Questão
Which two code fragments represent ways to use HTML5 to save values to session storage? (Choose two.)
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 29

Questão
When you are testing a touch interface, which two gestures can you simulate by using a mouse? (Choose two.)
Responda
  • tap
  • pinch
  • flick
  • rotate

Questão 30

Questão
Which three event attributes are used with the CAPTION element in HTML5? (Choose three.)
Responda
  • onmouseover
  • ondblclick
  • onkeydown
  • onconnect
  • onabort

Questão 31

Questão
Which HTML5 tag defines superscript text?
Responda
  • < small >
  • <script>
  • <sup>
  • <sub>

Questão 32

Questão
What does the following HTML5 code fragment do?
Responda
  • 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.

Questão 33

Questão
Which are two features of SVG? (Choose two.)
Responda
  • uses high performance pixel-based graphics
  • can be modified by using CSS
  • uses high performance raster-based graphics
  • can be modified by using JavaScript

Questão 34

Questão
Which HTML5 tag is used to display text with a fixed-width font and preserves both spaces and line breaks?
Responda
  • <area>
  • <hr>
  • <pre>
  • <strong>

Questão 35

Questão
What does "V" stand for in the file type SVG?
Responda
  • Video
  • Vertical
  • Vector
  • Variable

Questão 36

Questão
Which tag is used to create a drop-down list in HTML5?
Responda
  • <ul>
  • <select>
  • <datalist>
  • <dd>

Questão 37

Questão
Which attribute prefills a default value for an input element in HTML5?
Responda
  • name
  • placeholder
  • autocomplete
  • required

Questão 38

Questão
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>
Responda
  • 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.

Questão 39

Questão
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.)
Responda
  • 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.

Questão 40

Questão
An HTML5 application can run without an Internet connection if:
Responda
  • 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.

Questão 41

Questão
On a Windows touch device, which gesture serves the same purpose as a right-click of the mouse?
Responda
  • swipe
  • pinch
  • tap
  • hold

Questão 42

Questão
Which three components define the URL used for localStorage data in HTML5? (Choose three.)
Responda
  • scheme
  • user credentials
  • hostname
  • unique port
  • query

Questão 43

Questão
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.)
Responda
  • history
  • localStorage
  • document
  • sessionStorage
  • location

Questão 44

Questão
Which two code segments declare JavaScript functions? (Choose two.)
Responda
  • varfunct= (a);
  • function Foo(a){ ... }
  • var a=new Foo();
  • Foo=function(a){ ...}

Questão 45

Questão
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?
Responda
  • 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.

Questão 46

Questão
You create an instance named "location" of a geolocation object. Which code fragment will initiate periodic updates of a device's geographic location?
Responda
  • location = navigator.geolocation;
  • location.watchPosition(showLocation) ;
  • location.getCurrentPosition(showLocation);
  • location.clearNatch(watchid);

Questão 47

Questão
You need to use JavaScript to access the "section1" element in the following code fragment: <div id='section1'> Which method should you use?
Responda
  • getElementsByTagName
  • getElementById
  • getElementsByName
  • getElementsByClassName

Questão 48

Questão
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.)
Responda
  • XML
  • CSS
  • HTML5
  • JavaScript
  • SOAP

Questão 49

Questão
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.)
Responda
  • pattern
  • placeholder
  • required
  • multiple
  • maxlength

Questão 50

Questão
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.)
Responda
  • touchcancel
  • touchstart
  • touchend
  • touchmove

Questão 51

Questão
Which three statements describe cookies? (Choose three.)
Responda
  • 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.

Questão 52

Questão
Which two terms represent interfaces in the File API? (Choose two.)
Responda
  • Font
  • Blob
  • Keygen
  • FileList

Questão 53

Questão
Which two semantic tags are used to define layouts in HTML5? (Choose two.)
Responda
  • <footer>
  • <head>
  • <progress:
  • <section>

Questão 54

Questão
Which two HTML5 tags format text content only? (Choose two.)
Responda
  • <map>
  • <strong>
  • <canvas>
  • <em>

Questão 55

Questão
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>
Responda
  • absolute
  • static
  • fixed
  • relative

Questão 56

Questão
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?
Responda
  • <input id="txtValue" type-"text" pattern="/#" />
  • <input id="txtValue" type="number" />
  • <input id="txtVa!ue" type="integer" />
  • <input id="txtValue" type="text" required="required"/>

Questão 57

Questão
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?
Responda
  • 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.

Questão 58

Questão
Which code shows the correct way to nest tags in HTML5?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 59

Questão
Which JavaScript method is used to draw a circle on a canvas?
Responda
  • ellipse
  • circle
  • bezierCurveTo
  • arc

Questão 60

Questão
Which code fragment will display an image file while the video is downloading?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 61

Questão
Which three generic font family names are valid values of the font-family property in CSS? (Choose three.)
Responda
  • cursive
  • system
  • serif
  • fixed
  • fantasy

Questão 62

Questão
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.)
Responda
  • universal selector
  • element type selector
  • pseudo-class
  • attribute selector
  • comment

Questão 63

Questão
When applied to an image, the CSS float:right property:
Responda
  • 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.

Questão 64

Questão
Which CSS3 code segment styles the text color of EM elements to be red and semi- transparent?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 65

Questão
Which term describes the canvas API?
Responda
  • xml-based
  • vector-based
  • retained-mode
  • immediate-mode

Questão 66

Questão
Which CSS position value is used to position an element relative to the browser window?
Responda
  • position: relative;
  • position: absolute;
  • position: static;
  • position: fixed;

Questão 67

Questão
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.)
Responda
  • localStorage.key(0);
  • localStorage.setItem("name", nameData);
  • localStorage.clear();
  • localStorage.removeItem("name");
  • localStorage.getItem("name");

Questão 68

Questão
You write the following JavaScript code. (Line numbers are included for reference only.)
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 69

Questão
Your HTML5 code includes this code segment:
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 70

Questão
Which JavaScript method allows you to register multiple handlers for a single touch event?
Responda
  • dispatchEvent
  • initUIEvent
  • addEventListener
  • initEvent

Questão 71

Questão
When you are working with the path API, what is the purpose of the clip method?
Responda
  • 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

Questão 72

Questão
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?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 73

Questão
When you are using the GeoLocation API, which two arguments does the getCurrentPosition function utilize? (Choose two.)
Responda
  • success callback
  • MAC address
  • browser type
  • ip address
  • failure callback

Questão 74

Questão
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.)
Responda
  • THEAD
  • TH
  • OPTGROUP
  • FIELDSET
  • COLGROUP

Questão 75

Questão
Which HTML5 tag is used to mark text that has been added to the original document?
Responda
  • <q>
  • <pre>
  • <ins>
  • <i>

Questão 76

Questão
Which HTML5 code fragment shows a way to validate numeric input as having a value from 1 to 100, inclusive?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 77

Questão
Which element should you use to rotate an SVG square?
Responda
  • path
  • ANIMATETRANSFORM
  • ANIMATEMOTION
  • AREA SHAPE

Questão 78

Questão
Which three events are valid for the HTML CANVAS element? (Choose three.)
Responda
  • scroll
  • mouseup
  • blur
  • datareceived
  • hover

Questão 79

Questão
Which code fragment will display the Play and Pause controls in the audio interface?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 80

Questão
You write the following code. (Line numbers are included for reference only.)
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 81

Questão
Which code fragment prepares the HTML5 application to be used offline?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 82

Questão
You need to retrieve a value from local storage by using the key "aardvark." Which code fragment should you use?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 83

Questão
What value does the following JavaScript code fragment store into the variable num? varnum = localStorage.length;
Responda
  • 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

Questão 84

Questão
Which two touch gestures require a multi-touch device? (Choose two.)
Responda
  • hold
  • tap
  • pinch
  • spread

Questão 85

Questão
In HTML5, the autofocus attribute:
Responda
  • 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.

Questão 86

Questão
Which two tags are used with the HTML5 TABLE element? (Choose two.)
Responda
  • <body>
  • <tfoot>
  • <td>
  • <head>

Questão 87

Questão
Which CSS3 code segment styles the text color of EM elements to be red and semitransparent?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 88

Questão
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?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 89

Questão
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.)
Responda
  • Static
  • absolute
  • fixed
  • relative
  • inherit

Questão 90

Questão
When content from a flow is loaded into a region, overflowed content:
Responda
  • 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.

Questão 91

Questão
Which CSS3 code fragment rounds the corners of a border?
Responda
  • border-image: 50px;
  • border-clip: 50px concave;
  • border-radius: 50px;
  • border-clip: 50px;

Questão 92

Questão
Which two CSS properties can be used to position multiple HTML elements next to one another? (Choose two.)
Responda
  • display
  • position
  • overflow
  • float

Questão 93

Questão
Which CSS3 code fragment will style only the external links in an HTML document?
Responda
  • Option A
  • Option B
  • Option C
  • Option D

Questão 94

Questão
Which three code fragments define an HTML input control? (Choose three.)
Responda
  • Option A
  • Option B
  • Option C
  • Option D
  • Option E

Semelhante

CET_TARDE - MTA HTML5 Application Development Fundamentals 1
Hawerth Castro
CET_TARDE - MTA Mobility and Devices Fundamentals 1
Hawerth Castro
CET_TARDE - MTA Windows Server Administration Fundamentals 0
Hawerth Castro
CET_TARDE - MTA Windows Server Administration Fundamentals 1
Hawerth Castro
CET_TARDE - MTA Windows Server Administration Fundamentals 3
Hawerth Castro
CET_TARDE - MTA Windows Server Administration Fundamentals 4
Hawerth Castro
CET_TARDE - MTA Windows Server Administration Fundamentals 2
Hawerth Castro
CET_TARDE - MTA Software Development Fundamentals 1
Hawerth Castro
CET_TARDE - MTA Software Development Fundamentals 2
Hawerth Castro
CET_TARDE - MTA Software Development Fundamentals 4
Hawerth Castro
SALESFORCE DEV-401 Certification Evaluation 1
Hawerth Castro