Docsity

C777 Web Development Applications Post-Assessment, Exams of Advanced Education

Toggle sidebar
bg1
1 / 16
C777 Web Development Applications Post-
Assessment
1. Which of the following statements about HTML5 is true?: HTML5
does not require
third-party plug-ins for video and audio content
2. What is the purpose of using the <output> element in a Web form?:
It displays the
result of a calculation in the form
3. Why are syntax errors so common when writing JavaScript
code?:
Because
JavaScript is case-specific
4.
What CSS3 property can be used to create rounded corners on
an image or
other element?: border-radius
5.
What type of JavaScript expression evaluates to true or false?:
Logical
6.
Which statement is true about JavaScript?: JavaScript is widely used for client-
side and serv-
er-side scripts
7.
You have created a Web page using the HTML5 <nav> structural
element to define a navigation area. Consider the following external
style sheet code:
nav {
float:left;
width:165px
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download C777 Web Development Applications Post-Assessment and more Exams Advanced Education in PDF only on Docsity!

1 / 16

C777 Web Development Applications Post-

Assessment

  1. Which of the following statements about HTML5 is true?: HTML does not require third-party plug-ins for video and audio content
  2. What is the purpose of using the element in a Web form?: It displays the result of a calculation in the form
  3. Why are syntax errors so common when writing JavaScript code?: Because JavaScript is case-specific
  4. What CSS3 property can be used to create rounded corners on an image or other element?: border-radius
  5. What type of JavaScript expression evaluates to true or false?: Logical
  6. Which statement is true about JavaScript?: JavaScript is widely used for client- side and serv- er-side scripts
  7. You have created a Web page using the HTML5 structural element to define a navigation area. Consider the following external style sheet code: nav { float:left; width:165px

2 / 16

background:#d8d8d8 url(background.gif) top right; height:662px; } Where on the page will the image (background.gif) appear?: At the top right of the nav section

  1. Kate has created a complex script that she wants to attach to multiple HTML files, but she also wants to add a simple script to only certain sections of one page. What must she do to apply both scripts?: She must use separate 4 / 16 leaves from a link, image or other visible element on the page?: mouseout

  2. Which CSS3 selector can you use to apply a style to the first paragraph of every container in a Web page?: p:first-of-type

  3. What is another common name for the technique of requesting and reusing data using the JavaScript XMLHttpRequest object with HTML pages and CSS?: - AJAX

  4. To allow users to change the size of elements on a Web page, such as a element, you can add which CSS3 property?: resize

  5. Which of the following is a JavaScript event that occurs when a page opens in the browser?: load

  6. Which DOM method is used by the element to return a context object, which provides properties and methods that can be used to draw and manipulate images on the canvas?: getContext()

  7. What HTML5 form element provides users with a drop-down menu of pre-de- fined choices and an autocomplete feature that filters choices while they type?- : The element

  8. You are creating a mobile version of a community discussion site for busy moms. Users post questions and other topics for discussion. Some days there are as many as 20 new discussion threads. Considering your audience, what might be the best way to lay out navigation elements on the home page?: Create a small, collapsible

5 / 16 navigation bar at the top of the home page so users can see new topics without scrolling

  1. Which CSS3 property can you use to apply a shadow effect to text?: text-shadow
  2. Consider the following code: CSS file: .right { text-align: right; } HTML file: Right-aligned heading level three

7 / 16 Which is the "declaration" portion of this rule?: The portion inside the curly braces

  1. What is the purpose of using the CSS3 h3 ~ p selector?: To select all

elements that are preceded by an

element 34. Many markup code validators exist, but the most authoritative is the W3C Markup Validation Service. How does the W3C Markup Validation Service deter- mine to what HTML standard to validate your code?: It reads the declaration on an HTML page and validates according to the specified DTD 35. To change the position of a transformed element in CSS3, you use the:: trans- form-origin property 36. To position an element behind another element, you can assign a negative value to:: the Z-index property 37. Consider the following code: var yearBirth = "1956"; What variable data type does this snippet of code represent?: String 38. Which statement about modern Web design is true?: The design of mobile Web pages requires some ditterences from pages designed for desktop computers 39. You are creating a Web-based mapping application. What information can you obtain by using the HTML5 Geolocation API in your application?: The latitude and longitude of a user's device

8 / 16

  1. What will occur if you define all your functions in the section of your HTML page?: The functions will load when the browser reaches the script point in the page or when the appropriate user event occurs
  2. How can you override a particular style in an HTML element if the HTML document is linked to a style sheet?: By applying an inline CSS style attribute to the element whose style you want to override
  3. Responsive Web Design uses three main techniques to develop responsive pages. Which technique allows you to specify CSS styles based on viewport size?: Media queries
  4. What is the name for Microsoft's implementation of JavaScript?: JScript
  5. Which example is a valid variable name in JavaScript?: _firstName
  6. Consider the following code:

10 / 16

  1. Using a linked style sheet, you have modified the look and feel of an HTML page. Because of the concept of inheritance, you notice that:: the rules you applied remain in force unless explicitly overruled using other styles
  2. Anatoly is using the CSS position property to position block- level elements on his Web pages. By specifying the "absolute" positioning scheme, Anatoly is ensuring that the element to which he is applying the position property will:: float above the document and can be positioned as needed
  3. The HTML5 datetime input type allows the user to:: choose a date and time with a GMT time zone
  4. Each time a user logs on to a service, shops or conducts online business, he or she is filling information into:: an HTML form
  5. Which choice correctly describes two benefits of Cascading Style Sheets (CSS)?: CSS provides a consistent look and feel to site pages, and simplifies change management issues
  6. What Geolocation API method is used to retrieve the current geographic location of the user?: getCurrentPosition()
  7. Consider the following code: var myVar = 2; myVar += "3";

11 / 16 What is the value of myVar after execution?: The value will be: 23

  1. Which HTML element allows you to specify a pre-defined list of options for an input element?: datalist
  2. Which CSS3 property can be used to apply a delay effect when an element changes from one style to another, such as when a user hovers over an ele- ment?: transition
  3. You are using some graphics that require WebGL for important functionality on your mobile site. Which statement describes the support you can expect or provide for this?: You can provide users with a link to test for WebGL support and obtain a supporting browser
  4. JavaScript is a scripting language. Scripting languages:: interpret and automate a list of tasks that would otherwise be executed one-at-a-time by a person
  5. Which of the following statements about validating markup is true?: If a code validator finds an error, the remaining code on the page may fail validation, even if the remaining code is actually valid
  6. What type of data can be returned by the XMLHttpRequest object?: Any type of textual data
  7. What three technologies used together provide Web pages that easily adapt to smartphones, tablets, gaming devices and smart TVs, as well as to traditional computers?: HTML5, Cascading Style Sheets (CSS) and JavaScript
  8. Where can you find information about the latest status of HTML and CSS3 browser support?: On third-party Web sites such as CanIUse.com and Wufoo.com

13 / 16 this.v1 = "Green"; alert (this.v1); } f() ; alert (v1);

What is the expected result when this script is run in the browser?: Two alert boxes, both displaying the message Green

  1. When you load a page containing your JavaScript code into a browser, how can you ensure that your functions will be available before any user event can occur that might call a function?: Define all your functions in the section of your HTML page
  2. The DOM is a standard that enables you to manipulate HTML elements and attributes in a Web document. What do you use to work with the DOM?: A scripting language such as JavaScript
  3. You are creating an HTML5 form. You want the form to be able to automati- cally suggest and complete input as the user enters the information into fields. Which code will correctly add this feature?:
  4. Consider the following code:

14 / 16

Which two attributes' values must match each other in order to bind the element with the element?: The list attribute and the id attribute

  1. Selena is embedding a video in her HTML5 page. Which attribute should she use to identify the location and file name of the video?: The src attribute
  2. Your form has a field for users to enter an e-mail address. You use to create the field. What other HTML attributes could you use with the "email" input type to most effectively ensure that users do not inad- vertently enter an extra space, an invalid format or an irrelevant answer?: pattern, placeholder, required

16 / 16

  1. Which JavaScript object can trigger the onerror event handler?: image
  2. You have created a new Web site for your company, and you want to add a script so that a "welcome" pop-up box appears to the user as soon as he or she launches the site. Which JavaScript method should you use to display the message?: The alert() method
  3. If the JavaScript operator + is used in an arithmetic expression, what is the result?: The expression treats + as an addition operator and sums the values
  4. You are using the element to embed a video in your HTML5 page. Which attribute should you use if you want to identify an image to be displayed until the Play button is clicked or while the video is downloading?: The poster attribute
  5. Terri is filling in a form on a Web site. She notices that as she types responses in the form fields, suggestions are made that she could accept for the input. The element is implementing which of the following attributes?: autocomplete
  6. Consider the following code: var yearBirth = "1956"; What variable data type does this snippet of code represent?: String