




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
Key concepts and techniques related to web form design and javascript fundamentals. It provides an overview of various form elements, including selection lists, field sets, form buttons, and numeric input controls. The document also delves into javascript programming basics, such as variables, functions, loops, conditional statements, and event handling. Additionally, it explores topics like client-side programming, array manipulation, and regular expression validation. This comprehensive resource would be valuable for students studying web development, user interface design, and introductory programming courses at the university level.
Typology: Exams
1 / 8
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. - answer ✅✅selection list Every field set must contain the _____ element, which should have only text and no nested elements for describing its content. - answer ✅✅legend get and post are two possible values for the _____ attribute. - answer ✅✅method Identify a syntax that displays a selection list as a scroll box with 5 options visible in the web form. - answer ✅✅
Identify a widget that allows the user to interact with the form for entering numeric values confined to a specified range. - answer ✅✅Slider control Identify an attribute that can be added to the input element to validate a text value against a regular expression. - answer ✅✅pattern="regex" Identify the type of control that performs an action. - answer ✅✅A form button Which of the following is true of field sets? - answer ✅✅Field sets act like block elements that can expand to accommodate their content. In the accompanying figure, Box B points to _____. - answer ✅✅option buttons In the accompanying figure, Box E represents a _____. - answer ✅✅Spin box A _____ is any group of characters enclosed within either double or single quotation marks in JavaScript. - answer ✅✅ text string Identify a statement that is added to the first line of the file to run a script in strict mode. - answer ✅✅"use strict";
Identify the general structure for accessing each value from an array using for loop. - answer ✅✅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) - answer ✅✅i = 0, 60, 120, 180, 240, 360 identify the expression used to reference array values. - answer ✅✅array [i] Identify the general structure of a for loop. - answer ✅✅for (start; continue; update) { commands } Identify the structure of an if statement. - answer ✅✅if (condition) { commands } Which of the following determines the current size of an array? - answer ✅✅array.length Which of the following examples tests whether x is equal to 5 or y is equal to 8? - answer ✅✅(x === 5) II (y === 8)
Identify a method that is used to create a subarray - answer ✅✅slice() Which of the following statements is used to terminate any program loop or conditional statement? - answer ✅✅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. - answer ✅✅shift() Identify the sequence of the occurrence of events when a user types a keyboard key. - answer ✅✅keydown, keypress, keyup 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.
For options buttons and check boxes, use the ______ event handler in response to the user clicking those elements. - answer ✅✅onclick Identify the description for the \b character type. - answer ✅✅A word boundary Identify the description of the option.selected property. - answer ✅✅It returns true if the option has been selected by user Identify the reason for which