Monday, November 4, 2019

Quiz 6 19FL-IT250-01 - Advanced Web Design

  • Question 1

    4 out of 4 points
    Which type value for the input element triggers validation in modern browsers?​
    Correct Answer:
    Correctc. 
  • Question 2

    0 out of 4 points
    Enhancements to HTML and to modern browsers have allowed browsers themselves to perform many validation tasks without any extra JavaScript. This type of validation is known as __________ validation.
    Correct Answer:
    Evaluation MethodCorrect AnswerCase Sensitivity
    CorrectExact Matchbrowser-based
    CorrectExact Matchbrowser based
    CorrectExact Matchnative
    CorrectExact MatchHTML5
    CorrectExact MatchHTML 5
  • Question 3

    0 out of 4 points
    In modern browsers, which attribute of an input element prevents the form from being submitted if the field is left blank?​
    Correct Answer:
    Correcta. 
  • Question 4

    4 out of 4 points
    To check a group of fields and trigger an error message if any of them is empty, you use a(n) ____ statement.​
    Correct Answer:
    Correcta. 
  • Question 5

    4 out of 4 points
    Validation errors found by modern browsers are reported in​ ____.
    Correct Answer:
    Correctd. 
  • Question 6

    4 out of 4 points
    For any fields that require numeric values, you can use JavaScript’s built-in ____ function to determine whether a user actually entered a number.
    Correct Answer:
    Correcta. 
  • Question 7

    4 out of 4 points
    Creating a function to validate required fields generally involves retrieving the values of the required fields and checking if the value of any of them is​ __________.
    Correct Answer:
    Evaluation MethodCorrect AnswerCase Sensitivity
    CorrectExact Matchan empty string
    CorrectExact Matchempty string
    CorrectExact Matchempty
    CorrectExact Match""
  • Question 8

    4 out of 4 points
    You use the ____ method on an object to block the action normally associated with an event.​
    Correct Answer:
    Correctd. 
  • Question 9

    4 out of 4 points
    Instead of document.getElementsByTagName("form")[0], you could use the code​
    Correct Answer:
    Correctd. 
  • Question 10

    4 out of 4 points
    By default, browsers create an collection of form objects that you can reference using array notation.
    Correct Answer:
    Correct True
  • Question 11

    4 out of 4 points
    Many aspects of the way browsers present browser-based validation feedback are customizable through the properties and methods of the​ ____.
    Correct Answer:
    Correcta. 
  • Question 12

    4 out of 4 points
    To display no default value on a selection list, you set its ____ property to -1.
    Correct Answer:
    Correcta. 
  • Question 13

    4 out of 4 points
    What element property would you use when copying the contents of one text field to another text field?​
    Correct Answer:
    Correctb. 
  • Question 14

    4 out of 4 points
    For all custom validation, it can be helpful to use the __________ structure​ for handling errors.
    Correct Answer:
    Evaluation MethodCorrect AnswerCase Sensitivity
    CorrectExact Matchtry/catch
    CorrectExact Matchtry catch
  • Question 15

    4 out of 4 points
    Use of the ____ attribute of the form element is not allowed in the strict DTD for XHTML.​
    Correct Answer:
    Correctb. 
  • Question 16

    4 out of 4 points
    Which attribute enhances usability in modern browsers?​
    Correct Answer:
    Correctc. 
  • Question 17

    0 out of 4 points
    Assistive functions perform a type of validation.​
    Correct Answer:
    Correct False
  • Question 18

    4 out of 4 points
    In general, modern browsers display validation feedback after the ____ event is triggered by a form.​
    Correct Answer:
    Correctb. 
  • Question 19

    4 out of 4 points
    You can use HTML to set the default value of a selection list so no option is selected.​
    Correct Answer:
    Correct False
  • Question 20

    4 out of 4 points
    While JavaScript lets you perform validation in a user’s browser, the server-side programs that receive form data generally perform validation as well.
    Correct Answer:
    Correct True
  • Question 21

    0 out of 4 points
    Match each item with a statement below:
    • QuestionCorrect Match
      Displays a validation error in a modern browser
      Correct a. 
      bubble
      ​Reduce the likelihood of user errors when completing a form
      Correct h. 
      assistive functions
      Enables customization of validation feedback in modern browsers
      Correct c. 
      constraint validation API
      Persistence required for a user to accomplish a goal
      Correct j. 
      ​friction
      Determines whether a value is not a number
      Correct d. 
      isNaN() function
      Checking that information provided by users conforms to rules
      Correct b. 
      validation
      Provides guidance about what data should be entered in a text box
      Correct e. 
      placeholder
      If all its properties are false, then its value is true
      Correct g. 
      validity object
      Stops a form from being submitted when the submit event is triggered
      Correct i. 
      preventDefault()
      ​Indicates that a form element must have a value
      Correct f. 
      required
  • Question 22

    4 out of 4 points
    Modern browsers can perform many validation tasks themselves without any extra JavaScript.​
    Correct Answer:
    Correct True
  • Question 23

    4 out of 4 points
    To check if an option button is selected, you access the value of its ____ property.
    Correct Answer:
    Correctb. 
  • Question 24

    4 out of 4 points
    To send the values entered in a form to a web server with JavaScript, you use the __________ method.​
    Correct Answer:
    Evaluation MethodCorrect AnswerCase Sensitivity
    CorrectExact Matchsubmit
    CorrectExact Matchsubmit()
  • Question 25

    4 out of 4 points
    The ____ event fires when a form is submitted.​
    Correct Answer:
    Correctd. 

0 comments:

Post a Comment