INF-306 HTML5 Application Development Questions and Answers
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.
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.
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.
Which two application features should you implement by using session storage? Choose 2.
Review the markup segment. Which entry will validate successfully according to the required pattern?
Which markup segment uses the output element to display the combined value of two input elements in HTML5?
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.
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.
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);
Which value does the following JavaScript code fragment store in the variable num?
var num = localStorage.length;
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.
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.
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.
You create an interface for a touch-enabled application. Some input buttons do not trigger when tapped. What are two possible causes?
Review the grid container requirements and mockup on the left. Which markup should you use to define the grid container?
You need to create the following form:
Complete the code by selecting the correct option from each drop-down list.







