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

Free IT Specialist INF-306 Practice Exam with Questions & Answers | Set: 2

Questions 11

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

IT Specialist INF-306 Premium Access
Questions 12

The following form is missing validation attributes:

< form >

< div class= " container " >

< h1 > Register Here < /h1 >

< p > Please fill in the details to create an account with us. < /p >

< hr >

< label for= " ? " > < b > Enter Email < /b > < /label >

< input type= " ? " placeholder= " Enter Email " name= " ? " placeholder= " username@domain.com " >

< label for= " ? " > < b > Password < /b > < /label >

< input type= " ? " placeholder= " Enter Password " name= " ? " >

< label for= " ? " > < b > Confirm Password < /b > < /label >

< input type= " ? " placeholder= " Confirm Password " name= " ? " >

< label for= " phone " > < b > Phone < /b > < /label >

< input type= " tel " id= " phone " name= " phone " placeholder= " 123-45-678 " >

< hr >

< p > By creating an account you agree to our < a href= " # " > Terms & Privacy < /a > . < /p >

< button type= " submit " class= " registerbtn " > < strong > Register < /strong > < /button >

< /div >

< /form >

You need to update the form to enforce the following requirements for visitors:

• All fields must be completed with valid information.

• The users should not be allowed to type passwords longer than 8 characters.

• Passwords must use only numbers and letters.

• Phone numbers and email addresses must follow the configuration of the placeholder text.

• The browser must display an error message that makes it clear what type of input change is needed.

Review the markup on the left.

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

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

INF-306 Question 12

Options:
Questions 13

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

INF-306 Question 13

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

Options:
A.

0,0

B.

0,50

C.

50,0

D.

50,50

Questions 14

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.

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

Questions 15

Identify the filter applied to each image.

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

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

INF-306 Question 15

Options:
Questions 16

You need to contain overflowing 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: auto;

C.

overflow: visible;

D.

overflow: scroll;

Questions 17

You define the Pet class as follows:

class Pet {

constructor(name, breed) {

this.name = name;

this.breed = breed;

this.show = function() {

var text = " < p > Your pet ' s name is " + name + " . The pet ' s breed is " + breed + " . < /p > " ;

return text;

};

}

}

You need to derive a Dog class from the Pet class.

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

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

INF-306 Question 17

Options:
Questions 18

You need to create the following form:

INF-306 Question 18

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

INF-306 Question 18

Options:
Questions 19

Which element should you use to rotate an SVG square?

Options:
A.

animateMotion

B.

animateTransform

C.

circle

D.

path

Questions 20

You need to display the following user interface:

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

Motorcycle

Truck

Boat

Car

Bicycle

INF-306 Question 20

Options:
Exam Code: INF-306
Certification Provider: IT Specialist
Exam Name: HTML5 Application Development
Last Update: May 22, 2026
Questions: 68
PDF + Testing Engine
$164.99
$49.5
Testing Engine
$124.99
$37.5
PDF (Q&A)
$104.99
$31.5

IT Specialist Related Exams

IT Specialist Free Exams

IT Specialist Free Exams