Answers 2024/2025
A _____ is created using the select and option elements that present users with a group of predefined
possible values for the data field. - ANSWERSselection list
Every field set must contain the _____ element, which should have only text and no nested elements for
describing its content. - ANSWERSlegend
get and post are two possible values for the _____ attribute. - ANSWERSmethod
Identify a syntax that displays a selection list as a scroll box with 5 options visible in the web form. -
ANSWERS<select size="5"> ... </select>
Identify a widget that allows the user to interact with the form for entering numeric values confined to a
specified range. - ANSWERSSlider control
Identify an attribute that can be added to the input element to validate a text value against a regular
expression. - ANSWERSpattern="regex"
Identify the type of control that performs an action. - ANSWERSA form button
Which of the following is true of field sets? - ANSWERSField sets act like block elements that can expand
to accommodate their content.
In the accompanying figure, Box B points to _____. - ANSWERSoption buttons
In the accompanying figure, Box E represents a _____. - ANSWERSSpin box
, A _____ is any group of characters enclosed within either double or single quotation marks in JavaScript.
- ANSWERStext string
Identify a statement that is added to the first line of the file to run a script in strict mode. -
ANSWERS"use strict";
JavaScript is used as a programming tool for: - ANSWERScreating interactive web forms and animated
graphics.
A command that indicates an action for the browser to take should end with a _____. - ANSWERS
semicolon
A _____ occurs after a script has been successfully loaded with no syntax errors and is being executed by
a browser. - ANSWERSrun-time error
A _____ is a collection of commands that performs an action or returns a value. - ANSWERSfunction
A _____ is a named item in a program that stores a data value, such as a number or text string, or an
object, such as a part of the web browser or browser window. - ANSWERSvariable
The _____ attribute can be applied to the script element to ensure that an object can be referenced
within a JavaScript program that runs only after the page has completed loading. - ANSWERSdefer
_____ programming distributes the load to prevent a server from getting overloaded with program-
related requests. - ANSWERSClient-side
A user can create an embedded script by removing the _____ attribute and placing all of the JavaScript
code within the script element. - ANSWERSsrc
Identify the general structure for accessing each value from an array using for loop. - ANSWERSfor (var i
= 0; i < array.length; i++) { commands involving array [i] }