



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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
1 / 5
This page cannot be seen from the preview
Don't miss anything!




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.
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?
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.