98-375 : HTML5 App Development Fundamentals : Part 04
-
When applied to an image, the CSS float:right property:
- positionsthe image to the left and displays all of the text to the right of the image.
- positionsthe image to the right of the region and wraps text around the top, left, and bottom.
- positionsthe image to the left of the region and wraps text around the top, right, and bottom.
- positionsthe image to the right and wraps text to the top and bottom.
-
Which CSS3 code segment styles the text color of EM elements to be red and semi-transparent?
- Option A
- Option B
- Option C
- Option D
-
Which CSS position value is used to position an element relative to the browser window?
- position: relative;
- position: absolute;
- position: static;
- position: fixed;
-
What is the default value of the CSS position property?
- fixed
- absolute
- static
- relative
-
You write the following code. (Line numbers are included for reference only.)
You need to make the text animate up the screen from a starting position of 400 pixels.
Which CSS code fragment should you insert at line 13?- Option A
- Option B
- Option C
- Option D
-
Which code fragment prepares the HTML5 application to be used offline?
- Option A
- Option B
- Option C
- Option D
-
You need to retrieve a value from local storage by using the key “aardvark.”
Which code fragment should you use?- Option A
- Option B
- Option C
- Option D
-
What value does the following JavaScript code fragment store into the variable num?
varnum = localStorage.length;
- maximum length of a character string
- potential capacity of local storage
- number of bytes available in local storage
- number of key-value pairs in local storage
-
Which two touch gestures require a multi-touch device? (Choose two.)
- hold
- tap
- pinch
- spread
-
You add a div object to a page.
Which CSS3 code fragment will add a scrollbar only if the content exceeds the width or height of the object?- Option A
- Option B
- Option C
- Option D
-
DRAG DROP
Match the CSS position property values to the corresponding descriptions. (To answer, drag each value from the column on the left to its description on the right. Each value may be used once, more than once, or not at all. Each correct match is worth one point.)
-
When content from a flow is loaded into a region, overflowed content:
- attempts to fit into the region by auto-adjusting the styles.
- continues into the next region.
- is truncated and an error flag is set.
- is buffered for download.
-
Which CSS3 code fragment rounds the corners of a border?
- border-image: 50px;
- border-clip: 50px concave;
- border-radius: 50px;
- border-clip: 50px;
-
Which two CSS properties can be used to position multiple HTML elements next to one another? (Choose two.)
- display
- position
- overflow
- float
Explanation:CSS position Property
The position property specifies the type of positioning method used for an element (static, relative, absolute or fixed).CSS float Property
The float property specifies whether or not a box (an element) should float. -
Which CSS3 code fragment will style only the external links in an HTML document?
- Option A
- Option B
- Option C
- Option D
-
You write the following JavaScript code. (Line numbers are included for reference only.)
You need to write a function that will initialize and encapsulate the member variable full name.
Which are two possible code fragments you could insert at line 02 to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
- Option A
- Option B
- Option C
- Option D
Explanation:Note:
* In JavaScript this always refers to the “owner” of the function we’re executing, or rather, to the object that a function is a method of.* If you assign a value to variable that has not yet been declared, the variable will automatically be declared as a GLOBAL variable.
This statement:
carname=”Volvo”;
Will declare the variable carname as a global variable , even if it is executed inside a function. -
Your HTML5 code includes this code segment:
Which JavaScript code fragment will determine that a visitor has selected the “Chocolate” radio button?
- Option A
- Option B
- Option C
- Option D
-
You need to ensure the scope of a variable named j is limited to the block of a single function named foo(). Which JavaScript code fragment will accomplish this?
- Option A
- Option B
- Option C
- Option D
-
Which JavaScript method allows you to register multiple handlers for a single touch event?
- dispatchEvent
- initUIEvent
- addEventListener
- initEvent
-
When you are working with the path API, what is the purpose of the clip method?
- pastes a shape object in from the system clipboard
- constrains the rendered output of the shape object
- copies the shape object to the system clipboard
- stores the shape object for later reference in script