LSU ISDS 3105 Final Exam: Questions & Complete
Answers (Pass!)
A _____ is created using the select and option elements that present users with
a group of predefined possible values for the data field. Right Ans -
selection list
Every field set must contain the _____ element, which should have only text and
no nested elements for describing its content. Right Ans - legend
get and post are two possible values for the _____ attribute. Right Ans -
method
Identify a syntax that displays a selection list as a scroll box with 5 options
visible in the web form. Right Ans - <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. Right Ans - Slider control
Identify an attribute that can be added to the input element to validate a text
value against a regular expression. Right Ans - pattern="regex"
Identify the type of control that performs an action. Right Ans - A form
button
Which of the following is true of field sets? Right Ans - Field sets act like
block elements that can expand to accommodate their content.
In the accompanying figure, Box B points to _____. Right Ans - option
buttons
In the accompanying figure, Box E represents a _____. Right Ans - Spin box
A _____ is any group of characters enclosed within either double or single
quotation marks in JavaScript. Right Ans - text string
Identify a statement that is added to the first line of the file to run a script in
strict mode. Right Ans - "use strict";
, JavaScript is used as a programming tool for: Right Ans - creating
interactive web forms and animated graphics.
A command that indicates an action for the browser to take should end with a
_____. Right Ans - semicolon
A _____ occurs after a script has been successfully loaded with no syntax errors
and is being executed by a browser. Right Ans - run-time error
A _____ is a collection of commands that performs an action or returns a value.
Right Ans - function
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. Right Ans - variable
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. Right Ans - defer
_____ programming distributes the load to prevent a server from getting
overloaded with program-related requests. Right Ans - Client-side
A user can create an embedded script by removing the _____ attribute and
placing all of the JavaScript code within the script element. Right Ans - src
Identify the general structure for accessing each value from an array using for
loop. Right Ans - for (var i = 0; i < array.length; i++) { commands involving
array [i] }
What is the output of the following code?
for (var i = 0; i <= 360; i+=60) Right Ans - i = 0, 60, 120, 180, 240, 360
identify the expression used to reference array values. Right Ans - array [i]
Identify the general structure of a for loop. Right Ans - for (start; continue;
update)
{
Answers (Pass!)
A _____ is created using the select and option elements that present users with
a group of predefined possible values for the data field. Right Ans -
selection list
Every field set must contain the _____ element, which should have only text and
no nested elements for describing its content. Right Ans - legend
get and post are two possible values for the _____ attribute. Right Ans -
method
Identify a syntax that displays a selection list as a scroll box with 5 options
visible in the web form. Right Ans - <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. Right Ans - Slider control
Identify an attribute that can be added to the input element to validate a text
value against a regular expression. Right Ans - pattern="regex"
Identify the type of control that performs an action. Right Ans - A form
button
Which of the following is true of field sets? Right Ans - Field sets act like
block elements that can expand to accommodate their content.
In the accompanying figure, Box B points to _____. Right Ans - option
buttons
In the accompanying figure, Box E represents a _____. Right Ans - Spin box
A _____ is any group of characters enclosed within either double or single
quotation marks in JavaScript. Right Ans - text string
Identify a statement that is added to the first line of the file to run a script in
strict mode. Right Ans - "use strict";
, JavaScript is used as a programming tool for: Right Ans - creating
interactive web forms and animated graphics.
A command that indicates an action for the browser to take should end with a
_____. Right Ans - semicolon
A _____ occurs after a script has been successfully loaded with no syntax errors
and is being executed by a browser. Right Ans - run-time error
A _____ is a collection of commands that performs an action or returns a value.
Right Ans - function
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. Right Ans - variable
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. Right Ans - defer
_____ programming distributes the load to prevent a server from getting
overloaded with program-related requests. Right Ans - Client-side
A user can create an embedded script by removing the _____ attribute and
placing all of the JavaScript code within the script element. Right Ans - src
Identify the general structure for accessing each value from an array using for
loop. Right Ans - for (var i = 0; i < array.length; i++) { commands involving
array [i] }
What is the output of the following code?
for (var i = 0; i <= 360; i+=60) Right Ans - i = 0, 60, 120, 180, 240, 360
identify the expression used to reference array values. Right Ans - array [i]
Identify the general structure of a for loop. Right Ans - for (start; continue;
update)
{