XML: Solution Test Theory


Khóa học qua video:
Lập trình Python All Lập trình C# All SQL Server All Lập trình C All Java PHP HTML5-CSS3-JavaScript
Đăng ký Hội viên
Tất cả các video dành cho hội viên

Kiểm tra kiến thức bài 1.1

  1. (A) - True, (B) – False, (C) – True, (D) – True, (E) - True
  2. (A) - False, (B) - True, (C) - False, (D) - True, (E) – True

Kiểm tra kiến thức bài 1.2

  1. (A) - True, (B) – True, (C) – True, (D) – False, (E) - True
  2. (A) – True, (B) – False, (C) – True, (D) – False, (E) - True
  3. (A) – True, (B) – False, (C) – True, (D) – False, (E) – False

Kiểm tra kiến thức bài 1.3

  1.  (A)
  2.  (C)

Kiểm tra kiến thức bài 1.4

  1. (A) – False, (B) – False, (C) – True, (D) – True, (E) - False
  2. (A) – False, (B) – False, (C) – True, (D) – True, (E) - False

Kiểm tra kiến thức bài 2.1

  1. (A) - False, (B) - True, (C) - True, (D) - False

Kiểm tra kiến thức bài 2.2

  1. (A)
  2. (A) - False, (B) - True, (C) - False, (D) - False, (E) - True
  3. (A) - True, (B) - False, (C) - False, (D) - True, (E) - False

Kiểm tra kiến thức bài 3.1

  1. (A) - (False), (B) - (True), (C) - (True), (D) - (True), (E) - (False)

Kiểm tra kiến thức bài 3.2

  1.  (A) - (False), (B) - (True), (C) - (True), (D) - (True), (E) - (False)
  2.  (6) => (2) => (4) => (1) => (3) => (5).

Kiểm tra kiến thức bài 3.3

  1. (C)

Kiểm tra kiến thức bài 3.4

  1. (A) - (3), (B) - (4), (C) - (5), (D) - (1), (E) - (2)
  2. (A) - (2), (B) - (4), (C) - (5), (D) - (1), (E) - (3)
  3. (D)

Kiểm tra kiến thức bài 4.1

  1. (A) - True, (B) - False, (C) - False, (D) - True, (E) - True
  2. (A) – (4), (B) - (1), (C) - (5), (D) - (3), (E) - (2)

Kiểm tra kiến thức bài 4.2

  1. (A) – (2), (B) - (5), (C) - (4), (D) - (1), (E) - (3)
  2. (4) => (5) => (2) => (1) => (3).

Kiểm tra kiến thức bài 4.3

  1. (A) - False, (B) - True, (C) - True, (D) - False, (E) - False
  2. (A) - False, (B) - True, (C) - False, (D) - True
  3. (A) - False, (B) - True, (C) - True, (D) - False

Kiểm tra kiến thức bài 4.4

  1. (A) - False, (B) - True, (C) - True, (D) - False, (E) - True
  2. (A) – (4), (B) - (1), (C) - (5), (D) - (2), (E) - (3)

Kiểm tra kiến thức bài 5.1

  1. (A) - True, (B) - False, (C) - True, (D) - False, (E) - True

Kiểm tra kiến thức bài 5.2

  1. (A) - False, (B) - True, (C) - True, (D) - True, (E) - False

Kiểm tra kiến thức bài 5.3

  1. 1.      (A) - (3), (B) - (4) , (C) - (5) , (D) - (1) , (E) - (2)
  2. display: block; background-color: blue; color: white; border: medium solid magenta; text-indent: 20
  3. (A) - (5), (B) - (3), (C) - (2), (D) - (4) , (E) - (1)

Kiểm tra kiến thức bài 5.4

  1. (A) - True, (B) - True, (C) - False, (D) - True, (E) - False

Kiểm tra kiến thức bài 6.1

  1. (4) => (5) => (1) => (3) => (2).
  2. (A) - (3), (B) - (5), (C) - (4), (D) - (1), (E) - (2)
  3. (A) - (False), (B) - True, (C) - (True), (D) - (False), (E) - (True)

Kiểm tra kiến thức bài 6.2

  1. (C)
  2. (A) - (5), (B) - (3), (C) - (1), (D) - (2), (E) - (4)
  3. (D)

Kiểm tra kiến thức bài 7.1

  1. (A) - False, (B) – True, (C) – False, (D) – True, (E) - True
  2. (A) – (3), (B) - (5), (C) - (4), (D) - (1), and (E) - (2)
  3. (A) – (4), (B) – (1), (C) – (2), (D) – (5), and (E) – (3)

Kiểm tra kiến thức bài 7.2

  1. (A) - True, (B) – True, (C) – True, (D) – False, (E) - False
  2. (A) - True, (B) – True, (C) – False, (D) – False, (E) - True

Kiểm tra kiến thức bài 7.3

  1. (A) - False, (B) – True, (C) – True, (D) – True, (E) - False
  2. (A)

Các câu hỏi khác

1. What is XML? XML stands for Extensible Markup Language. XML identifies and defines a structure for the content in the document by adding markup to the documents. It also improves the functionality of the Web by letting the person identify his/her information in a more accurate, flexible, and adaptable way.

