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

IT Specialist INF-306 HTML5 Application Development Exam Practice Test

Demo: 20 questions
Total 68 questions

HTML5 Application Development Questions and Answers

Question 1

The following output has more text than will fit in the element.

You need to apply CSS to contain the text inside the element ' s border without creating unneeded scrollbars or losing text. Which attribute setting should you use?

Options:

A.

overflow:hidden;

B.

overflow:scroll;

C.

overflow:visible;

D.

overflow:auto;

Question 2

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

Options:

A.

matrix()

B.

scroll()

C.

skew()

D.

move()

Question 3

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

Options:

A.

var ...

B.

var a = Score();

C.

Score: function() { ... }

D.

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

Question 4

You are creating a form that requires the category to be entered as a two- or three-letter abbreviation. The input is mandatory.

You need to configure the input validation for the form.

Complete the markup by typing into the boxes.

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

Options:

Question 5

You are given the design for an app. The project manager asks you to outline the steps you must take to release and maintain the app.

Move each step from the list on the left to its correct sequence in the application lifecycle on the right.

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

Options:

Question 6

You need to identify the form elements.

Move the appropriate semantic elements from the list on the left to the correct locations on the right.

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

Options:

Question 7

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?

Options:

A.

defaultPrevented

B.

preventDefault

C.

abort

D.

cancelable

Question 8

The following code adds items to the groceries array from the other arrays. Line numbers are for reference only.

01 < body >

02 < p id= " list " > < /p >

03 < script >

04 var groceries = [];

05 var dairy = [ " Milk " , " Eggs " , " Cheese " , " Ice Cream " ];

06 var beverages = [ " Juice " , " Water " , " Soda " , " Coffee " ];

07 var fruits = [ " Apples " , " Bananas " , " Grapes " , " Oranges " , " Strawberries " ];

08 var vegetables = [ " Broccoli " , " Carrots " , " Lettuce " , " Spinach " , " Tomatoes " ];

09 var meats = [ " Beef " , " Chicken " , " Pork " ];

10

11 function addVegetables() {

12 groceries = groceries.concat(vegetables);

13 }

14

15 function addFruits() {

16 groceries = groceries.concat(fruits);

17 }

18

19 function addOther() {

20 groceries.push(meats[1]);

21 groceries.push(dairy[3]);

22 }

23

24 fruits.shift();

25 addVegetables();

26

27 groceries.shift();

28 addFruits();

29

30 groceries.pop();

31 groceries.shift();

32

33 addOther();

34 document.getElementById( " list " ).innerHTML = groceries;

You need to debug the code on the left to determine how many items are in the groceries array at the specified breakpoints.

Evaluate the code and answer the questions by selecting the correct option from each drop-down list.

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

Options:

Question 9

You need to use CSS to create the layout shown:

Review the layout shown on the left.

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

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

Options:

Question 10

You need to create the following form:

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

Options:

Question 11

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.

Options:

Question 12

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.

Options:

Question 13

The development team just released a new version of an app for your team to test. Which three tasks should you perform during testing? Choose 3.

Options:

A.

Check application functionality to ensure it works correctly.

B.

Ask customers to submit bugs or problems.

C.

Find any defects in the app.

D.

Ensure that the app meets the design specifications.

E.

Check for syntax errors.

F.

Ask customers to submit feature requests.

Question 14

Which markup segment uses the output element to display the combined value of two input elements in HTML5?

Options:

A.

< form > < input type= " number " name= " a " value= " 50 " / > + < input type= " number " name= " b " value= " 50 " / > = < output name= " c " for= " a b " > a+b < /output > < /form >

B.

< form oninput= " a.value+b.value " > < input type= " number " name= " a " value= " 50 " / > + < input type= " number " name= " b " value= " 50 " / > < /form >

C.

< form oninput= " c.value=a.value+b.value " > < input type= " number " name= " a " value= " 50 " / > + < input type= " number " name= " b " value= " 50 " / > = < output name= " c " for= " a b " > < /output > < /form >

D.

< form > < input type= " number " name= " a " value= " 50 " / > + < input type= " number " name= " b " value= " 50 " / > = < output name= " c " for= " a b " > < /output > < /form >

Question 15

You want to display a message box showing the user ' s current latitude and longitude as identified by the user’s browser.

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

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

Options:

Question 16

You need to call a function named process when a user clicks a button.

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

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

Options:

Question 17

You need to create the layout shown, which defines five content areas:

    Logo and page title

    Menu

    Main content area

    Additional content area

    Copyright and contact information

You define the following classes:

Options:

A.

.grid-container { display: grid; grid-template-columns: 33% 33% 33%; grid-template-rows: 300px 500px 300px; grid-gap: 10px; background-color: orange; padding: 10px;}

B.

.grid-container { display: grid; grid-template-rows: " 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;}

C.

.grid-container { display: grid; grid-template-columns: " 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;}

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;}

Question 18

You need to display the following user interface:

A text input field that displays a selectable suggestion list containing:

Motorcycle

Truck

Boat

Car

Bicycle

Options:

Question 19

You need to complete a postal code input form element (post_code). Include attributes to make the field mandatory, set the data type as text, and limit the input to five numeric digits.

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

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

Options:

Question 20

Review the markup segment. Which entry will validate successfully according to the required pattern?

Options:

A.

kukX-04-4938-WJDF

B.

Kgyn-23-3978-Uhj6

C.

y7Ts-A34876-ASFr

D.

AGbe-23h-234-HBG6

Demo: 20 questions
Total 68 questions