Test3 Flashcards
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 )
True
Which of the following is not a widely-supported video format:
a. MP3 b. MP4 c. WebM d. Ogg
a. MP3
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. the appearance of video controls has been standardized across all browsers so that the usage of the controls property is no longer necessary
- You can check for browser support for a particular codec by using which method?
a. “canPlay( )”
b. “playType( )”
c. “canPlayType( )”
d. “playMediaType( )”
c. “canPlayType( )”
Which of the following is not a widely-supported audio format:
a. MP3 b. MP4 c. WAV d. Ogg
b. MP4
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 )
True
Just about any element can be made draggable; all that’s required is to set its isDraggable attribute (true or false )
False - “ the correct attribute is (draggable )
- 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
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
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
d. style
- 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 )
False - This only works with inline styles
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 )
False
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]
b. heading1.style[“color”]
When accessing style properties such as font-size through JavaScript, the hyphen must be removed and camel case syntax rules applied. (true or false )
True
Which of the following is the equivalent to the following CSS style code: text-align ?
a. "textalign" b. "Textalign" c. "TextAlign " d. "textAlign"
d. “textAlign”
Which stylesheet property allows you to turn individual stylesheets on and off in your JavaScript code?
a. active b. enable c. disabled d. on
c. disabled
- 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 )
False (these are backwards )
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. document.styleSheet.length
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. webkits
- 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
c. cover
- 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( ) “
b. “getComputedStyle( ) “
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 )
True
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 )
False - ( the value returned is “ undefined “
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
False
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
d. 20 cookies per domain and/or a total of 4KB of cookie information
This is my first use of JQuery!
”); c. $(“#caption1”) .show(“fast”, function() { // do something one element displays } ); d. all of the above are correct