2. What is the function of an XML parser? An XML parser reads the document and calls for various handler functions as the corresponding events occur. XML parser verifies the document for its well-formed ness and identifies which XML tags are present and what they contain. Basically, an XML parser manipulates the document and loads it into the computer’s memory.

3. What are CDATA and PCDATA? The text inside a CDATA section is not parsed by the XML parser. It instructs the parser not to recognize some characters as markup. A text is considered as a CDATA section if it contains ‘<’ or ‘<&> characters. The data that is parsed by the parser is called as parsed character data (PCDATA). The PCDATA specifies that the element has parsed character data.

4. What are attributes? Additional information about an element can be given in the form of attributes. They generally provide information that is not present in data. Attributes are formed in name-value pairs. They occur inside the start-tags after the element name. The attribute values must be enclosed either in single or double quotes. An XML attribute can be of any of the following types: CDATA Entity and Entities Enumeration ID IDREF and IDREFS NMTOKEN and NMTOKENS NOTATION Attributes can contain some of the disadvantages such as it cannot contain multiple values, it cannot describe structures.

5. Why are namespaces necessary? When authors begin integrating the XML documents from different developers, naming conflicts for some of the elements of same names are inevitable. In order to avoid these conflicts, XML provides the users with a mechanism called namespace. With the help of these namespaces, the elements and attributes with same names can now be shared by the developers working on similar projects all over the world. XML namespaces not only avoid naming conflicts but also provide the users with various tools to process XML.

6. What is DTD? A Document Type Definition (DTD) is a non XML document made up of elements, attributes and entity declarations. A DTD defines all the building blocks used in an XML document. A DTD can be declared either internally or can be used as an external reference.

7. What is meant by Document Type Declaration? A document type declaration focuses on the logical structure of an XML document. A document type declaration contains element type declaration, attribute-list declaration, entity declaration or an entity declaration. It ensures that the XML file in which it is present adhere to a certain DTD by specifying the name of that DTD and its content or location.

8. What is an entity in an XML document? An entity, in XML, is a placeholder that consists of a name and a value. It is declared once and then repeatedly used throughout the document in place of its value.

9. What are data types in XML Schema? XML Schema describes a number of built-in data types. It is used to specify and validate the intended data types for the content. It also allows a user to create a user-defined data type by extending the built-in data types using facets.

10. What is a complex type element? A schema assigns a type to each element and attribute it declares. Elements with complex type may contain nested elements and attributes. Complex data type can be assigned only to an element. Complex data type can contain either simple or complex content. Both these groups allows attributes but simple content consists of character content and complex content give way to child elements.

11. What are minOccurs and maxOccurs? minOccurs specify the minimum number of occurrences of the element in an XML document. maxOccurs specify the maximum number of occurrences of the element in an XML document.

12. How do you identify element content and a mixed content? Both element content and mixed content has its structure as complex type. Element content has an element that comprises other elements whereas mixed content has elements containing both text and elements.

13. What is a simple type element? A simple type element is an XML element or attribute, which contains only text and no other elements or attributes.

14. What are the various parsing techniques? Various parsing techniques are Event-driven parsing and Object-based parsing. In event-driven parsing, the XML document is read in a sequential order. Each time it parses a significant amount of document, such as an element, it makes a call to the application. In object-based parsing, the XML document is read by the parser in the memory.

15. What are the browsers that support XML and from where can they be downloaded? The following list contains the names of browsers that support XML and also from where they can be downloaded. Microsoft Internet Explorer 6.0 and later http://www.microsoft.com/windows/products/winfamily/ie/default.mspx Mozilla Firefox 0.9 and later http://www.mozilla.com/en-US/firefox/

16. What are the available XML editors? There are too many to be counted and listed. Every day, a new XML editor or related software is being developed in some corner of the world. The most popular editors are: Authentic Cooktop XMLWriter XMLPro XMLMind Stylus Studio TextPad

17. What is meant by a markup language? A markup language is a set of rules, grammar and syntax that tells how a language used to mark up a document should be used.

18. Who can use XML? Any developer who works with data documents, web technologies and the Internet can use XML.

19. What is the relationship between XML and Java? Java can be used to write code that can process and manipulate XML data. XML and Java can work side by side, in conjunction with one another. They have a number of features in common.

20. Can we combine XML DTDs and Schemas? Yes, though XML DTDs and Schemas are independent of each other and work separately, it is also possible to combine them. To do this, you need to ensure that your schema processor has a validating processor as its first stage.

21. If an XML document is referenced both a Schema as well as a DTD, which would be given greater preference? The DTD would be given greater preference because validation always comes first. If a DTD is present, then schema validation is conducted after the DTD validation.

22. Is it possible to convert a DTD to a schema? Yes, it is possible to do so. There are tools such as DTD2Schema available which can help to convert a DTD to a schema.

23. Can a complex type contain another complex type? Yes, it can. 

24. b)

25. b)

26. a)

27. c)

28. a)

29. b) và d)

30. a)

31. a)

32. b) và d)

33. c)

34. a)

35. b)

36. a)

37. a)

38. b)

« Trước: Assignments
Khóa học qua video:
Lập trình Python All Lập trình C# All SQL Server All Lập trình C All Java PHP HTML5-CSS3-JavaScript
Đăng ký Hội viên
Tất cả các video dành cho hội viên
Copied !!!