Unit Four Question Bank Final
Unit Four Question Bank Final
Unit Four Question Bank Final
QUESTION BANK
UNIT IV Part A 1. WHAT IS THE USE OF XML NAMESPACE? XML allows document authors to create custom elements. This extensibility can result in naming collisions (i.e. different elements that have the same name) among elements in an XML document. An XML namespace is a collection of element and attribute names. Each namespace has a unique name that provides a means for document authors to unambiguously refer to elements with the same name (i.e. prevent collisions). 2. WHAT ARE THE USES OF XML? CML Chemical Markup Language for chemical equations MML - Mathematical Markup Language for Mathematical equations and derivations. Used in bio medical line.
3. WHAT IS THE USE OF XML? Extensible Markup Language, derived from SGML (Standard Generalized Markup Language. XML is widely supported open technology (i.e. non-proprietary) for electronic data exchange and storage. XML is actually a language used to create other markup languages to describe data in a structured manner.
XML documents contain only data, not formatting instructions, so applications that
process XML documents must decide how to manipulate or display the documents data. 4. WHAT DO YOU MEAN BY DTD IN XML? DTD means Document Type Definition. DTD file is similar to CSS file, because DTD also contains only styles. DTD contains various styles which are to be applied in XML document . Like .CSS file .DTD file also should be linked with XML program.
Styles in XML program should be save with .xsl (Xml Style Sheet Language) extension.
QUESTION BANK
XML is a meta-markup language that provides a format for describing structured data. This facilitates more structured declarations of content and more meaningful search results across multiple platforms.
6. Define DTD. A DTD is a set of rules that specifies how to use XML markup. It contains specifications for each element, including what the element's attributes are, what values the attributes can take on and what elements can be contained in others. 7. What are the XML rules for distinguishing between the content of a document and the XML markup element? 1.The start of XML markup elements is identified by either the less than symbol (<) or the ampersand (&) character 2.Three other characters, the greater than symbol (>), the apostrophe or single quote () and the double quotation marks () are used by XML for markup. 3.To use these special characters as content within your document, you must use the corresponding general XML entity. 8. What are the different XSLT elements? Stylesheet Value-of For-each Sort Text
9. What is VoiceXML? VoiceXML is an emerging standard for speech-enabled applications.Its XML syntax defines elements to control a sequence of interaction dialogs between a user and an implementation platform. VoiceXML uses XML text to drive voice dialogs. 10. What is XQuery? XQuery is a W3C initiative to define a standard set of constructs for querying and searching XML documents. XQuery brings database query processing to XML.
WEBTECHNOLOGY
QUESTION BANK
11. What is XForm? XForm is an XML approach that overcomes the limitations of HTML forms. XForm includes a variety of buttons, scrollbars and menus. It generates XML form data as output. XForm's model has the capability to work with the variety of user interfaces. 12. What is XPath? Xpath is used to navigate XML tree structures. XPath gets its name from its use of a path notation to navigate through the hierarchical tree structure of an XML document. It is an important XML technology due to its role in providing a common syntax and semantics for functionality in both XSLT and XPointer. 13. what are complex types? complex types are an important aspects of xml schema that allow application developers to define application-specific datatypes that can be checked by programs that check XML document for validity. XML schema divides complex types into two categories: those with simple content & those with complex content.
WEBTECHNOLOGY
QUESTION BANK
developement s/w that implements Xforms & gives current Web browser the ability to send,receive & process XML document. 17. what are the Importants of SAX? SAX is an event driven. SAX supports processing pipelines. SAX requires programmers to maintain state. 18. What is metadata? Literally data about data. XML element and attribute names are considered metadata in that they may be used to describe the data contained in a document. Metadata isnt needed but it certainly helps. 19. What is DTD? How is it different from XML? DTD stands for Document Type Definition DTD is a description of the structure & the elements and attributes that define a class of XML document. DTD can be declared both internally in a XML document and as an external reference. DTD Xml Schema Dtd is used to define the structure of an xml document. Xml schema is used to define the structure of an xml document. Data type for elements limited to text. 2. Numerous predefined data types available. Complex data types cannot be defined. 3. Ability to define complex type that map to application data structure. Dtd document is stored as filename.dtd 4.Xml schema document is stored as filename.xml 20. What is XML? How it is different from HTML? Xml is the text based make up language that stores the data in a structured format using meaningful tags. It allows computers to store and exchange data in a format that can be interpreted by any other computer with different hardware or software specification. XML HTML .xml stands for Extensible markup language HTML stands for Hyper Text Mark Up Language.2.Several languages are derived from xml & wml HTML can be derived from xml. Xml uses indefinite, user defined, meaningful set of tags which can be used to include XML data in the webpage.
WEBTECHNOLOGY
QUESTION BANK
HTML uses a fixed set of tags which can be used to specify the appearance of the webpage. 21. Define Directives. Directives are JSP elements that provide global information about an entire JSP page,
22. Write down the various attributes for the page directives in JSP. The page directive defines information that will be globally available for that Java Server Page, language extends import session buffer contenttype
24. You can use any characters in the body of the comment except the closing --%> combination. If
you need to use --%> in your comment, you can escape it by typing --%\>. JSPSyntax <%-- comment --%> Examples <%@ page language="java" %> <html> <head><title>A Hidden Comment </title></head> <body> <%-- This comment will not be visible to the colent in the page source --%> </body> </html>
WEBTECHNOLOGY
QUESTION BANK
An expression tag contains a scripting language expression that is evaluated, converted to a String, and inserted where the expression appears in the JSP file. Because the value of an expression is converted to a String, you can use an expression within text in a JSP file. Like <%= someexpression %> <%= (new java.util.Date()).toLocaleString() %> You cannot use a semicolon to end an expression
WEBTECHNOLOGY
QUESTION BANK
WEBTECHNOLOGY
QUESTION BANK
two mehtods - jspInit() and jspDestroy() that must be implemented by all JSP pages regardless of the client-server protocol. However the JSP specification has provided the HttpJspPage interfaec specifically for the JSp pages serving HTTP requests. This interface declares one method _jspService(). The jspInit()- The container calls the jspInit() to initialize te servlet instance.It is called before any other method, and is called only once for a servlet instance.
The _jspservice()- The container calls the _jspservice() for each request, passing it the request and the response objects. The jspDestroy()- The container calls this when it decides take the instance out of service. It is the last method called n the servlet instance.
QUESTION BANK
The global.asa file is a Active Server Application file you can track and manage the application and session events, variables and objects. When you start the application the server will load the global.asa file into memory. 36. Define response object and list its methods. The response object transmits information from the web server to browser. Methods are: 1.Write 2.BinaryWrite 3.Redirect 4.AppendToLog 5.AddHeader 6.Clear 7.Flush 37. Define JSP. Java Server Pages (JSP) are simple technology used to generate dynamic HTML on the server side. 38. Define Directives. Directives are JSP elements that provide global information about an entire JSP page, 39. Write down the various attributes for the page directives in JSP. The page directive defines information that will be globally available for that Java Server Page, 1. language 2. extends 3. import 4. session 5. buffer 6. contenttype
WEBTECHNOLOGY XML XML XML XML XML is a markup language much like HTML was designed to carry data, not to display data tags are not predefined. You must define your own tags is designed to be self-descriptive is a W3C Recommendation
QUESTION BANK
WEBTECHNOLOGY 25. Explain the creation of external DTD with example? 26. What is valid xml document?
QUESTION BANK
Part B Questions 1. Explain the Roles and Advantages of XML. 2. Explain briefly the The Three Revolutions XML 3. Explain XML & DTD. 4. explain the basics of XML Language 5. Explain briefly xml Transformation? 6. Explain briefly XML Schema: 7. Explain Simple API for xml(SAX): 8. Explain about Presentation Technique? 9. Short notes on XML Namespaces? 10. Explain briefly DTD? 11. Briefly Explain About HTTP & XML-RPC 12. Explain about JSP with example program. 13. Mention the rules of well-formed XML. 14. What is DTD? Explain it with example. 15. Describe the following in detail. 16. JSP Standard Actions. 17. JSP Directives. 18. What is a DTD (document Type Definition) . What are its applications? 19. Write a XML schema for a Movie data base table with the following structure:
21. Write an ASP/JSP code to access a table and records from a student database to obtain the
result of a student. 22. List out objects associated with JSP/ASP and highlight the features of each object. Explain the various JSP elements. 23. Write similarities and dissimilarities between XML and DHTML. 24. Write a DTD for the following schema (emp_id, emp_name(firstname, lastname), dob(dd,mm,yyyy), address(city, state)). 25. Create a XML document to store voter ID, voter name, address and date of birth details. Create a DTD to validate the document.
WEBTECHNOLOGY 26. Discuss the following i) ii) Specify the set out development goals of XML. How is XML defined?
QUESTION BANK
Give the XML syntax and structure rules. Explain the XML components in detail.