Summer Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

IT Specialist INF-306 - HTML5 Application Development

Page: 2 / 2
Total 68 questions

You need to ensure that the value of an input element is a valid 10-digit phone number with no symbols. The input element should initially display all zeroes, but that value should never be stored with the form.

Complete the markup by selecting the correct option from each drop-down list.

Which two background graphics will automatically adjust to different screen sizes? Choose 2.

Note: You will receive partial credit for each correct selection.

A.

< body style= " background:url(media/background.jpg); background-size:contain; background-repeat:no-repeat; " >

B.

< body style= " background:url(media/background.jpg); background-size:initial; background-repeat:no-repeat; " >

C.

< body style= " background:url(media/background.jpg); background-size:cover; background-repeat:no-repeat; " >

D.

< body style= " background:url(media/background.jpg); background-size:auto; background-repeat:no-repeat; " >

The ctx variable is the context of an HTML5 canvas object. What does the following HTML markup draw?

ctx.arc(x, y, r, 0, Math.PI, true);

A.

A line from one point to another

B.

A square at the given point

C.

A circle at the given point

D.

A semicircle at the given point

Which two code segments declare a JavaScript method? Choose 2.

A.

var funct = (a);

B.

Score: function() { ... }

C.

this.Score = function() { ... }

D.

var a = Score();

Which CSS property defines the sides of an element where other floating elements are not allowed?

A.

display

B.

clear

C.

float

D.

position

You want to position a specific element so that it always directly follows the previous element, which is positioned by default, regardless of the viewport characteristics. Which positioning method should you use?

A.

absolute

B.

fixed

C.

static

D.

sticky

You are creating a script that reads a JSON menu file and displays the Entree, Price, and Description.

Complete the code by selecting the correct option from each drop-down list.

Note: You will receive partial credit for each correct selection.

A form has four buttons with a class of item. You need to apply an event listener to all buttons to invoke the moveElement function when a button is pressed. Your code must ensure bubble capture.

Complete the markup by selecting the correct option from each drop-down list.

Note: You will receive partial credit for each correct selection.

You need to create the following form:

Complete the code by selecting the correct option from each drop-down list.

Which code segment correctly displays images with 80% transparency and a blue 8px shadow?

A.

filter: saturate(80%) drop-shadow(8px 8px blue);

B.

filter: saturate(20%) box-shadow(8px 8px blue);

C.

filter: opacity(80%) box-shadow(8px 8px blue);

D.

filter: opacity(20%) drop-shadow(8px 8px blue);