is448exam

  1. An event handler is a program segment designed to execute when a certain event occurs.
    True
  2. For this HTML form,<form name="newForm" action = “test.php"> <input type = "button" name = "newButton" value="Click me"></form>which of the following is a valid way to reference the button input element in the Javascript code.
    all of the above
    var element = document.newForm.newButton;
    var element = document.newForm.newButton;
  3. Javascript code can view and modify the HTML-DOM objects, thus causing changes to appear on the web page
    True
  4. When event handlers are registered by assigning to an attribute of an HTML element, then parameters cannot be passed to the event handler function.
    False
  5. The XHTML tag attribute corresponding to the event keydown is
    onkeydown
  6. If we want an event handler function to execute when the page has been loaded, then the onload attribute of the <body> tag must be used to specify the event handler.
    True
  7. Event handlers can be registered to properties or to XHTML attributes. For example, both of these cases are valid approaches to register event handlers for a form with the id 'myForm' with a radio button with the id '152':Example of registering to property: In Javascript code:document.getElementById("myForm").getElementById("152").onclick = planeChoice;Example of Registering to XHTML attribute: In HTML code:<input type="radio" name="planeButton" value="152" id="152" onclick="planeChoice(152)" />
    True
  8. Checking of form input is a common application of Javascript.
    True
  9. Every Document object has an elements array, where each element of the array represents a form in the document.
    False
  10. HTML elements can be accessed in Javascript either by their name, or their ID, or by their DOM address.Answer
    True
  11. Color and font properties of an HTML element can be manipulated dynamically through the style object of the HTML element
    True
  12. In Internet Explorer, the event object must be accessed as window.event, whereas in Firefox, the event object is accessed as event itself.
    True
  13. Relative position mode allows changing position of an HTML element relative to where the element would be with respect to static positioning.
    True
  14. The clientX and clientY properties give the position in pixels relative to the upper left-hand corner of the screen.
    False
  15. The z-index style property can be used to govern the layering of elements in the HTML display.
    True
  16. The top and left properties can be used when the position property is set to static.
    True
  17. The setInterval method in Javascript allows the execution of an event-handler function at multiple evenly-spaced times.
    True
  18. A DTD is a set of declarations that specifies the set of elements that can appear in an XML document, and where and how these elements may appear.
    True
  19. In a well-formed XML document, there can be multiple root elements.
    True
  20. When entity is longer than a few words, the keyword SYSTEM may be used to indicate that an external file is being used.
    True
  21. XML is a meta-markup language that specifies rules for creating markup languages.
    True
  22. Nested tags are allowed in XML.
    True
  23. XML names used to name elements and attributes must begin with a letter or an underscore and can include digits, hyphens and periods.
    True
  24. If the name of an entity is henry, the reference to the entity is written as *henry;
    False
  25. A DTD is a set of structural rules which specify a set of elements and where these elements can occur in XML documents.
    True
  26. In DTDs, the form of an element declaration for the element icecream is <!ENTITY icecream(brand, flavor)>
    False
  27. CSS can be used to style and display elements in XML documents.
    True
  28. What is the prefix for the HTML namespace in the following statement?<root xmlns:abc="http://www.w3.org/TR/html4/" xmlns:def="http://www.w3schools.com/furniture">
    abc
  29. Facets such as maxLength can be used to define constraints on simple user-defined data types.
    True
  30. In schema definition documents, a complex type is used to define an XML element that contains other elements and/or attributes.
    True
  31. The XPath is a language of expressions used to identify parts of XML documents.
    True
  32. In XML schemas, both simple and complex types can be either named or anonymous.
    True
  33. Using schemas, the content of a specific element can be set to any one of 44 data types.
    True
  34. Namespaces are used to avoid name conflicts, when element names in XML Documents come from different sources.
    True
  35. XPath expressions that do not begin with a / (slash) are relative addresses with respect to the last node fround by the XSLT processor.
    True
  36. The value-of element and the select attribute are used to specify the XML element whose contents are to be copied.
    True
  37. The all element in XML schemas is used when specifying a complex type element whose child elements are an ordered group.
    False
Author
tttran1
ID
148076
Card Set
is448exam
Description
exam for is448
Updated