Docsity

Web Development Applications Post-Assessment: Multiple Choice Questions, Exams of Information Technology

Toggle sidebar
bg1
1 /
13
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 server-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;
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
8. Kate has created a complex script that she wants to attach to multiple HTML files, but she also wants to add a
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Web Development Applications Post-Assessment: Multiple Choice Questions and more Exams Information Technology in PDF only on Docsity!

1 /

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 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 server-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; 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

8. Kate has created a complex script that she wants to attach to multiple HTML files, but she also wants to add a

2 / simple script to only certain sections of one page. What must she do to apply both scripts?: She must use separate

4 /

23. 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 navigation bar at the top of the home page so users can see new topics without scrolling

24. Which CSS3 property can you use to apply a shadow effect to text?: -

text-shadow

25. Consider the following code:

CSS file: .right { text-align: right; } HTML file: Right-aligned heading level three

Right-aligned paragraph

This code shows an example of what?: The class selector

26. To allow several files to be selected at once with the File API, use the:: mul- tiple attribute

27. Which scripting language is most commonly used within Microsoft's pro- prietary programs, such as Word

and Excel?: VBScript

28. In an article about using inline validation in HTML5 forms, Maik reads that users typically find these forms

to be easier and faster to complete. What feature on inline validation would cause this result from form users?:

5 / Users can resolve errors as they go along and submit the completed, validated form just once

29. What is the term for a relatively small application developed exclusively for mobile devices?: App

30. Which of the following methods returns a value in the form of a text string?: prompt()

31. You want to create a simple click-to-call link on your mobile Web page, so that users can easily make a

phone call with one click. Which line of code will add this feature?: Call Us Now

32. Consider the following Cascading Style Sheets (CSS) rule: body {color: #008080;}

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

33. 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 de- termine 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:: -

transform-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 year Birth = "1956"; What variable data type does this snippet of code represent?: String

7 /

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

46. Which statement about global variables is true?: If you declare a global variable, you can access its value

from any function or script block on that page

47. What is one advantage to using JavaScript instead of HTML5 to validate an input field that is requesting

the user to input an e-mail address?: It offers more browser support

48. The CSS3 appearance property can be used to make an element:: look like a button

49. Stanley is the senior developer of apps for an organization that is con- sidered to be at the cutting edge of

mobile-device technology. Which of the following should Stanley use to create apps for mobile devices?: HTML APIs

50. Probably the most important rule for designing any Web site is:: Give your users what they want, when they

want it

51. JavaScript makes extensive use of objects. What is the term for the various attributes that can be assigned to

an object?: Properties

52. A Web designer who assigns percentage values to elements using the HTML structural elements is

using what page-layout method?: Liquid

53. 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

54. 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

8 /

55. The HTML5 datetime input type allows the user to:: choose a date and time with a GMT time zone

56. Each time a user logs on to a service, shops or conducts online business, he or she is filling information into::

an HTML form

57. 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

58. What Geolocation API method is used to retrieve the current geographic location of the user?:

getCurrentPosition()

59. Consider the following code:

var myVar = 2; myVar += "3"; What is the value of myVar after execution?: The value will be: 23

60. Which HTML element allows you to specify a pre-defined list of options for an input element?: datalist

61. 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 element?: transition

62. You are using some graphics that require WebGL for important functionali- ty 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

63. JavaScript is a scripting language. Scripting languages:: interpret and au- tomate a list of tasks that would

otherwise be executed one-at-a-time by a person

10 /

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

70. 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

71. 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

72. 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?:

73. Consider the following code:

11 /

13 / var year Birth = "1956"; What variable data type does this snippet of code represent?: String