









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










8 O cfooter e • **** 0 ****
Jane and descnbe wants to content develop far mobile her apps? apps using the technologies contained in the "HTML5 famy " Which language in the family should Jane use to structure
and^ HTML5, describing^ CSS^ and Web^ JavaScript page condent^ are^ sometimesJavaScript^ caned is a scripting^ the^ "HTML5 language^ famty" Ihat^ or providesthe^ "Web dynamic^ development interactive^ trifecta capabilities^ *^ HTML^5 is Io^ a Webmarkup pages^ language CSS is^ used a stylo^ for structuringsheet language that provides the tormalting and hook" of a Web page or document written in a markup language The elements? developers of HTML 5 created specific elements that you can use to structure Web pages Which statement is true regarding these HTML5 structure
Explanation: Answer A is correct HTML5 structure with these CSS elements provides includean effective mheaden and simple structure snav Web «section>pages The sarticle> developers and ol HTML5 A created developer spocific can structureelements the Io defineWeb page the documentwith these elements that are easily iiterpreted and native to any HTML5-comphant browser, regardless ol whether the browser is on a mobile device laptop or tablet These This should HTML not 5 basic hinder structure your use elements of HTML5 may structure or may tags,not render but you in (^) shouldolder browsers be aware Ihat o( doit not support HTML 5, such as Internet Explorer versions prior to IE
Why is it advantageous tar developers to use good coding practices when they develop Web pages?
Good Web page coding generally involves ensuring that the content is rendered appropriately regardless of the browser used to render it To ensure this one^ type standardot^ consistent, version^ or^ tnwersal, at any given^ rendering language^ Web and^ page apply^ developors that standard^ can^ applyconsestently^ certain throughout^ practices^ tn the^ their document^ coding^ pagesFolow orW3C site^ standards^ caretully,^ arid^ choose
You needed are ioombedding accomplish audo this? in your HTML5 page and went to speaty that the audio file should play over arid over ogam without stopping. Which attribute is *** toop-"loop- B loop="autoplay" C autoplay="loop" D autoplay="autoplay-**
video^ The^ loop file willand play^ autoplay over and^ attnbutes over ogam^ are withoutcommon stooping^ to^ both^ theThe^ evideo autoplny="autoplay"^ element^ and^ the attnbutecaudio-^ elementspecifies^ Thethat^ theloopa video^ -^ loop wal automabcallyatinbute*^ specifies play thatimmedately^ the^ audio^ or upon loading
U| In CSS, what is the name for a selector, property and value all grouped together? A Declaration B Tag
D | | Rule
benetit^ T^ he^ protect of using^ manager the style^ tor^ yourgude?^ Web^ development^ project^ has^ given^ you^ a^ style^ guide^ and^ urged^ you^ to^ use^ n^ to^ create^ effective^ Web^ pages^ What^ IS^ the A jTo ensure that the site has visual consistency Io create Web pages that will vandate according to the specified DTD C To pass a stylo you apply Io one element Io al Eko elements 0 To establish a herarchical relatonshp between linked, imported, embedded and inline styles
A or styleheld guideImplementng or style manuala style isguide a set provides of standards unitormty for the in writingstyle and and/or formatting design withinof documents, a document edther and lor across general mudiple use or documents lor a specific Applying pubkcaition, the conventions organization specified refers to thein a aMty style guidefor styles helps that to youensure apply that to theono site element has visual Io be consistency,applied to all making like elements it easier to use and more professions in appearance style inheritance
You ate revlewing the style shoot code written by a colleague and notice several rules that are enclosed between the /" and "I characters What when you link the style sheet to a Web document?
If you want a particular rule in a style sheet to be ignored, you can "comment our the entry by placing it in between the r and ‘I characters
As Which a Web at the designer, following you can want you to use ensure to heap that you HTML configure elements the spacew* not around overlap each or lay HTML against etement? one another when users render your Web pages in a browser A ,__ The CSS Box Model 8 The CSS Document Objoct Model The CSS Positioning Scheme Model 0 The External CSS Class Model
I he CSS Box Model allows designers to configure the space around each HI ML element It represents each HTML element as a rectangular box Without this surrounded box HTML by tourelements rectangular would boxesoverlap that or laycan against be configured one another to create CSS space is used and to a configureborder The the tour boxes boxes The are Box the Model content is straightforwardthe padding the Each border element and the is margin
Which version of Cascading Style Sheets uses a modularized approach that enables timelier updates to the standard? 4 C CSS 8 CSS c CSS 0 CSS
CSS version 3 (CSSS) provides a modularized standard so that when changes need to be made to somnething in the specification only a particular module
Explanation: Answer A is correct
The property overtlow to indicate property that can text be has used been to hidetrimmed text thatby displaying extends beyond an ellipsis? the boundaries ot an element Which CS53 property can be used with the overfl A |__ | text-overflow 8 text-wrap C text-trim 0 text-clip
The CSS3 text overfow property specities whether text that overflows the containing element should be clipped or indicated with an ellipsis The text overflow property Is used in congunction wild the overflow property
Lily's dependng supervisor on the asked browser her usedto add to visual view itinterest Which to vendor the company prefix property Web site will by allow tilting her images to apply at ame slight transformation angle Lily knows when thethis pagetranstormation is viewed willin Chrome diner and Safari? *** i I -webkit-transform** 8 moz-transform
The weblot prefix is used to target Chrome and Safari The -moz- prefix is used with Firefox -ms- is used with Internet Explorer and -o- is used with Opera
Which CSS3animation property requres you Io change the default value otherwise no animation wa occur? A __ The animanon-duratlon property 8 The animation property The animation-play-state property
The animation-duration property specifies how long the animation wi take to complete one cycle The default is 0 seconds It no other value is specified then no animation occurs Values can be specitied in either seconds {s) or milliseconds (ms)
The outline outline of an property element? draws a line around the outsido of an element beyond the border What can you uso to create space botweon the border and the The CSS3 outtine-offset property 8 The C SS3 outbno paaoing property The CSS3 nutiine-marg^i property 0 The CSS3 outline-space property
The CSS3 outline-onset property draws an outline beyond the border edge ( e. olfsets the outline)
in JavaScript which term descndos a specific quality of a property?
B Method c Event
Values are the specific qualifies ot properties Fur instance the stalement color="ted assigns a value (red) to a property (color) of an object
Wtuich JavaScript method should you use If you want to specify a messoge string Io appear on your Wob pngo as il loads?
B The alerto method The prompto method D The confirmo melhod
You use the document wnte{) method to write the specified message stnng in the page The document write i method allows you to create text mhat ts dynamically written to the window as the script ts executed For example the code document wntef’Wedcome to my Web sdel"} will display the message in parentheses directly to the Web page as it loads Which variable data type can consist or any senes of alphanumeric characters?
0 Boolean
Expressions rely upon what to produce a value? n Operators B Classes c Objects
An operands expression in the is process a part of An a statement operand represents that is evaluated a piece as ot a data value (I eExpressions , a value) mat rely is onmanipudated various operators in some to manner store or by evauate an operator values generally manipulating
Which JavaScript event occurs when a Web page is accessed and appears in the browser?
Which JavaScript object can be affected by the cnchange event handler as value changes?
rhe onchange event handler can atfect the JavaScript select text or textarea objects the change event occurs when a user changes the value of one ot these types of form fields
In JavaScript what is the term for n named set of statements that can ;>erform n spocfic task repeatedly thiroughoxit a program as needed?
tn JavaScrpt, a function is a named set of statemonts that portormns a task 01 calculates a value F unctions onable you tn wio code and placo il into a singla unit procedure that can or performfunction a Anspeofic argument task repeatedlyalso called throughout a parameter, the isprogram a value (^) orA callingexpression statement containing is a statement data or code that that transfers is passed program on to executiona function to or a proceduresubroutine
the naming rules that apply to function names stipulate that a function name must begin with
Function a dolar sign names (SI most begin with a letter underscore or dollar sign character Subsequerit characters can be letters, numbers, underscore I _ ) characters ot
Consider the following code
Which code will convert the versionNumber vanable to the integer data type? A versionNumber = parselnt versionNumber. 10) versionNumber = versionNumber parselntO: versionNumber tolnto; D versionNumber = toint(versionNumber) Explanation: Answer A is correct The function parselntO converts a string to its integer equivalent
Which type of JavaScript error is typically a syntax error?
Load commands -lime errors Logic (commonly errors are canedmathematical commpilor errors, or Interpreter casting errorsonors) errorsare typically in proper syntax command errors usageRun limo or errors errors in aro the typically structure caused ot me byscript mmpropor Casting use errors nt occur when an integer is changed into a character (or vice versa) inadvertently
Which of the following is a function of the HTML5 File API? A Create preview thumbnail images during image uploads
B Locate the position of the client system
Move files using a drop zone
o Validate HTML5 code
The HTML5 APIs can be used to create A [ epps for mobile devices databases on remote servers embedded and externa* style sheets D scnpts that send e-mail messages.
What does the AppCach mandest me contain?
The AppCactwe manifest Mo contains a list ot the rosources ihat should be cached by the trowser for omine access This list can inckide links to CSS amt JavaScript riles but not the actual code
The HTML5 Drag-and-Drop API allows users to drag elements to another location on a Web page or to an external application Which attribute enable an eloment to be moved? *** __ _. draggabio-"true" 0 id-"araggable" onclicke"drag" D draggabtestyes"**
You anchor define elemerits an element ate draggable as able to by be default dragged by setting its draggable attribute to the value "true" In most browsers, text selections, image elements and
To sand tho browsor back onie page ui the user's browsing history using th HTML 5 History API you should use which mathod?
The (positive history number) back ormethod backward of the (negative History APInumber) sends the the speckled browser numberback one ot pagepages in m Ihe the browser history historywhere (^) theThe caurrent history page go!) methodis history sends 0o(0) theThe browser history forward pushState () method changes the URL in the browser window by adding a URL to the history stack
Which HTML5 element can you use to add security to a form tn a Web page by generating a key pair?
and does not ofter any encryption testures
Calculations in a Web page form are usually performed a by a script B using tire element
n m the CSS
8 autofocus C placeholder 0 formaction
The required attribute requires user input in the neld before the form can tie submitted The autotocus altrbute activates the sinput- held when the page loads user input The whenplaceholder the torm attnbute is submitted provides a hint to the user of the input value expected in the einput- held Tire formaction attrbute specifies where to send
Adam provide is mecreating best servicea form torto hishis customersWeb site HeAdam wants decides visitors to to use the inline site totaouavalidation specific to verity information cntical intormation and make Whchsure he of hasthe thefollowing correct is (^) anintormation example to at a held that should be vandated?
Product Mem field tor correct purchase selections
Are^ important the dale^ input formats^ in^ forms valid?^ that Are^ shoud all required^ be^ validated fields^ include completed?^ the^ following^ Are^ e-mad^ addresses^ in^ a^ vand^ basic^ tormat?^ Do^ the^ numeric^ fields^ contain^ numbers'!
these^ In^ a^ Web input^ form types^ he rsWhat^ creating attribute^ Sergik could^ uses Sergik^ the^ HTML5use with^ "date* the 'dale*^ and^ Femairand "emar^ input inputtypes types^ A^ co-worker to ensure^ explains mat even^ to^ Sergikolder browsers^ that^ not^ allwill^ browsers be able tomay recognze^ recognize the inputs
The autofocus attribute The requsred attribute The piacehoMer attribute
The attribute pattern rs present attribute then is hetpful the text for inputovercoming is still required MTML5 Iobrowser match supportthe pattern issues Browsers treat any Input type they do not Support os text I! the pattern
Which statement is true regarding mobile apps? A They are always open-source programs. B They are designed for mobile device browsers. They run on specific mobile operating systems D They are always developed with HTML5.
A a Weo application designed for a specific mobile operating system B a Web site designed for viewing on mobile device browsers a Web sde that must be downloaded and installed on the device D a browser designed for a much smaller screen sae than desktop versions
A mobile app rs an application not a site ft runs on a specific mobile operating system such as Android Windows Phone or iOS Each mobile app must be downloaded desktop browsers and anestabod except (^) theyBy contrasi, are designed a mobdo tor aWeb much sdte smaller is creatod screen for viewingsize on mobile dovico browsers Mobile device bromwsoss function similarly Io
Your images Wob are dovoloprnontflund How can team you is do using tins? Rosponsavo Wob Dosign (RWD) tochniquos to dovolop Iho corrpany’s now site You aro diraclod Io onsuro that nil «DVerity that each image Ale's size is speciied using percentago values instead ot pixel values Verily that each image Ales see is specified using pixel values instead ot percentage values Create a CSS query to determine the type ot device viewing the page before loading the images Ensure that me page can only be viewed by mobile browsers which can resize pages pcoportionally
Explanation: Answer A is correct Responsive and media queries Web Design F luid (RWD)images isadapt a Web to screendesign (^) sizeapproach and do to notcreate exceed sites the that widih adapt of to the many screen different You candevices implement by using tlund grid-based images by layouts, specitying resizable a percentage mages tor limit each the (^) scopeimage ofinstead your page ot a pixel design size to (^) aMedia speciic queries range are without a CSS3 changing technique me bypage's which content you check Frameworks the type atare meda temptates or device or boderplates that is using for (^) responsivea page, and page then deskgns