10 exam-style questions with answers and explanations, straight from our 1,030-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.
The ITS-HAD exam has 44 questions and runs 0 hours 50 minutes.
These 10 free ITS-HAD questions are organized by exam domain, so you can see how each part of the Information Technology Specialist - HTML5 Application Development blueprint is tested. Reveal the answer and explanation under each question.
Domain 1: Application Lifecycle Management
Question 1
During checkout debugging, `updateTotal(quantity)` runs after every edit. A defect appears only when `quantity` is negative. The developer needs execution to pause immediately before that call, with the call stack and local variables available, while valid edits continue uninterrupted. Which debugger setup provides that behavior?
Show answer & explanation
Correct answer: D - Set a conditional breakpoint on the call with the expression `quantity < 0`.
Domain 2: Graphics and Animation
Question 2
A promotional banner needs a half-transparent red background and fully opaque heading text. These rules fade the heading even though its own opacity is 1:
```css
.banner {
background-color: red;
opacity: 0.5;
}
.banner h2 {
color: black;
opacity: 1;
}
```
No other transparency rules apply. Which replacement for `.banner` achieves the intended appearance?
For an interactive campus map, every building must remain sharp when enlarged and expose its own graphic element to the page's click handlers. Which representation meets both needs?
Show answer & explanation
Correct answer: B - Inline SVG with a separate shape element for each building.
Question 4
A warehouse map uses a 600 × 300 Canvas drawing bitmap displayed at 300 × 150 CSS pixels. Its upper-left corner is at viewport coordinates `(50, 40)`. There is no border or padding, and neither CSS nor the drawing context applies a transform.
Each target is a 120 × 80 rectangle in drawing coordinates:
- Receiving: left 100, top 60
- Packing: left 320, top 60
- Returns: left 100, top 180
- Dispatch: left 320, top 180
A click reports `clientX = 240` and `clientY = 150`. Which target should receive the selection?
Show answer & explanation
Correct answer: D - Dispatch
Domain 3: Forms
Question 5
Membership IDs contain exactly six ASCII digits, and leading zeros matter: `004271` is valid, while `4271` and `AB4271` are not. Select the input that enforces this format through HTML constraint validation.
Show answer & explanation
Correct answer: A - ``<input type="text" pattern="[0-9]{6}" required>``
Question 6
Security testing of a live checkout finds that its HTML control rejects negative quantities, but a modified HTTP request containing `quantity=-4` still creates an order with a negative total. The product permits only whole quantities from 1 through 20. Which change closes this validation bypass?
Show answer & explanation
Correct answer: D - Reject values outside 1-20 whole units in the server's order-creation handler.
Domain 4: Layouts
Question 7
A horizontal, nonwrapping flex row contains a thumbnail and text. The text can flex, but the thumbnail must stay exactly 120px wide as the row becomes wider or narrower. Complete the thumbnail rule.
```css
.thumbnail {
min-width: 0;
max-width: none;
margin: 0;
padding: 0;
border: 0;
/* Add one flex declaration. */
}
```
Show answer & explanation
Correct answer: C - ``flex: 0 0 120px;``
Domain 5: JavaScript Coding
Question 8
The browser receives HTTP 404 from the same-origin `/api/report` endpoint, with the readable JSON body `{"message":"Report not found"}`. Yet this code logs `"display"` and the parsed object rather than `"failed"`:
```javascript
fetch("/api/report")
.then(function (response) {
return response.json();
})
.then(function (data) {
console.log("display", data);
})
.catch(function (error) {
console.log("failed");
});
```
What explains the observed path through the handlers?
Show answer & explanation
Correct answer: A - Fetch received an HTTP response, but the code never checked its status.
Question 9
An HTTPS field-service app has location permission. A successful Geolocation callback reports latitude `51.5010`, longitude `-0.1416`, and `accuracy: 80`. The map helps a technician find the area; the technician confirms the exact entrance manually. Which response uses this reading appropriately for that task?
Show answer & explanation
Correct answer: A - Plot an 80-meter accuracy radius around the reported position.
Question 10
How can the override below call the parent's `label` method with the current instance as `this`? Select the expression for `PARENT_LABEL`.
```javascript
class Notice {
constructor(text) { this.text = text; }
label() { return "Notice: " + this.text; }
}
class UrgentNotice extends Notice {
constructor(text) { super(text); }
label() { return "Urgent " + PARENT_LABEL; }
}
console.log(new UrgentNotice("Disk full").label());
```
Show answer & explanation
Correct answer: C - `super.label()`
That's 10 of 1,030
The full bank has 1,020 more ITS-HAD questions with explanations.