Workshop

Quiz

  1. In a weakly typed language, the type of data stored by an identifier can be modified in which of the following ways?

    1. By assigning a type to the variable

    2. By assigning a value with the desired type

    3. You cannot alter the type of a variable in a weakly typed language

    4. By performing a recast

  2. Is a comment in an XML file also considered a node?

    1. Yes

    2. No, because it cannot have child nodes

    3. No, because it cannot contain data

  3. If the namespace line

     xmlns:dt="urn:schemas-microsoft-com:datatypes"
    

    is included, it's unnecessary to include the dt prefix when defining data types.

    True

    False

  4. What are some nodes of an XML file that cannot have child nodes.

    1. Comment nodes

    2. Processing instructions

    3. Root nodes

    4. a and b

Get Sams Teach Yourself XML in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.