Web Form Design and JavaScript Fundamentals, Exams of Nursing

The fundamentals of web form design and javascript programming. It provides an overview of various form elements, such as checkboxes, radio buttons, selection lists, and text areas, and explains how to use html and javascript to create interactive web forms. The document also delves into the basics of javascript, including variables, functions, events, and event handling. It covers topics like client-side programming, event propagation, and cursor manipulation. Additionally, the document explores the use of regular expressions for form validation and the integration of javascript with html forms. This comprehensive resource would be valuable for students and professionals interested in web development, user interface design, and front-end programming.

Typology: Exams

2023/2024

Available from 10/14/2024

Toperthetop
Toperthetop 🇬🇧

3

(6)

27K documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ISDS 3105 Final Exam
a. check box
b. selection list Correct
c. option button
d. text area - correct answer ✔✔A _____ is created using the select and option elements that present
users with a group of predefined possible values for the data field.
a. enctype
b. form
c. legend Correct
d. script - correct answer ✔✔Every field set must contain the _____ element, which should have only
text and no nested elements for describing its content.
b. <select size="5"> ... </select> - correct answer ✔✔Identify a syntax that displays a selection list as a
scroll box with 5 options visible in the web form.
Select one:
a. <option size="5"> ... </option>
b. <select size="5"> ... </select>
c. <option value="5"> ... </option>
d. <select value="5"> ... </select>
b. method - correct answer ✔✔get and post are two possible values for the _____ attribute.
Select one:
a. class
b. method
c. enctype
d. action
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

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

ISDS 3105 Final Exam

a. check box b. selection list Correct c. option button d. text area - correct answer ✔✔A _____ is created using the select and option elements that present users with a group of predefined possible values for the data field. a. enctype b. form c. legend Correct d. script - correct answer ✔✔Every field set must contain the _____ element, which should have only text and no nested elements for describing its content. b. ... - correct answer ✔✔Identify a syntax that displays a selection list as a scroll box with 5 options visible in the web form. Select one: a. b. ... c. d. ... b. method - correct answer ✔✔get and post are two possible values for the _____ attribute. Select one: a. class b. method c. enctype d. action

b. Slider control - correct answer ✔✔Identify a widget that allows the user to interact with the form for entering numeric values confined to a specified range. Select one: a. Reset button b. Slider control c. Option button d. Calendar control d. pattern="regex" - correct answer ✔✔Identify an attribute that can be added to the input element to validate a text value against a regular expression. Select one: a. legend="text" b. method="text" c. enctype="regex" d. pattern="regex" c. A form button - correct answer ✔✔Identify the type of control that performs an action. Select one: a. An input box b. A text area c. A form button d. A selection list c. Field sets act like block elements that can expand to accommodate their content. - correct answer ✔✔Which of the following is true of field sets? Select one: a. Field sets act like control elements that are also called widgets. b. Field sets are created using the tag. c. Field sets act like block elements that can expand to accommodate their content. d. Field sets can contain a maximum of two fields.

d. "mode strict"; a. creating interactive web forms and animated graphics - correct answer ✔✔JavaScript is used as a programming tool for: Select one: a. creating interactive web forms and animated graphics. b. providing virtual reality, diagnosis, and nonlinear controls. c. managing databases. d. designing style sheets for websites. c. semicolon - correct answer ✔✔A command that indicates an action for the browser to take should end with a _____. Select one: a. forward slash b. colon c. semicolon d. backslash a. run-time error - correct answer ✔✔A _____ occurs after a script has been successfully loaded with no syntax errors and is being executed by a browser. Select one: a. run-time error b. fatal error c. logical error d. load-time error c. function - correct answer ✔✔A _____ is a collection of commands that performs an action or returns a value. Select one: a. pointer

b. entity c. function d. argument d. variable - correct answer ✔✔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. Select one: a. constant b. entity c. class d. variable b. defer - correct answer ✔✔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. Select one: a. async b. defer c. type d. charset b. Client-side - correct answer ✔✔_____ programming distributes the load to prevent a server from getting overloaded with program-related requests. Select one: a. Inductive b. Client-side c. Server-side d. Semantic

d. evt.isTrusted c. evt.view - correct answer ✔✔The _____ object property references the browser window in which the event has occurred. Select one: a. evt.eventphase b. evt.target c. evt.view d. evt.currentTarget b. evt.cancelable - correct answer ✔✔Which of the following event properties or methods returns a Boolean value that indicates whether an event can have its default action terminated? Select one: a. evt.stopImmediatePropagation() b. evt.cancelable c. evt.stopPropogation() d. evt.defaultPrevented b. - correct answer ✔✔Which of the following provides the correct syntax for adding an event handler to a page element as an HTML attribute? Select one: a. b. c. d. a. onbeforeunload - correct answer ✔✔The _____ event handler is applied to a page when it is about to be unloaded by the browser. Select one: a. onbeforeunload

b. onload c. onunload d. onbeforeload c. The key is located on the numeric pad. - correct answer ✔✔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? Select one: a. The key is located on the keyboard's left edge. b. The key is located on the keyboard's right edge. c. The key is located on the numeric pad. d. The key is located in the standard position. b. object.style.cursor = cursorTypes; - correct answer ✔✔Which of the following is the syntax to define a cursor in JavaScript? Select one: a. object.style = cursorTypes; b. object.style.cursor = cursorTypes; c. object.cursorTypes = cursor.style; d. object.style.cursorTypes = cursor; c. document.getElementById("menu1").className = "menu"; - correct answer ✔✔Which of the following JavaScript expressions is equivalent to the given HTML code?

Select one: a. document.getElementById("menu1")."menu"; b. Document.getelementbyId("menu1").menu= "class"; c. document.getElementById("menu1").className = "menu"; d. Document.getelementbyId(menu1= "class name".menu);

d. hidden fields - correct answer ✔✔In many web forms, important data is stored within _____ so that the data is available to programmers but removed from the user's control. Select one: a. event handlers b. reference forms c. radio buttons d. hidden fields c. options[idref] - correct answer ✔✔Radio buttons are grouped by a common field name placed within the _____ array. Select one: a. select.length[idref] b. select.options[idref] c. options[idref] d. length[idref] b. document.forms[idref] - correct answer ✔✔Since a page can contain multiple web forms, JavaScript organizes the forms into _____ object collection. Select one: a. document.idref[forms] b. document.forms[idref] c. idref.document[forms] d. forms.document[idref] d. location object - correct answer ✔✔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. Select one: a. selection list

b. hidden field c. reference form d. location object c. select.multiple - correct answer ✔✔Which of the following selection list properties returns true if more than one option can be selected from the list? Select one: a. select.size b. select.length c. select.multiple d. select.options a. select.length - correct answer ✔✔_____ is a selection list property that returns the number of options displayed in the selection list. Select one: a. select.length b. select.multiple c. select.options d. select.size