Docsity

Web Form Design and JavaScript Fundamentals, Exams of Social Sciences

Toggle sidebar
bg1
LSU ISDS 3105 FINAL EXAM
A _____ is created using the select and option elements that present users with a group
of predefined possible values for the data field. - Answers-selection list
Every field set must contain the _____ element, which should have only text and no
nested elements for describing its content. - Answers-legend
get and post are two possible values for the _____ attribute. - Answers-method
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. - Answers-Slider control
Identify an attribute that can be added to the input element to validate a text value
against a regular expression. - Answers-pattern="regex"
Identify the type of control that performs an action. - Answers-A form button
Which of the following is true of field sets? - Answers-Field sets act like block elements
that can expand to accommodate their content.
In the accompanying figure, Box B points to _____. - Answers-option buttons
In the accompanying figure, Box E represents a _____. - Answers-Spin box
A _____ is any group of characters enclosed within either double or single quotation
marks in JavaScript. - Answers-text 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: - Answers-creating 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. - Answers-run-time error
A _____ is a collection of commands that performs an action or returns a value. -
Answers-function
pf3
pf4

Partial preview of the text

Download Web Form Design and JavaScript Fundamentals and more Exams Social Sciences in PDF only on Docsity!

LSU ISDS 3105 FINAL EXAM

A _____ is created using the select and option elements that present users with a group of predefined possible values for the data field. - Answers-selection list Every field set must contain the _____ element, which should have only text and no nested elements for describing its content. - Answers-legend get and post are two possible values for the _____ attribute. - Answers-method Identify a syntax that displays a selection list as a scroll box with 5 options visible in the web form. - Answers- ... Identify a widget that allows the user to interact with the form for entering numeric values confined to a specified range. - Answers-Slider control Identify an attribute that can be added to the input element to validate a text value against a regular expression. - Answers-pattern="regex" Identify the type of control that performs an action. - Answers-A form button Which of the following is true of field sets? - Answers-Field sets act like block elements that can expand to accommodate their content. In the accompanying figure, Box B points to _____. - Answers-option buttons In the accompanying figure, Box E represents a _____. - Answers-Spin box A _____ is any group of characters enclosed within either double or single quotation marks in JavaScript. - Answers-text 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: - Answers-creating 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. - Answers-run-time error A _____ is a collection of commands that performs an action or returns a value. - Answers-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. - Answers-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. - Answers-defer _____ programming distributes the load to prevent a server from getting overloaded with program-related requests. - Answers-Client-side A user can create an embedded script by removing the _____ attribute and placing all of the JavaScript code within the script element. - Answers-src Identify the general structure for accessing each value from an array using for loop. - Answers-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) - Answers-i = 0, 60, 120, 180, 240, 360 identify the expression used to reference array values. - Answers-array [i] Identify the general structure of a for loop. - Answers-for (start; continue; update) { commands } Identify the structure of an if statement. - Answers-if (condition) { commands } Which of the following determines the current size of an array? - Answers-array.length Which of the following examples tests whether x is equal to 5 or y is equal to 8? - Answers-(x === 5) II (y === 8) Identify a method that is used to create a subarray - Answers-slice() Which of the following statements is used to terminate any program loop or conditional statement? - Answers-break For array data that should be treated as a queue, the _________ method is used, which is similar to the pop() method except that it removes the first array item and not the last.

  • Answers-shift()
  • Answers-document.getElementById ("menu1" .className = "menu"; For options buttons and check boxes, use the ______ event handler in response to the user clicking those elements. - Answers-onclick Identify the description for the \b character type. - Answers-A word boundary Identify the description of the option.selected property. - Answers-It returns true if the option has been selected by user Identify the reason for which attribute is added to a form element. - Answers-To append from data to the URL _______ is a selection list property that returns the number of options displayed in the selection list. - Answers-select.length, select.size