Exam 13: Programming for Web Forms Tutorial

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

To make a regular expression insensitive to case, add the i flag to the regular expression.

(True/False)
5.0/5
(34)

Which of the following objects is used by JavaScript to store the reason for failing validation?

(Multiple Choice)
4.8/5
(33)

Case based critical thinking Case 13-4 Samantha is working on a web document. She wants to direct the browser to retrieve specific information about a URL, to reload the current page, and to load an entirely new page. Identify the object that Samantha should use to meet her desired requirements.

(Multiple Choice)
4.8/5
(38)

Explain how you can work with radio buttons and check boxes.

(Essay)
4.9/5
(44)

Explain how the Luhn Algorithm can be used to test for legitimate card numbers.

(Essay)
4.9/5
(43)

Which of the following character types is used for any non-white-space character?

(Multiple Choice)
4.9/5
(32)

Identify the object constructor that can be used to create a text string explicitly.

(Multiple Choice)
4.7/5
(46)
Match the following validation states to their respective descriptions.
The element contains data whose character length exceeds the value of the length attribute.
element.validity.customError
The field element, element , contains data that the browser is unable to convert.
element.validity.tooLong
The element contains data that does not match the data type specified by the type attribute.
element.validity.badInput
Correct Answer:
Verified
Premises:
Responses:
The element contains data whose character length exceeds the value of the length attribute.
element.validity.customError
The field element, element , contains data that the browser is unable to convert.
element.validity.tooLong
The element contains data that does not match the data type specified by the type attribute.
element.validity.badInput
The element contains data that does not match the character pattern specified in the pattern attribute.
element.validity.patternMismatch
A custom validation message has been set to a nonempty text string using the setCustomValidity() metho d.
element.validity.valid
The element contains valid data, satisfying all constraints.
element.validity.typeMismatch
(Matching)
4.8/5
(29)

Which of the following descriptions corresponds to the currency:code option from the toLocaleString() method?

(Multiple Choice)
4.8/5
(41)

The option.text method returns the field value of option .

(True/False)
4.8/5
(34)

Which of the following methods can be used to extract longer text strings?

(Multiple Choice)
4.7/5
(45)

The \D character signifies a digit from 0 to 9.

(True/False)
4.9/5
(40)

In many web forms, important data is stored within _____ so that the data is available to programmers but removed from the user's control.

(Multiple Choice)
4.8/5
(34)

The regular expression for 4-digit CVC numbers used by American Express card holders is /^\d{4}$/ .

(True/False)
4.9/5
(42)

The value associated with a checked box is stored in the name property of the check box object.

(True/False)
4.8/5
(27)

The input.defaultValue method returns whether the input box is read-only or not.

(True/False)
4.7/5
(32)

Identify the description of the option.selected property.

(Multiple Choice)
5.0/5
(37)

Case based critical thinking Case 13-2 Lisa can control the number of digits displayed by the browser using the toFixed() method. However, since the toFixed() method is limited to only defining the decimal place accuracy, she wants to use a method that gives her more control over the numeric format, such as formatting numbers as currency or separating thousands with the comma symbol. Which of the following methods should Lisa use to format the numbers as currency?

(Multiple Choice)
4.9/5
(40)
Showing 61 - 78 of 78
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)