XML: Managing with the Java Platform

Similar documents
XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11

Chapter 1: Getting Started. You will learn:

XML. Objectives. Duration. Audience. Pre-Requisites

Markup Languages SGML, HTML, XML, XHTML. CS 431 February 13, 2006 Carl Lagoze Cornell University

CSI 3140 WWW Structures, Techniques and Standards. Representing Web Data: XML

XML: Extensible Markup Language

Tutorial 2: Validating Documents with DTDs

Data Exchange. Hyper-Text Markup Language. Contents: HTML Sample. HTML Motivation. Cascading Style Sheets (CSS) Problems w/html

XML. Jonathan Geisler. April 18, 2008

COMP9321 Web Application Engineering

Data Presentation and Markup Languages

M359 Block5 - Lecture12 Eng/ Waleed Omar

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML

Introduction to XML. XML: basic elements

Delivery Options: Attend face-to-face in the classroom or via remote-live attendance.

TagSoup: A SAX parser in Java for nasty, ugly HTML. John Cowan

7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML

XML 2 APPLICATION. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.

Delivery Options: Attend face-to-face in the classroom or remote-live attendance.

Introduction to XML. An Example XML Document. The following is a very simple XML document.

COMP9321 Web Application Engineering. Extensible Markup Language (XML)

XML. Presented by : Guerreiro João Thanh Truong Cong

The concept of DTD. DTD(Document Type Definition) Why we need DTD

Introduction p. 1 An XML Primer p. 5 History of XML p. 6 Benefits of XML p. 11 Components of XML p. 12 BNF Grammar p. 14 Prolog p. 15 Elements p.

XML Parsers. Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University

.. Cal Poly CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar..

COMP9321 Web Application Engineering

extensible Markup Language

Solutions. a. Yes b. No c. Cannot be determined without the DTD. d. Schema. 9. Explain the term extensible. 10. What is an attribute?

B.V.Patel Institute of Business Management, Computer & Information Technology, UTU

Introduction to XML. Large Scale Programming, 1DL410, autumn 2009 Cons T Åhs

XML 2 APPLICATION. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.

Document Parser Interfaces. Tasks of a Parser. 3. XML Processor APIs. Document Parser Interfaces. ESIS Example: Input document

XML. extensible Markup Language. Overview. Overview. Overview XML Components Document Type Definition (DTD) Attributes and Tags An XML schema

A tutorial report for SENG Agent Based Software Engineering. Course Instructor: Dr. Behrouz H. Far. XML Tutorial.

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

Java EE 7: Back-end Server Application Development 4-2

CSC Web Technologies, Spring Web Data Exchange Formats

Introduction to XML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University

11. EXTENSIBLE MARKUP LANGUAGE (XML)

Overview. Introduction. Introduction XML XML. Lecture 16 Introduction to XML. Boriana Koleva Room: C54

SRI VIDYA COLLEGE OF ENGINEERING & TECHNOLOGY- VIRUDHUNAGAR

Author: Irena Holubová Lecturer: Martin Svoboda

XML SCHEMA INFERENCE WITH XSLT

XML, XPath, and XSLT. Jim Fawcett Software Modeling Copyright

Introduction to XML 3/14/12. Introduction to XML

The XML Metalanguage

2009 Martin v. Löwis. Data-centric XML. XML Syntax

CSS, Cascading Style Sheets

SDPL : XML Basics 2. SDPL : XML Basics 1. SDPL : XML Basics 4. SDPL : XML Basics 3. SDPL : XML Basics 5

XML. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior

COPYRIGHTED MATERIAL. Contents. Part I: Introduction 1. Chapter 1: What Is XML? 3. Chapter 2: Well-Formed XML 23. Acknowledgments

XML in the Development of Component Systems. Parser Interfaces: SAX

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Web architectures Laurea Specialistica in Informatica Università di Trento. DOM architecture

XML & Related Languages

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1

XML Primer Plus By Nicholas Chase

웹기술및응용. XML Basics 2018 년 2 학기. Instructor: Prof. Young-guk Ha Dept. of Computer Science & Engineering

Internet Application Developer

XML Processing & Web Services. Husni Husni.trunojoyo.ac.id

W3C XML XML Overview

XML Technologies. Doc. RNDr. Irena Holubova, Ph.D. Web pages:

XML. extensible Markup Language. ... and its usefulness for linguists

XML Programming in Java

XPath. Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University

Introduction to XML. Chapter 133

Web Technologies Present and Future of XML

IBM. XML and Related Technologies Dumps Braindumps Real Questions Practice Test dumps free

XML for Java Developers G Session 3 - Main Theme XML Information Modeling (Part I) Dr. Jean-Claude Franchitti

The Xlint Project * 1 Motivation. 2 XML Parsing Techniques

XML for Java Developers G Session 3 - Main Theme XML Information Modeling (Part I) Dr. Jean-Claude Franchitti

AIM. 10 September

Inf 202 Introduction to Data and Databases (Spring 2010)

Structured documents

XML Overview, part 1

Chapter 13 XML: Extensible Markup Language

