Information Technology > QUESTIONS & ANSWERS > WGU C777 – PA Questions And Answers Already Rated 100% Correct!! (All)
What is a characteristic of a web page with responsive design? A) The ability to react to user events B) A measure of the page load speed C) The ability to resize to the screen size D) A measure o... f the page close speed The ability to resize to the screen size Which language provides dynamic content for a web page across all browsers? A) XML B) JavaScript C) HTML5 D) XHTML JavaScript Which type of content should use an <aside>? A) News feeds B) Site copyrights C) Headlines D) Navigation menus News feeds Which element should a developer use for a bulleted list? A) <ul> B) <ol> C) <dl> D) <p> <ul> What does an HTML5 code validator confirm about code? A) It contains no warnings. B) It works in every browser. C) It complies with a standard. D) It follows best practices. It complies with a standard. A web developer needs to play an audio file endlessly. The developer writes the following HTML code: <audio> <source src = "media/audio.ogg" type="audio/ogg" /> </audio> Which attribute should this developer use? A) controls B) autoplay C) loop D) src loop Which attribute is used to display an image inside a <video> element before the video starts playing? A) src B) img C) type D) poster poster Which style sheet code defines the 18-pixel Arial font for all level two headers? A) h2 { font-family-: Arial; font-weight: 18px; } B) .h2 { font-name: Arial; font-size: 18px; } C) h2 { font-family: Arial; font-size: 18px; } D) .h2 { font-name: Arial; font-weight:18px; } h2 { font-family: Arial; font-size: 18px; } Given the following CSS code: body { color : white; } Which part of an element is affected by the color property? A) Text B) Border C) Background D) Shadow Text What should be added first when embedding CSS in a single web page as an internal style sheet? A) A <style> element to the <head> section B) A <head> element to the <style> section C) Declarations within a <style> </style> block D) Declarations within a <head> </head> block A <style> element to the <head> section What is the first character a developer should use for an id selector in CSS? A) # B) : C) ; D) . # A developer has an image that needs to remain in the same place when the page is scrolled. Which CSS positioning scheme should this developer use? A) Static B) Absolute C) Relative D) Fixed Fixed A developer needs two pixels of space on the left side of content relative to the border. Which CSS property should this developer use? A) padding-left:2px; B) border:2px; C) margin-left:2px; D) float:left; padding-left:2px; A web designer reviews the following CSS3 code: #brand { font-weight: bold; } Which paragraph element will it select? A) <p class="brand">Web Design</p> B) <p id="brand">Web Design</p> C) <p style="brand">Web Design</p> D) <p id="#brand">Web Design</p> <p id="brand">Web Design</p> Which CSS selector defines an element with a class attribute equal to subject? A) #subject B) .subject C) @subject D) ::subject .subject What immediately encloses the padding in the CSS box model? A) Content B) Margin C) Border D) Table Border What is the outermost box of the CSS box model? A) Border B) Padding C) Content D) Margin Margin Which markup positions an image so that the lower part of it is even with the lower part of adjoining text? A) <img src="sample.jpg" vertical-align="baseline"> B) <img src="sample.jpg" text-align="bottom"> C) <img src="sample.jpg" padding="baseline"> D) <img src="sample.jpg" margin="bottom"> <img src="sample.jpg" vertical-align="baseline"> Which syntax for a CSS class floats images to the right? A) .floatright { float: right; margin: 7px; } B) .floatright < float: right; margin: 7px; > C) .float { floatright: right; margin: 7px; } D) .float < float: right; margin: 7px; > .floatright { float: right; margin: 7px; } Which CSS transition should be used on an image to make it ease in when a user's mouse hovers over that image? A) transition-property B) transition-duration C) transition-timing-function D) transition-delay transition-timing-function Which CSS property should a developer use to specify the bottom of a 3D element? A) transform B) perspective C) transform-style D) perspective-origin perspective-origin A web designer creates the following animation by using CSS3: #texteffect { position: relative; animation-name: scroll; animation-duration: 5s; animation-timing-function: linear; animation-play-state: running; } @keyframes scroll { from {left: 0px;} to {left: 200px;} } How does the content of the element move when the page loads? A) From left to right one time B) From left to right, repeating for as long as the page displays C) From top to bottom one time D) From top to bottom, repeating for as long as the page displays From left to right one time A web page includes the following CSS code: @keyframes anim_01 { 0% {left: 0px; top: 0px;} 50% {left: 200px; top: 0px;} 100% {left: 600px; top: 0px;} } #animation { position:relative; animation-name: anim_01; animation-duration: 4s; animation-timing-function: linear; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: running; } How often does the animation play when it is invoked? A) Two times B) Four times C) Forever D) Once Forever Given the following CSS code: div { transition-property: opacity, left, top, height; transition-duration: 5s; transition-delay: 3s } Which value determines how long the transition will last? A) 0 seconds B) 1 second C) 3 seconds D) 5 seconds 5 seconds Given the following CSS code: .box { width: 150px; height: 150px; background: red; margin-top: 20px; margin-left: auto; margin-right: auto; -webkit-transition: background-color 2s ease-out; -moz-transition: background-color 2s ease-out; -o-transition: background-color 2s ease-out; transition: background-color 2s ease-out; } .box:hover { background-color: green; cursor: pointer; } Which color does this box turn when a user hovers a mouse pointer over it? A) Green with a time delay of two seconds B) Red with a time delay of two seconds C) Green with a time duration of two seconds D) Red with a time duration of two seconds Green with a time duration of two seconds A web page has a section that contains an <aside> element. The element is always 10 pixels from the right and 50 pixels from the top of the browser. Which type of layout positioning does the <aside> element use? A) Static B) Relative C) Absolute D) Fixed Fixed Which background-size property value scales the background image to the greatest height and width that fits within the specified content area? A) cover B) contain C) percentage D) length contain The background-origin property has a value named padding-box. Which corner of the padding edge does the padding-box value set the background relative to? A) Upper left B) Upper right C) Lower left D) Lower right Upper left Which tag enables developers to include dynamic code in an HTML document? A) mark B) script C) main D) section script Why is JavaScript considered a scripting language? A) The code must be compiled. B) It is driven by events. C) It is object-oriented. D) The code must be interpreted. The code must be interpreted. Which option declares a variable called name and assigns the literal value Student to it? A) var name = "Student"; B) string name = "Student"; C) var name = Student; D) string name = Student; var name = "Student"; Which code segment declares a variable and assigns a Boolean value to it? A) var enabled = 'true'; B) bool enabled = true; C) var enabled = true; D) bool enabled = 'true'; var enabled = true; Which code segment contains a logical expression? A) if (total > 250){discount = true;} B) placeOrderAndShip(discount, total); C) var total = get(discount) + 100; D) discount = total * 0.75 + 1000; if (total > 250){discount = true;} Which code segment contains a logical expression? A) var discount = CalculateDiscount(total); B) var discount = total > 250; C) var discount = (total > 250) ? true : false; D) var discount = total; var discount = (total > 250) ? true : false; A user's information defaults onto a form. Which event triggers if the user keys in a new value in the First Name field? A) change B) reset C) unload D) abort change Which JavaScript event handler is associated with the form object? A) onclick B) onchange C) onselect D) onreset onreset What are variables that are passed to a function called? A) Arguments B) Statements C) Keywords D) Prompts Arguments What must follow the name of a function in a JavaScript function declaration? A) Script block B) Curly braces C) Calling statement D) Parenthesis Parenthesis Which method should a developer use to create a message and request user input in a text field? A) confirm B) prompt C) alert D) write prompt Given the following JavaScript: var name = "student"; Which code statement modifies the name variable so that all characters are uppercase? A) name = name.toUpperCase; B) name.toUpperCase(); C) name = name.toUpperCase(); D) name.toUpperCase; name = name.toUpperCase(); Which variable name format does JavaScript use? A) #address B) 1stAddress C) .address D) _address _address Which data type contains properties and methods? A) Object B) Null C) Function D) String Object Which document object model (DOM) method does the Canvas element use? A) beginPath() B) getContext() C) stroke() D) fill() getContext() Which technology is used to access the document object model (DOM)? A) Canvas B) CSS C) HTML5 D) JavaScript JavaScript Which JavaScript application programming interface (API) allows for the creation and manipulation of 2-D images? A) Application cache B) Canvas C) Geolocation D) Drag and drop Canvas What uses predefined code to add functionality to HTML5 pages, such as media display and manipulation, document editing, and web storage? A) Software development kit (SDK) B) Application programming interface (API) C) Document object model (DOM) D) Asynchronous JavaScript and XML (AJAX) Application programming interface (API) Given the following code: ctx.beginPath(); ctx.lineWidth = 3; ctx.fillStyle = "red"; ctx.arc(75, 75, 50, 0, Math.PI * 2, true); ctx.fill(); ctx.moveTo(0, 0); ctx.lineTo(100, 100); Which Canvas application programming interface (API) method should a developer use to add the line to the drawn path on a canvas? A) closePath() B) stroke() C) fill() D) beginPath() stroke() Which method of the Geolocation application programming interface (API) should a developer use to get periodic updates of a user's coordinates? A) getCurrentLocation() B) watchPosition() C) clearWatch() D) toString() watchPosition() Given the following markup: script function dragOver(event) { } function drag(event) { event.dataTransfer.setData("id", event.target.id); } function drop(event) { var id = event.dataTransfer.getData("id"); event.target.appendChild(document.getElementById(id)); } /script <section id="target" ondragover="dragOver(event)" ondrop="drop(event)"/> <img id="source" src="image.png" draggable="true" ondragstart="drag(event)"/> Which statement should a developer add to the dragOver function to allow the image to be dragged and dropped onto the section element? A) event.type = "acknowledge"; B) event.cancelBubble = true; C) event.stopPropagation(); D) event.preventDefault(); event.preventDefault(); Which line of code should a developer use to create an interface that can retrieve data in a client browser? A) new XMLHttpRequest(); B) new { "AjaxObject":"xml" } C) script src = "ajax" / script D) script src = "jquery-1.8.21.min.js" / script new XMLHttpRequest(); Given the following HTML code: <ul> <li>One</li> <li>Two</li> </ul> Which jQuery code segment inserts an item at the beginning of the list? A) $("ul > li").append("<li>Zero</li>"); B) $("ul").prepend("<li>Zero</li>"); C) $("ul > li").after("<li>Zero</li>"); D) $("ul").before("<li>Zero</li>"); $("ul").prepend("<li>Zero</li>"); Which HTML tag provides ways for users to enter information on forms? A) <button> B) <img> C) <input> D) <title> <input> Which HTML input type allows for mailto: address entry? A) file B) number C) url D) hidden url Which form attribute limits the number of characters for an input field? A) size B) value C) disabled D) maxlength maxlength Which element allows a developer to add a caption for a created group of items? A) <fieldset> B) <input> C) <legend> D) <label> <legend> Which attribute value presents form data to a server for processing? A) submit B) reset C) button D) url submit Which global attribute should a developer use to bind a label element to an input element? A) form B) name C) placeholder D) for for Given the following HTML: What color would you like to use? <select autofocus> <option value = "red">Red</option> <option value = "blue">Blue</option> <option value = "green">Green</option> <option value = "pink">Pink</option> </select> What happens when the page loads? A) The select element in the form takes focus. B) The red option is selected. C) The blue option is selected. D) The autofocus attribute in the form takes focus. The select element in the form takes focus. Which code segment creates input text that has its value checked against a regular expression? A) <input type="text" name="name" pattern="[a-zA-Z]"> B) <input type="text" name="name" format="[a-zA-Z]"> C) <input type="text" name="name" regex="[a-zA-Z]"> D) <input type="text" name="name" required="[a-zA-Z]"> <input type="text" name="name" pattern="[a-zA-Z]"> What is a limitation of user input validation? A) Validation detects only invalid content and misleading information. B) Validation detects only incorrect formatting and missing information. C) Users have difficulties filling out the form. D) Users make errors while filling out the form. Validation detects only incorrect formatting and missing information. Given the following markup: <input id="password" name="password" type="password" class="password" pattern=". {8,12}" required> What does the markup do? A) It generates a password key pair between 8 and 12 characters long. B) It calls a JavaScript function named password with the arguments 8 and 12. C) It allows a user to enter a password between 8 and 12 characters long. D) It executes a stored procedure named password with the arguments 8 and 12. It allows a user to enter a password between 8 and 12 characters long. Which HTML pattern attribute validates an IPv4 address? A) <input type="text" pattern="[A-Za-z]{3}"> B) <input type="text" pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"> C) <input type="text" pattern="\d{1,2}/\d{1,2}/\d{4}"> D) <input type="text" pattern="[a-zA-Z0-9]+"> <input type="text" pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"> Given the following code: <form name="Form" action="/action.php" method="post"> Name: <input type="text" name="name"> <input type="submit" value="Submit"> </form> What should a developer add or change to ensure that the form is validated when submitted? A) The method needs to be changed from post to get. B) The event handler and function should be added to the input tag. C) The event handler and function should be added to the form tag. D) The input type needs to be changed from text to submit. The event handler and function should be added to the form tag. Which unit of measurement should a developer use when designing mobile websites to ensure that content fits multiple screen sizes? A) Pica B) Percentage point C) Inch D) Pixel Percentage point [Show More]
Last updated: 2 years ago
Preview 1 out of 18 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Nov 27, 2022
Number of pages
18
Written in
This document has been written for:
Uploaded
Nov 27, 2022
Downloads
0
Views
77
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·