Web Form Design and JavaScript Fundamentals, Exams of Nursing

A range of topics related to web form design and javascript fundamentals, including the use of html elements like select and option, form validation, javascript syntax and control structures, array manipulation, event handling, and the use of the location object. Detailed explanations and examples for various web form and javascript concepts, making it a valuable resource for students and developers looking to enhance their understanding of these topics. The comprehensive coverage of these subjects, along with the inclusion of multiple-choice questions and correct answers, suggests that this document could be part of an exam or assessment for a course on web development or programming.

Typology: Exams

2023/2024

Available from 10/14/2024

Toperthetop
Toperthetop 🇬🇧

3

(6)

27K documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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. - correct answer ✔✔selection list
Every field set must contain the _____ element, which should have only text and no nested elements for
describing its content. - correct answer ✔✔legend
get and post are two possible values for the _____ attribute. - correct answer ✔✔method
Identify a syntax that displays a selection list as a scroll box with 5 options visible in the web form. -
correct answer ✔✔<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. - correct answer ✔✔Slider control
Identify an attribute that can be added to the input element to validate a text value against a regular
expression. - correct answer ✔✔pattern="regex"
Identify the type of control that performs an action. - correct answer ✔✔A form button
Which of the following is true of field sets? - correct answer ✔✔Field sets act like block elements that
can expand to accommodate their content.
In the accompanying figure, Box B points to _____. - correct answer ✔✔option buttons
In the accompanying figure, Box E represents a _____. - correct answer ✔✔Spin box
A _____ is any group of characters enclosed within either double or single quotation marks in JavaScript.
- correct answer ✔✔text string
pf3
pf4
pf5

Partial preview of the text

Download Web Form Design and JavaScript Fundamentals and more Exams Nursing 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. - correct answer ✔✔selection list Every field set must contain the _____ element, which should have only text and no nested elements for describing its content. - correct answer ✔✔legend get and post are two possible values for the _____ attribute. - correct answer ✔✔method Identify a syntax that displays a selection list as a scroll box with 5 options visible in the web form. - correct answer ✔✔ ... Identify a widget that allows the user to interact with the form for entering numeric values confined to a specified range. - correct answer ✔✔Slider control Identify an attribute that can be added to the input element to validate a text value against a regular expression. - correct answer ✔✔pattern="regex" Identify the type of control that performs an action. - correct answer ✔✔A form button Which of the following is true of field sets? - correct answer ✔✔Field sets act like block elements that can expand to accommodate their content. In the accompanying figure, Box B points to _____. - correct answer ✔✔option buttons In the accompanying figure, Box E represents a _____. - correct answer ✔✔Spin box A _____ is any group of characters enclosed within either double or single quotation marks in JavaScript.

  • correct answer ✔✔text string

Identify a statement that is added to the first line of the file to run a script in strict mode. - correct answer ✔✔"use strict"; JavaScript is used as a programming tool for: - correct answer ✔✔creating interactive web forms and animated graphics. A command that indicates an action for the browser to take should end with a _____. - correct answer ✔✔semicolon A _____ occurs after a script has been successfully loaded with no syntax errors and is being executed by a browser. - correct answer ✔✔run-time error A _____ is a collection of commands that performs an action or returns a value. - correct answer ✔✔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. - correct answer ✔✔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. - correct answer ✔✔defer _____ programming distributes the load to prevent a server from getting overloaded with program- related requests. - correct answer ✔✔Client-side A user can create an embedded script by removing the _____ attribute and placing all of the JavaScript code within the script element. - correct answer ✔✔src Identify the general structure for accessing each value from an array using for loop. - correct answer ✔✔for (var i = 0; i < array.length; i++) { commands involving array [i] } What is the output of the following code?

In the _______ phase, the event moves down the object hierarchy, starting from the root element and moving inward until it reaches the object that initiated the event. - correct answer ✔✔capture The ______ event property returns a Boolean value that indicates whether the browser depends upon the event. - correct answer ✔✔evt.isTrusted The ______ object property references the browser window in which the event has occurred. - correct answer ✔✔evt.view Which of the following event properties or methods returns a Boolean value that indicates whether an event can have its default action terminated? - correct answer ✔✔evt.cancelable which of the following provides the correct syntax for adding an event handler to a page element as an HTML attribute? - correct answer ✔✔ The ______ event handler is applied to a page when it is about to be unloaded by the browser. - correct answer ✔✔onbeforeunload Which of the following is the correct location of a key on a keyboard if the value of the keyboard property evt.location is 3? - correct answer ✔✔The key is located on the numeric pad. Which of the following is the syntax to define a cursor in JavaScript? - correct answer ✔✔object.style.cursor = cursorTypes; Which of the following JavaScript expressions is equivalent to the given HTML code?

  • correct answer ✔✔document.getElementById ("menu1" .className = "menu"; For options buttons and check boxes, use the ______ event handler in response to the user clicking those elements. - correct answer ✔✔onclick

Identify the description for the \b character type. - correct answer ✔✔A word boundary Identify the description of the option.selected property. - correct answer ✔✔It returns true if the option has been selected by user Identify the reason for which attribute is added to a form element.

  • correct answer ✔✔To append from data to the URL In many web forms, important data is stored within ______ so that the data is available to programmers but removed from the user's control. - correct answer ✔✔hidden fields Radio buttons are grouped by a common field name placed within the ____ array - correct answer ✔✔options [idref] Since a page can contain multiple web forms, JavaScript organizes the forms into _____ object collection.
  • correct answer ✔✔document.forms [idref] Using the ______, you can direct the browser to retrieve specific information about the URL, to reload the current page, or to load an entirely new page. - correct answer ✔✔location object Which of the following selection list properties returns True if more than one option can be selected from the list? - correct answer ✔✔select.multiple _______ is a selection list property that returns the number of options displayed in the selection list. - correct answer ✔✔select.length, select.size