Test3 Flashcards

1
Q

Methods for implementing video content on the Web are generally proprietary, use a variety of different plug-ins, and mark-up that is used to embed these elements in one browser doesn’t always work in all of the others.
(true or false )

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following is not a widely-supported video format:

a. MP3  
b. MP4 
c. WebM      
d. Ogg
A

a. MP3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following is not true when embedding a video in a web page
:
a. the appearance of video controls has been standardized across all browsers so that the usage of the controls property is no longer necessary

b. it is a good idea to use height and width attributes with the  tag so that the browser will know exactly how much screen space to allocate 
c. place some suitable text between the opening and closing  tags to display in browsers that do not support it
d. quote/embed multiple file sources to cover any file type not supported, thereby avoiding the need for browser sniffing
A

a. the appearance of video controls has been standardized across all browsers so that the usage of the controls property is no longer necessary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. You can check for browser support for a particular codec by using which method?
    a. “canPlay( )”
    b. “playType( )”
    c. “canPlayType( )”
    d. “playMediaType( )”
A

c. “canPlayType( )”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following is not a widely-supported audio format:

a. MP3  
b. MP4 
c. WAV      
d. Ogg
A

b. MP4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Using the “” tag simply allows you to define a region on your web page by setting its height and width parameters; everything else related to creating its graphical content is done through the use of JavaScript.
(true or false )

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Just about any element can be made draggable; all that’s required is to set its isDraggable attribute (true or false )

A

False - “ the correct attribute is (draggable )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. Which of the following is not true when working with local storage:
    a. large amounts of data can be stored within a User’s browser without any negative effects on the web site’s performance
    b. this storage type is more secure and faster than through the usage of cookies
    c. a web page can access any data that it has stored as well as data stored by any other page that has been accessed and stored through the browser in use
    d. data is stored in key/value pairs
A

c. a web page can access any data that it has stored as well as data stored by any other page that has been accessed and stored through the browser in use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Each DOM node has a property called ________ which is actually an object containing information about the CSS styles pertaining to its parent node.

a. stylesAttrib  
b. styleAttrib 
c. styles      
d. style
A

d. style

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. Using JavaScript to access an element’s style properties works equally well with all applied styles whether they originate as either inline, embedded or imported/linked styles.
    (true or false )
A

False - This only works with inline styles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The DOM style object is read-only, and as such, it can only be used to return a style property’s current value; it cannot be used to set or apply new property values.
(true or false )

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which of the following is the equivalent to the following code: heading1.style.color ?

a. heading1.style(“color”)   
b. heading1.style[“color”] 
c. heading1.styles(color)      
d. heading1.styles[color]
A

b. heading1.style[“color”]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

When accessing style properties such as font-size through JavaScript, the hyphen must be removed and camel case syntax rules applied. (true or false )

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following is the equivalent to the following CSS style code: text-align ?

a. "textalign"   
b. "Textalign" 
c. "TextAlign "     
d. "textAlign"
A

d. “textAlign”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which stylesheet property allows you to turn individual stylesheets on and off in your JavaScript code?

a. active   
b. enable 
c. disabled      
d. on
A

c. disabled

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. Using JavaScript, either the class or the className attribute can be used to change a CSS class property value in your web page code, but it is recommended that the class attribute be used whenever possible because some browsers have issues when trying to set a new value when using the className attribute. (true or false )
A

False (these are backwards )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

You can access the total number of stylesheets on your page by using the following:

a. document.styleSheet.length   
b. document.stylesheet.length 
c. document.styleSheet.count       
d. document.stylesheet.count
A

a. document.styleSheet.length

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Vendor-specific CSS extensions are also known as _________.

a. webkits  
b. vendorkits   
c. CSSkits
d. all three are correct because each browser uses a different name for this technology
A

a. webkits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q
  1. When applying a background image to a web page, the keyword _________, tells the browser to make the image cover the entire container – even if it has to stretch or trim the image.
    a. fill
    b. grow
    c. cover
    d. stretch
A

c. cover

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q
  1. The ______________ method calculates the final way an element will be displayed after applying all the styling rules applicable to that element whether they are inline, external, or inherited from container elements.
    a. “loadComputedStyle( )”
    b. “getComputedStyle( ) “
    c. “calculateComputedStyle( )”
    d. “setComputedStyle( ) “
A

