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

Home > IT Specialist > Information Technology Specialist > INF-306

INF-306 HTML5 Application Development Question and Answers

Question # 4

Which element should you use to rotate an SVG square?

A.

animateMotion

B.

animateTransform

C.

circle

D.

path

Full Access
Question # 5

You need to correctly apply a style rule for screen devices with a width of 480 pixels or less.

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

Full Access
Question # 6

You need to define a grid that meets the following requirements:

• Explicitly sets the width of 6 equal columns of 1 fraction

• Explicitly sets 5 varied sized rows

• Defines 15px of space between each grid column

• Defines 10px between each grid row

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

Full Access
Question # 7

Match each property to its corresponding value for creating the CSS flexible box layout.

Move each property from the list on the left to the correct value on the right.

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

Full Access
Question # 8

A local photographer asks you to add filters as shown to the images in their photo gallery so that the images are not recognizable until authorized users log in.

Example of original and filtered images:

    Original image: full-color flower image

    Filtered image: blurred grayscale image

Analyze the images on the left.

Construct a CSS selector that will apply the appropriate filters to the images to meet the requirements.

Complete the markup by moving the appropriate HTML tags from the list on the left to the correct locations on the right. You may use each HTML tag once, more than once, or not at all.

Note: There is more than one correct markup. You will receive credit for any correct markup completion.

Full Access
Question # 9

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();

Full Access
Question # 10

You are drawing on the canvas defined by the white square.

At which x, y coordinate is the upper-left corner of the filled square?

A.

0,0

B.

0,50

C.

50,0

D.

50,50

Full Access
Question # 11

You need to draw a blue rectangle that meets these conditions:

• It is 200 by 200 pixels.

• It contains a white circle that is centered within the rectangle.

• The circle has a 50-pixel radius.

• The image should appear as follows: a blue square with a centered white circle.

Refer to the image on the left.

You need to ensure that the image scales without distortion when the page is resized. You must not be required to use JavaScript.

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

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

Full Access
Question # 12

You write the following JavaScript code. Line numbers are included for reference only.

01 < script >

02

03 beststudent = new Student( " David " , " Hamilton " );

04 document.write(beststudent.fullname + " is registered. " );

05 < /script >

You need to write a function that will initialize and encapsulate the member variable fullname.

Which code fragment could you insert at line 02 to achieve this goal?

Note: Each correct answer presents a complete solution.

A.

function Student(firstname, lastname) { this.firstname = firstname; this.lastname = lastname; this.fullname = this.firstname + " " + this.lastname;}

B.

var student(firstName, lastName) { firstname = firstName; lastname = lastName; fullname = firstname + " " + lastname;}

C.

var Student(firstname, lastname) { this.firstname = firstname; this.lastname = lastname; this.fullname = this.firstname + " " + this.lastname;}

D.

function Student(firstName, lastName) { firstname = firstName; lastname = lastName; fullname = firstname + " " + lastname;}

Full Access
Question # 13

Which two functions support 2D transformations in CSS3? Choose 2.

A.

matrix()

B.

scroll()

C.

skew()

D.

move()

Full Access
Question # 14

Review the grid container requirements and mockup on the left. Which markup should you use to define the grid container?

A.

Uses grid-template-columns and grid-template-rows with percentage and pixel sizing.

B.

Incorrectly places named area strings under grid-template-rows.

C.

Incorrectly places named area strings under grid-template-columns.

D.

.grid-container { display: grid; grid-template-areas: " heading heading heading heading heading heading " " menu content content content right right " " menu contact contact contact contact contact " ; grid-gap: 10px; background-color: orange; padding: 10px;}

Full Access
Question # 15

You need to display the following user interface:

Motorcycle

Truck

Boat

Car

Bicycle

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

Full Access
Question # 16

You have created custom error messages for a form. When a user attempts to submit the form with invalid data, the data must remain in the form and error messages must be displayed. Which Event property or method should you use?

A.

defaultPrevented

B.

preventDefault

C.

abort

D.

cancelable

Full Access
Question # 17

You create an interface for a touch-enabled application. You discover that some of the input buttons do not trigger when you tap them on the screen. You need to identify the cause of the problem. What are two possible causes? Choose 2.

A.

The input areas are using event handlers to detect input.

B.

The defined input areas are not large enough.

C.

The touch screen is not initialized.

D.

The input areas overlap with other input areas.

Full Access
Question # 18

Move the appropriate attributes from the list on the left to the correct descriptions on the right. You may use each attribute once, more than once, or not at all.

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

Full Access
Question # 19

Which two CSS segments are valid filter properties? Choose 2.

A.

filter: opacity(25%)

B.

filter: box-shadow(16px 24px 24px green)

C.

filter: blur(25deg)

D.

filter: drop-shadow(16px 16px 16px red)

Full Access
Question # 20

What is the effect of applying the CSS float: right property to an image?

A.

It positions the image to the right of the region and wraps text around the top, left, and bottom.

B.

It positions the image to the right and wraps text to the top and bottom.

C.

It positions the image to the left and displays all of the text to the right of the image.

D.

It positions the image to the left of the region and wraps text around the top, right, and bottom.

Full Access