KINGS COLLEGE OF ENGINEERING 1

User Interaction: XML and JSON

XML. Marie Dubremetz Uppsala, April 2014

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Chapter 2 XML, XML Schema, XSLT, and XPath

IT2353 WEB TECHNOLOGY Question Bank UNIT I 1. What is the difference between node and host? 2. What is the purpose of routers? 3. Define protocol. 4.

HTML and XML. XML stands for extensible Markup Language

What is XML? XML is designed to transport and store data.

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 14 Database Connectivity and Web Technologies


CS6501 IP Unit IV Page 1

Part 2: XML and Data Management Chapter 6: Overview of XML

Intro to XML. Borrowed, with author s permission, from:

XML Information Set. Working Draft of May 17, 1999

Chapter 1: Semistructured Data Management XML

Chapter 7: XML Namespaces

Tradeoffs and Guidelines for Selecting Technologies to Generate Web Content from Relational Data Stores

4 SAX. XML Application. SAX Parser. callback table. startelement! startelement() characters! 23

Call: JSP Spring Hibernate Webservice Course Content:35-40hours Course Outline

7.1 Introduction. 7.1 Introduction (continued) - Problem with using SGML: - SGML is a meta-markup language

Chapter 10: Understanding the Standards

INTERNET PROGRAMMING XML

1 <?xml encoding="utf-8"?> 1 2 <bubbles> 2 3 <!-- Dilbert looks stunned --> 3

Transcription:

In order to learn which questions have been answered correctly: 1. Print these pages. 2. Answer the questions. 3. Send this assessment with the answers via: a. FAX to (212) 967-3498. Or b. Mail the answers to the following address: Client contact: SYS-ED PO Box 1213 New York, NY 10156 Name: Company: Address: City, State, Zip: Phone Number: Fax Number: E-mail: COMPUTER EDUCATION TECHNIQUES, INC. (XML Java Platform - Pre & Post Course Quiz - 5.2) SA: Page 1

1. The method of marking up parts of a document with "tags originated from: a. ASP b. PHP c. Java d. C# e. SGML 2. The list of elements, attributes, entities and other declarations by which the tags mark up the text are called: a. DTD b. Java c. JSP d. ASP 3. Which is not used by HTML? a. Publish online documents with headings, text, tables, lists, photos, etc. b. Retrieve online information via hypertext links, at the click of a button. c. Design forms for conducting transactions with remote services, for use in searching for information, making reservations, ordering products, etc. d. Include spreadsheets, video clips, sound clips, and other applications directly in their documents. e. None of the above; they are all used. 4. XML provides a facility to define (two answers): a. Tags b. Structural relationships between tags c. Configuration d. Semantics e. Algorithms 5. Which is not an advantage associated with XML? a. The data is self-describing. b. The data is always small. c. The data can be manipulated with standard tools. d. The data can be viewed with standard tools. e. Different views of the same data can be created with style sheets. 6. Which is not associated with XML as an advantage as compared to other formats when storing information? a. XML allows developers to create their own labeled structures for storing information. b. XML parsing is well-defined and widely implemented, making it possible to retrieve information from XML documents in a variety of environments. c. XML is built on a Unicode foundation, making it easier to create internationalized documents. d. Applications can rely on XML parsers to perform structural validation, as well as data type checking when schemas are used. e. XML formats is not text-based, making them more readable, easier to document, and sometimes easier to debug. COMPUTER EDUCATION TECHNIQUES, INC. (XML Java Platform - Pre & Post Course Quiz - 5.2) SA: Page 2

7. The specification which defines the standard stylesheet language for XML is: a. XML b. XSL c. XPointer d. CSS 8. XML data can also be stored inside HTML pages as: a. Chunks b. Threads c. Data Islands d. Schemas 9. XML lets developers qualify element names in a recognizable manner to avoid conflicts between elements with the same name. a. imports b. namespaces c. HFS d. XSLT 10. The XML in the browser can read a string of XML data, process it, generate a structured tree, and expose all data elements as objects using the DOM. a. Plug-in b. Tree c. Parser d. Meta Program 11. The is a de facto API Application Program Interface which defines a standard for developers to interact with the elements of the XML structured tree. a. DOM b. ASP c. SDK d. RMI 12. The XML typically appears as the first line in an XML document. a. Import b. Declaration c. DTD d. Stylesheet e. Master 13. The xml-stylesheet processing instruction must appear in the. a. Declarations b. Body c. Interface d. Prolog COMPUTER EDUCATION TECHNIQUES, INC. (XML Java Platform - Pre & Post Course Quiz - 5.2) SA: Page 3