b. “getComputedStyle( ) “

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

When a browser supports a specific CSS property, it returns a string value when the property is requested from a page element; however, this is an empty string if the value has not yet been set.
(true or false )

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

When a property value is requested from a page element, if the browser doesn’t support the property, a vale of null is returned.
(true or false )

A

False - ( the value returned is “ undefined “

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Every e-commerce web site must contain cookies or else the site will not function correctly and the site will not be indexed by search engines spiders/robots. T F

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Cookies have a limited number and size/capacity that can be stored per domain; which of the following statements reflects the correct limitations:

a. 20 cookies per domain and/or a total of 4MB of cookie information  
b. no limit to the number of cookies per domain and/or a total of 4KB of cookie information
c. 30 cookies per domain and no limit to the amount of cookie information that can be stored per domain 
d. 20 cookies per domain and/or a total of 4KB of cookie information
A

d. 20 cookies per domain and/or a total of 4KB of cookie information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
25. Why is the http protocol sometimes referred to as stateless ? a. Once the server has delivered the web page using this protocol to your browser, it considers the transaction complete and retains no memory of it and therefore cannot be directly referenced again. b. The protocol is not bound to any particular scripting language and can be used to transmit any of them without special plug-ins or additional downloads c. It is an open-source protocol and can be re-written and adapted for any special use when transmitting information across the internet. d. This protocol doesn’t have any actual properties or set formatting and only exists in an “adaptive” state meaning that it is frequently altered and updated by the various browsers as they deem necessary.
a. Once the server has delivered the web page using this protocol to your browser, it considers the transaction complete and retains no memory of it and therefore cannot be directly referenced again.
26
26. Which of the following is NOT a use for cookies: a. remembering user log-in information b. authenticating the User’s password against the stored database value c. remembering the User’s last visit d. keeping track of shopping cart items while the User continues to shop
b. authenticating the User’s password against the stored database value
27
Users have cookies turned on by default once they install a browser, and they cannot be turned off once activated (true or false )
False
28
28. Cookies in JavaScript are stored and retrieved by using the ________ property of the _______ object. a. cookies ; document b. cookies ; window c. cookie ; document d. cookie ; window
c. cookie ; document
29
Each cookie is essentially a text string consisting of: a. a variable and a system-assigned value pair b. a name and a value pair c. some executable JavaScript code that reads the browser’s characteristics d. it can be all of the above depending upon its placement in your code
b. a name and a value pair
30
Which of the following is the hexadecimal equivalent for the ASCII space character: a. %40 b. #40 c. %20 d. #20
c. %20
31
Web browsers combine all of the available cookies into a single string-like property consisting of individual cookies separated by __________. a. double quotes b. commas c. colons d. semicolons
d. semicolons
32
Cookie values may not include certain characters; which of the following is NOT a disallowed character: a. hyphens b. commas c. whitespaces (tabs and spaces) d. semicolons
a. hyphens
33
33. To store a cookie’s value, you can use the _________ function to first encode it by converting any non-ASCII character in the string to its equivalent two- or four-digit hexadecimal format; the _________ function can then be used to later recover the cookie’s original value. a. encode( ) ; unencode( ) b. convert( ) ; restore( ) c. transform( ) ; recover( ) d. escape( ) ; unescape( )
d. escape( ) ; unescape( )
34
Which of the following group of characters are usually NOT encoded from the standard ASCII format into their hexadecimal equivalents: a. % @ / \ . + - b. * @ - _ + . / c. * % _ + / - \ d. # @ + - . \ %
b. * @ - _ + . /
35
35. The _______ attribute tells the browser to which domain the cookie belongs. a. location b. URL c. domain d. path
c. domain
36
When working with cookies, assigning the domain attribute is optional (true or false )
True
37
You cannot set the domain attribute to any domain outside of the one containing your web page. (true or false )
true
38
The _____ attribute lets you specify a directory where the cookie is available. a. location b. URL c. domain d. path
d. path
39
39. When working with the path attribute, assigning it’s value to “ / “, means: a. the cookie is only applicable to the pages saved in the site’s root folder b. the cookie is valid for the entire domain c. the cookie does not have a set value and must be assigned by the user d. the path is relative to the page calling up the cookie
b. the cookie is valid for the entire domain
40
. Each cookie has an expires date after which time the cookie needs to be either manually deleted or reset. T F
F
41
41. The expires date for a cookie should be written in _________ time. a. UTC b. DST c. CST d. UPC
a. UTC
42
42. If no expires date value is set for a cookie, it will only last as long as the current browser session and will be automatically deleted when the browser is closed. T F
T
43
43. To write a new cookie, you simply assign a value to ________ containing the attributes that are required. a. window.cookie b. window.cookies c. document.cookie d. document.cookies
c. document.cookie
44
44. To delete a cookie, all you need to do is: a. close the browser window since all cookies only last as long as the current browsing session is active b. you do not need to do anything as cookies are automatically deleted after 30 days if you do not reset them before that time expires c. apply the delete( ) function to the cookie’s value d. set it with an expiration date before the current day
d. set it with an expiration date before the current day
45
45. Cookies can be set up to store multiple pieces of data in one string. T F
T
46
46. The function to read the value of a cookie relies heavily on JavaScript’s ________ string method. a. substr( ) b. concat( ) c. split( ) d. indexOf( )
c. split( )
47
47. The character that is used to separate multiple values in a single cookie string is known as a(n) ___________. a. delimiter b. escaped character c. hexadecimal character d. semi-colon
a. delimiter
48
48. One of the advantages in using style code instead of JavaScript to create graphic enhancements on a web page is that it is well supported across browsers and it isn’t usually turned off by the User. T F
T
49
49. It is not always good to rely heavily on using JavaScripts in your web pages as they can sometimes affect the way pages are indexed by the search engine robots because they do not always correctly index web page content generated by JavaScript. T F
T
50
50. When adding comments to your code, they should be added sensibly; this means that they should be placed at critical places and they should heavily detail how the language works and place a lot of emphasis on syntax explanations and less on the thought processes and algorithms that lie behind the code. T F
F
51
51. Which of the following statements is NOT correct regarding the addition of comments to your JavaScript code: a. They should be added as a prologue to any object or function containing more than a few lines of simple code. b. They should be added whenever the original author can pass on special knowledge that the reader is unlikely to know. c. They should be added as inline comments whenever the code would otherwise be confusing or prone to misinterpretation. d. all of the above are correct
d. all of the above are correct
52
52. Naming JavaScript methods and properties should be based on choosing meaningful, easily understandable names that relate to the object’s use or purpose. T F
T
53
53. In JavaScript, it is not a good idea to reuse code; it can lead to confusion and redundancy; it is always preferable to write new code from scratch whenever possible for originality and uniqueness. T F
F
54
54. Which of the following is NOT one of JavaScript’s recommended naming conventions: a. Constructor functions for instantiating objects have the name in all lowercase using no caps at all b. Capitalization provides a reminder that the new keyword needs to be used c. When two or more words are used in a name, the words are all combined into a single sting containing no spaces and starting with the first word in lowercase and with all of the following words written with their starting letters in uppercase ( ie. bigValueCost ) d. Constants are named in all uppercase
a. Constructor functions for instantiating objects have the name in all lowercase using no caps at all
55
55. Collecting your code into modules such as functions and objects that you can reuse repeatedly throughout your code is known as ___________. a. replication b. abstraction c. compaction d. duplication
b. abstraction
56
56. The process by which a User whose browser lacks the required technical features to make full use of a web page’s design is known as ___________. a. interpolation b. abstraction c. site deprivation d. graceful degradation
d. graceful degradation
57
57. In JavaScript, the semantic layer should only contain HTML components that identify page elements as being paragraphs, headings, etc., and it should NOT contain any information as to the page’s appearance. T F
T
58
58. The behavioral layer is where the JavaScript code should be emphasized; if it is applied correctly, it will offer more functionality to those who can use it, without prejudicing the abilities of the preceding layers. T F
T
59
The behavioral layer is where the JavaScript code should be emphasized; if it is applied correctly, it will offer more functionality to those who can use it, without prejudicing the abilities of the preceding layers. T F
F
60
When your JavaScript program encounters an error of some type, a warning/error will be created inside the JavaScript interpreter; how it is displayed depends on the browser being used and the user’s settings. T F
T
61
61. When dealing with JavaScript errors, the ______ statement allows you to attempt to run a piece of code, and if an error is found; the ________ statement will allow you to intervene as to how to handle the error before an error message is sent to the User. a. find ; try b. try ; catch c. run ; catch d. run ; find
b. try ; catch
62
62. Which of the following is NOT one of the three types of errors that commonly occur in JavaScript code: a. errors based on version of browser used b. runtime errors c. faulty program logic d. syntax errors
a. errors based on version of browser used
63
63. Not all errors that are a result of your program’s reasoning being incorrect or faulty will actually generate an error message. T F
T
64
64. What are FOUR important features that you should look for when selecting a text editor:
a. line numbering ; b. syntax highlighting ; c. parenthesis matching ; d. code completion or tooltip-style syntax help
65
65. Which of the following is NOT one of the three disadvantages of using the alert( ) function for code debugging: a. You must press OK in the dialog box for processing to continue b. The messages received are not stored anywhere and disappear when the dialog box is cleared so they cannot be referred to later c. An alert( ) message box cannot contain more than 128 characters so it may not be able to generate the entire error message information thereby reducing the effectiveness of the data d. All of the lines of alert( ) test code must be deleted before the code can be used
c. An alert( ) message box cannot contain more than 128 characters so it may not be able to generate the entire error message information thereby reducing the effectiveness of the data
66
66. Instead of using the alert( ) function for debugging, the console provides accessibility to the ________ method which operates invisibly to the User unless he or she just happens to be looking at the console. a. log.runtime( ) b. runtime.log( ) c. console.log( ) d. log.console( )
c. console.log( )
67
67. Most modern browsers provide a JavaScript Console that can be used for logging error messages. They are accessed as follows:
a. Internet Explorer: Developer Tools opens with F12 b. Firefox: Firebug opens with F12 c. Google Chrome: Developer Tools opens with Ctrl + Shift + I d. Opera: Dragonfly Debugger opens with Ctrl + Shift + I
68
68. What do you type in your JavaScript code to have it launch the debugger? a. debugger; b. debug; c. console; d. errorlog;
a. debugger;
69
69. When using a conditional breakpoint in debugging, code execution is broken only when a certain (predetermined) condition is met. T F
T
70
70. When code execution halts at a breakpoint, you can choose to step through your lines of code one at a time; what are the code execution button choices that you have available to use in order to do this? a. Resume ; Start ; Stop ; Skip b. Continue ; Step Over ; Step Into ; Step Out c. Resume ; Forward ; Backward ; Pause d. Continue ; Step Once ; Step Back ; Step Out
b. Continue ; Step Over ; Step Into ; Step Out
71
71. A ________ expression is a valid JavaScript expression that the debugger continuously evaluates, making the value available for inspection for potential errors and/or accuracy. a. floating b. watch c. eval d. viable
b. watch
72
72. The advantage to using JQuery’s version of the window.onload handler is that it does not block the execution of any other code until the entire page loads; the code begins to execute as soon as DOM tree has been constructed thereby speeding up performance a little. T F
T
73
73. There are only two JavaScript libraries available for use by the public; all other libraries are proprietary and can only be used if you purchase a license first. T F
F
74
74. Which of the following statements is NOT one of the advantages of using a JavaScript library: a. Why write code from scratch that has already been created previously. b. There is some clever code already written that can actually improve upon whatever task you might be trying to do. c. Using existing library code can remove some of the headaches of writing cross-browser compatible scripts. d. Using library scripts assure that you have a well-constructed web page and this helps you rank higher in search engine placement
d. Using library scripts assure that you have a well-constructed web page and this helps you rank higher in search engine placement
75
75. Which of the following is NOT one of the functions that many JavaScript libraries contain: a. page element animation b. search engine page optimization scripts c. adding drag-and-drop capabilities to page objects d. updating page content / using AJAX
b. search engine page optimization scripts
76
76. In order to utilize a JavaScript library’s code on your site, the entire contents of the library must first be downloaded locally. T F
F
77
77. Which of the following is JQuery’s equivalent to the window.onload handler: a. $(document).ready b. $(document).onload c. $(window).ready d. $(window).onload
a. $(document).ready
78
78. JQuery lets you select elements in your HTML by enclosing them in the JQuery wrapper ________. a. $( ) b. $(‘ ‘) c. $(“ “) d. both b and c are correct
d. both b and c are correct
79
79. Which of the following statements is NOT one of the options that you have in accessing a JavaScript library from your web page: a. you can link to it from your individual web pages b. you can download it to your web server and link your pages to it there c. you can include it from a CDN (Common Delivery Network) d. you can include it from the MS Cloud
d. you can include it from the MS Cloud
80
80. There are two JQuery formats available for download by the public; the compressed version for your live pages and the uncompressed version which is useful for developmental purposes. T F
T
81
81. Your JQuery downloaded file should be placed in the same directory as the page from where you wish to use it / call it – otherwise, you will need to change the relative or absolute path you give the link statement. T F
T
82
82. The ________ method gets the HTML of any element or collection of elements so that you can set the content of the element(s) that you have selected. a. html( ) b. getHTML( ) c. setHTML( ) d. loadHTML( )
a. html( )
83
83. The ________ method gets the text content of any element or collection of elements, without the HTML, so that you can set the content of the element(s) that you have selected. a. getText( ) b. text( ) c. loadText( ) d. setText( )
b. text( )
84
84. When passed a single argument, the ___________ method gets the value for the specified attribute. a. attr( ) b. attrib( ) c. getAttr( ) d. getAttrib( )
a. attr( )
85
85. To make an element or set of elements visible, the ________ method can be applied; and when you would like for those elements to no longer appear, the _________ method can be used. a. appear( ) ; disappear( ) b. show( ) ; conceal( ) c. show( ) ; hide( ) d. appear( ) ; hide( )
c. show( ) ; hide( )
86
86. With JQuery, you will find that many methods will return a JQuery object that can then be used to call up another method and have this new method applied to the object; this process can be done repeatedly and is known as _________. a. repetitious functioning b. linear functioning c. command linking d. command chaining
d. command chaining
87
87. The ________ method changes the current state of an element so that visible elements become invisible and invisible elements become visible. a. revert( ) b. show( ) c. toggle( ) d. appear( )
c. toggle( )
88
88. Which of the following is an example of command chaining: a. $(“img”).fadeOut().fadeIn(); b. $(“#p2”) .html(“

This is my first use of JQuery!

”); c. $(“#caption1”) .show(“fast”, function() { // do something one element displays } ); d. all of the above are correct
a. $(“img”).fadeOut().fadeIn();
89
89. In JQuery, you can use the ________ method to attach event handlers both to elements already present in the original HTML page as well as to those dynamically added to the DOM. a. attach( ) b. listen( ) c. on( ) d. event( )
c. on( )
90
90. How could you select all page elements having class = “footer”? a. $(“.footer”) b. $(class:footer) c. $(#footer) d. $(‘class:footer’)
a. $(“.footer”)
91
91. The expression: $(“p:last”).show() does what? a. it doesn’t do anything; the syntax and/or methods are incorrect. b. it displays all paragraph elements after displaying all other page elements. c. it makes the last paragraph element on the page visible. d. it makes the last line of all paragraphs on the page visible.
c. it makes the last paragraph element on the page visible.
92
92. You can animate an element by specifying an element’s new CSS styles to be applied; however, by using the ___________ method you can impose the new styles gradually instead of all at once – thus creating an animation effect. a. animate( ) b. animateStyle( ) c. styleAnimate( ) d. animateNode( )
a. animate( )
93
93. The __________ online tool allows you to choose a theme from a gallery of pre-written designs or create a custom theme based on an existing theme as a starting point. a. ThemeRoller b. TemplateApp c. StyleRoller d. ThemeApp
a. ThemeRoller
94
94. Which of the following statements is not true regarding the JQuery UI: a. consists of a collection of “plug-ins” to further enhance JQuery’s capabilities b. it’s components have a common interface style c. it provides support for interactions, widgets and theme building with JQuery d. web sites using UI generated code must register those sites through JQuery since the UI code is proprietary and not open-source
d. web sites using UI generated code must register those sites through JQuery since the UI code is proprietary and not open-source
95
95. To use the JQuery UI in your web pages, each page must contain, as a minimum: a. JQuery and JQuery UI JavaScript libraries and a link to a JQuery UI theme CSS file b. only the JQuery and JQuery UI libraries c. the JQuery UI JavaScript library and a link to a JQuery UI theme CSS file d. the JQuery library and a link to a JQuery UI theme CSS file
a. JQuery and JQuery UI JavaScript libraries and a link to a JQuery UI theme CSS file
96
96. Which of the following will make an item named “dragme” draggable: a. draggable.$(“dragme”); b. draggable.(‘#dragme’); c. $(“#dragme”).draggable(); d. (#dragme).draggable();
c. $(“#dragme”).draggable();
97
97. Which of the following methods will make an item capable of receiving another item that is dropped on it: a. drop(); b. dropped(); c. droppable(); d. dropping();
c. droppable();
98
98. Which of the following methods will add resizing handles to a block element: a. sizing(); b. resizable(); c. sizable(); d. resize();
b. resizable();
99
99. Which of the following will add a date picker widget named “adate” to your form: a. datepicker.$(“adate”); b. datepicker.(‘#adate’); c. (#adate).datepicker(); d. $(“#adate”).datepicker();
d. $(“#adate”).datepicker();
100
100. Ajax allows you to communicate with the browser in the background and display the results on your page without having to carry out a page refresh. T F
F
101
101. The ____________ object connects to the server and issues an HTTP request without the necessity of an associated new page load so that the request performs asynchronously. a. HttpRequest b. XMLHttpRequest c. AjaxHttpRequest d. AsynHttpRequest
b. XMLHttpRequest
102
102. To achieve the ability to perform more like desktop applications and have your web pages remain responsive while the processing occurs in the background, Ajax builds an extra “layer” of processing between the web page and the server and this layer is known as an _________________. a. Ajax Interface or Ajax Layer b. Ajax Layer or Ajax Framework c. Ajax Frameset or Ajax Engine d. Ajax Engine or Ajax Framework
d. Ajax Engine or Ajax Framework
103
103. There are a number of Ajax methods for performing Ajax calls to the server; so when you simply want to grab a document from the server and display it in a page element, you can use the ________ method. a. load( ) b. display( ) c. get( ) d. show( )
a. load( )
104
104. Which of the following statements is NOT correct: a. Ajax applications care little about what languages or operating environments exist at the server, provided the client-side Ajax layer receives a timely and correctly formatted HTTP response from the server. b. Once notified that an asynchronous request has been successfully completed, you may then use the information returned by the server. c. Ajax allows the processed information to be returned from the server in a number of different formats including ASCII text and XML data. d. As far as server-side scripts are concerned, the communication from your HTTP request object is a special type of object that must be processed on the server using the Ajax layer interface request
d. As far as server-side scripts are concerned, the communication from your HTTP request object is a special type of object that must be processed on the server using the Ajax layer interface request
105
105. The JQuery serialize() method: a. encodes a set of form elements as a JSON object for submission b. encodes a set of form elements as a string for submission c. encodes a set of form elements as a JavaScript array for submission d. encodes a set of form elements as a XML data set for submission
b. encodes a set of form elements as a string for submission
106
106. Which of these will grab an element with an id=”source” from the server file, test.htm and insert it into a page element with id=”target”? a. $(“#target”).load(“test.htm #source”); b. $(“#source”).load(“test.htm #target”); c. $(“$source”).load(“test.htm $target”); d. $(“$target”).load(“test.htm $source”);
a. $(“#target”).load(“test.htm #source”);
107
107. A web development _______ is a set of resources and tools for software developers to build and manage web applications, web services and websites. a. ruleset b. framework c. webkit d. plug-in
b. framework
108
108. When grabbing a document from the server and displaying it in a page element, you can display only a portion of the page’s content by referencing that specific content based on it’s ____________. a. named (id value) selector b. title tag c. class designation d. you cannot grab only partial content for display; it’s all or nothing
a. named (id value) selector
109
109. Frameworks help you reuse code that has been previously built and tested, improving reliability and saving time having to rewrite code that already exists. T F
T
110
110. The difference between frameworks and libraries is: a. libraries contain existing objects and methods that you can invoke with your application and a framework provides the consistent structure in which your application can use objects and methods of your own creation b. a framework contains existing objects and methods that you can invoke with your application and libraries provide the consistent structure in which your application can use objects and methods of your own creation c. a framework is an entire web site structure – much like a template – that already contains all of the objects and styles that you would need to create a full-functional web site; and a library is a repository of resources for web items such as CSS code and JavaScript basic functions – but it does not contain actual objects since those must be created by the web master d. basically, there is no difference between the two
a. libraries contain existing objects and methods that you can invoke with your application and a framework provides the consistent structure in which your application can use objects and methods of your own creation