14. The DOCTYPE declaration provides a space for a document to identify its element and DTD - document type definition by reference to an external file, through direct declarations, or both. a. Root b. Context c. Description d. b and c 15. XML comments begin with a: a. /* b. <! c. -- d.?/ 16. Which of the following is NOT true: a. All elements must have names. b. Element names are case-sensitive. c. Element names must start with a letter or underscore. d. An element name can contain letters, digits, hyphens, underscores, and periods. e. They are all true. 17. Entity references are a markup that is replaced with character data when the document is parsed. Which of the following is an example of entity references. a. /LT b. t c. & d. return-code 18. CDATA sections are used when: a. All text is required to be interpreted as pure character data rather than as markup. b. Data is to be translated to another format. c. There are separate sections of data. d. b and c. 19. A document can only be if it complies with the syntax of XML. a. Compiled b. Well-formed c. Transformed d. Processed 20. A document type definition does not contain: a. elements b. attributes c. kernel d. notations e. entities COMPUTER EDUCATION TECHNIQUES, INC. (XML Java Platform - Pre & Post Course Quiz - 5.2) SA: Page 4

21. SAX, the Simple API for XML, is based on two interfaces, the XMLReader interface that represents the parser and the interface that receives data from the parser. a. XMLParser b. XMLReaderP c. ContentHandler d. XMLSAX e. a or b 22. SAX was designed around abstract interfaces rather than concrete classes in order that it could be layered on top of existing native APIs. a. Validater b. Parsers c. Interpreter d. Compiler e. Executor 23. SAX uses the design pattern to tell client applications what s in a document. a. Blanket b. Reference c. Crimson d. Observer 24. A single XMLReader may parse multiple documents and may do so with the same ContentHandler. Consequently it will be important to ascertain where one document ends and the next document begins. In order to provide this information, the parser invokes as soon as it begins parsing a new document and before it invokes any other methods in ContentHandler. a. BeginTrans() b. startdocument() c. Document() d. Start() e. BeginDocument() 25. When the parser encounters a start-tag, it calls the method. a. startelement() b. starttag() c. begintag() d. Tag() 26. The type of the attribute is reported as one of nine constant strings. Which is NOT an attribute type? a. CDATA b. ID c. CHAR d. NMTOKEN e. NMTOKENS COMPUTER EDUCATION TECHNIQUES, INC. (XML Java Platform - Pre & Post Course Quiz - 5.2) SA: Page 5

27. The fundamental concept of is that an XMLReader, instead of receiving XML text directly from a file, socket, or other source, receives already parsed events from another XMLReader. a. Filters b. Redirection c. XMLReader2 d. XMLExtract 28. According to DOM, an XML document is a made up of nodes of several types. a. Process b. Tree c. Stack d. Queue e. Filter 29. DOM divides nodes into twelve types, seven of which can potentially be part of a DOM tree: Which of the following is NOT one of the types? a. Document nodes b. Element nodes c. Text nodes d. Attribute nodes e. They are all valid. 30. The third batch of methods allow a tree to be navigated by finding the parent, first child, last child, previous and next siblings, and attributes of any node. Since not all nodes have children, the presence of these things need to be tested for before calling the getfirstchild() and getlastchild() methods. a. isparent() b. haschildren() c. ischild() d. getchildcount() 31. DOM stores the lists of children of each node in objects. a. NodeList b. ChildList c. ListChild d. Childs 32. The generic exception for essentially anything that can go wrong while working with DOM, ranging from logical errors such as making an element one of its own children to implementation bugs is known as: a. XMLException b. ChildException c. DOMException d. Bug COMPUTER EDUCATION TECHNIQUES, INC. (XML Java Platform - Pre & Post Course Quiz - 5.2) SA: Page 6

33. The following characteristics indicate that a program should probably be using a streaming API such as SAX. Which is not a reason for using SAX? a. Documents will not fit into available memory. This is the only rule that really mandates one or the other. If documents are too big for available memory, then a streaming API must be used such as SAX. b. Documents can be processed in small contiguous chunkss of input. The entire document does not need to be available before you can do useful work. c. The decisions that have been made only depend on preceding parts of the document, never on what comes later. d. The program needs to access widely separated parts of the document at the same time. e. Processing can be divided up into a chain of successive operations. 34. DOM Level 3 adds a method that moves a node from one document to another. a. adoptnode() b. movenode() c. transfernode() d. Node(position) 35. The ProcessingInstruction interface represents a processing instruction. An XML processing instruction begins with: a. << b. <# c. <; d. <? 36. The Entity interface represents a parsed or unparsed general entity declared in a document s. a. XMI b. DTD c. XMA d. XPATH 37. The utility interface extracts a subset of the nodes in a DOM document and presents them as a list arranged in document order. a. NodesList b. listnodes c. NodeIterator d. Parsenodes e. TraverseNodes 38. The XPath data model does not include entity references, sections, or the document type declaration. a. CDATA b. Attributes c. Start d. Node COMPUTER EDUCATION TECHNIQUES, INC. (XML Java Platform - Pre & Post Course Quiz - 5.2) SA: Page 7

39. A location path selects a set of nodes from an XML document. Each location path is composed of one or more location steps. Each location step has an, a node test and, optionally, one or more predicates. a. Position b. Component c. Axis d. a or b 40. The DOM Document interface represents the node of the tree. a. Parent b. Root c. Child d. DocumentList COMPUTER EDUCATION TECHNIQUES, INC. (XML Java Platform - Pre & Post Course Quiz - 5.2) SA: Page 8