XML stands for EXtensible Markup Language. The name emphasises the key feature of the language, i.e., the ability to define your own tags and attributes that, of course, HTML does not allow.
C
The two differences between HTML and XML are:
1. HTML is designed to display data and hence, focussed on the ‘look’ of the data, whereas XML is designed to describe and carry data and hence, focuses on ‘what data is’
Well-formed documents must conform to XML syntax rules. They have correctly formed tags & follow XML guidelines. However, valid documents must conform to XML syntax rules as well as DTD.
XML Parsers are the software packages that are a part of bigger applications that provide XML support. The role of an XML parser is to dissect a valid XML document to obtain actual data from the XML document. For example, SAX, expat, TclExpal etc.
The features of XML are as follows:
1. XML was designed to carry data, not to display data – describes data & focuses on what data is.
2. XML does not DO anything – created to structure, store and to send information.
3. XML is designed to be self-descriptive – Tags are not pre-defined. Each XML document is unique in itself & describes its contents without prior knowledge.
4. XML is free and extensible – We can create our own tag set.
(i) Internal entities are entities that are inside document, whereas external entities are those that can also exist outside the document.
< firstName >Abhijeet< /firstName >
< lastName > Arora< /lastName >
< gender >m< /gender >
< DOB >22/04/1976< /DOB >
< /employee >
(i) c
(ii) d
To process XML document on web, we need an XML document system. XML document system has three components:
(i) a style sheet presentation through CSS or XSL – defines the styles of the elements.
(ii) a grammar structure through DTD – defines a rule book of the XML document.
A. comments.
B. processing instructions.
C. document type declaration.
D. white space.
White space refers to spaces, tabs, carriage-returns and blank-lines. We can insert white-spaces to enhance readability of the document. XML-parsers ignore additional white spaces.
A. invalid document.
B. legal document.
C. correct document.
D. well-formed document.
There are two categories of XML document. They are well-formed documents and valid documents. Well-formed documents must conform to XML syntax rules. They have correctly formed tags & follow XML guidelines. Valid documents must conform to XML syntax rules as well as DTD.
A. vision, decoding and web-based.
B. version, encoding and standalone.
C. encoding, web-based and version.
D. decoding, web-based and version.
XML declaration can have three pseudo-attributes. They are version, encoding and standalone. The version pseudo-attribute specifies the XML version, encoding pseudo-attribute (optional) specifies the character-set and stand-alone pseudo-attribute (optional) specifies whether the document refers external entities.
A. declaration part in XML document.
B. definition part in XML document.
C. documentation part in XML file.
D. preface or introduction to XML document.
Prolog is a preface or introduction to XML document. Prolog should be the first logical component. It is an optional structural element, but for well-formed documents, it must be included.
A. processed unit.
B. storage unit.
C. data unit.
D. structural unit.
An entity is a storage unit. A parsed entity is processed by XML-software such as XML-parser. An unparsed entity contains some related information and is not processed by XML parser.
A. HTML.
B. C++.
C. XML.
D. Fortran.
XML allows us to define and store the document structure and structure of data through DTDs or schemas. The DTD or schemas then ensure that same data gets used by the applications using XML document. HTML, on the other hand, provides no such facility to define the document structure and data structure.
A. an element linked to a particular style.
B. a property assigned to an element.
C. the name of the stylesheet.
D. the value that a property receives.
Any HTML or XML element is a possible CSS selector. A selector is the element that is linked to a particular style, for example, the selector in P {text-indent:3em} is P.
A. a logical structure only.
B. a physical structure only.
C. logical and meta structure.
D. logical structure and physical structure.
Every XML document is a structured document. Every XML file or document has both logical structure and physical structure. The logical structure tells about – what all elements are to be included in the document and the physical structure tells the actual content.
A. cell.
B. trace.
C. RecipeML.
D. ods.
The fundamental data element in an InkML file is < trace >. Trace represents a sequence of contiguous ink points. The sequence of traces accumulates to meaningful units such as characters, words or diagrams.
A. styles.
B. actual data.
C. rule book of XML document.
D. tags.
The grammar structure defines a rule book of XML document. The style-sheet presentation defines the styles (i.e., how they would appear if rendered, e.g., their font, colour, alignment etc.) of the elements. The XML file (also called XML document) contains and describes actual data.
A. cells.
B. traces.
C. elements.
D. structures.
The basic building blocks of data instance are the elements. Elements are means to define individual data items. An element begins with a start tag and ends with an end tag.
A. < DOCTYPE >.
B. < ? DOCTYPE >.
C. < ! DOCTYPE >.
D. < ^DOCTYPE >.
The document type declaration consists of Markup code that indicates grammar rules for a particular class of document. A DTD begins with !DOCTYPE declaration. A sample DTD is: < !DOCTYPE Wildlife zone = “wildlife.dtd” >
A. HTML.
B. XHTML.
C. XML.
D. EDI.
HTML provides pre-defined, non-extensible tags. In other words, we cannot create new tags in HTML to suite the needs of our application. XML, on the other hand, gives us freedom to create our own tag set as per our data needs. Also, unlike HTML tags XML tags cannot be empty tags.
A. rule book of XML document.
B. the styles.
C. actual data.
D. syntactic of SML.
The style-sheet presentation defines the styles (i.e., how they would appear if rendered, e.g., their font, colour, alignment etc.) of the elements.
A. data instance and data definition.
B. data declaration and data instance.
C. prolog and data instance.
D. prolog and data declaration.
Basically an XML-file contains a prolog (optional) and a data instance. Prolog should be the first logical component. It is an optional structural element, but for well-formed documents, it must be included. In data instance, a single element contains all the data of XML document, which is the root element or document element.
A. eXtensible Markup Language.
B. eXperts Marked Language.
C. eXtended Markup Language.
D. eXpanded Marked Language.
XML means “EXtensible Markup Language”. Extensible means no fixed format like HTML. Markup is a set of rules to define structure and format of text.
A. EDI.
B. LaTex.
C. SGML application.
D. SGML complexity.
XML’s ancestor is SGML, which is a system for defining new markup languages. A system that allows defining new markup languages is known as meta language, so SGML and XML can both be termed as meta languages. A language that is created using SGML specifications is called SGML application. One example of SGML application is HTML.
A. 1.
B. 2.
C. no.
D. yes.
The standalone pseudo-attribute tells whether XML document requires external entities or not. If it requires, then set standalone’s value to “no” and if it does not, then refer to any external entity, set it to “yes”. The default value is “yes”.
A. < xml version="1.0" / >.
B. < ?xml version="1.0"? >.
C. < ?xml version="1.0" / >.
D. < xml version = “1.0”? >.
The XML declaration is a declaration that identifies the following through pseudo-attributes – the xml version, encoding and stand-alone or not. XML declaration begins with a special tag < ?xml…? >. < ?xml version = “1.0”? >. The version’s pseudo-attribute refers to the XML version. As per this setting, this document refers to XML Recommendation 1.0.
A. Wireless Markup Language.
B. Wired Markup Language.
C. World Markup Language.
D. Window Markup Language.
XML is a meta-language, which means it can be used to create new languages. A number of languages as per the needs or requirements of the specific domain have been created. Some of them are: ADML (Architecture Description Markup Language), BrainML (Brain Markup Language), WML (Wireless Markup Language), ChessGML (Chess Game Markup Language), CML (Chemical Markup Language) etc.
A. flat database.
B. forms.
C. relational database.
D. tables.
When data is stored in multiple tables that are linked via common fields, then such a database is called relational database. Microsoft Access, BASE, Oracle, MYSQL etc. are examples of Relational Database.
A. collection of relevant data.
B. duplication of data.
C. storage of data in a database.
D. security of data.
Data redundancy refers to a data organisation act that duplicates your unnecessary data. In order to make any changes or modifications in the redundant data, you are supposed to make changes in the multiple fields of the database.
A. .ods
B. .odc
C. .odb
D. .odx
The database file of BASE is stored with extension .odb which expands to OpenOffice database.
A. alternate key.
B. primary key.
C. secondary key.
D. candidate key.
Primary key is called so because it helps to distinguish one relation from another.
A. tracks.
B. blocks.
C. records.
D. tables.
A record is a named collection of data items that represents a complete unit of information.
A. Distributive Management System.
B. Computerized Record Keeping System.
C. Data Management System.
D. Database Management System.
Database Management System (DBMS) is a computer program that manages a database effectively and efficiently.
A. table.
B. form.
C. query.
D. report.
A form is an interface in user specified layout that lets users view, enter and change data directly in the table. When you open a form, BASE retrieves the data from one or more tables and displays it on screen with the layout specified by us.
A. form.
B. table.
C. report.
D. sheet.
A report is an effective way to present data in a printed format. It is a formal, presentable printed document that lists data in a formatted manner.
A. database.
B. record.
C. table.
D. DBMS.
One or more fields (columns) whose value or values uniquely identify each record in a table is called primary key.
A. facts and entities relevant to user.
B. raw material.
C. a set of numbers and alphabet.
D. input material for a computer.
Data is a collection of facts and entities relevant to user because it produces some meaningful information.
A. one primary key.
B. two primary keys.
C. three primary keys.
D. four primary keys.
A table contains one primary key because this is a key field that accepts only unique values and can make a relation with other tables. So, it is the fundamental of DBMS that a table can contain only one primary key.
A. hardware and software.
B. hardware and operating system.
C. software and operating system.
D. utility programs.
The Database Management System is an integrated set of programs. It helps us to manipulate database. The manipulation of database means collection, addition, insertion, modification and deletion of records into a database. For example: MS-Access, FoxPro, OOo Base.
A. Access.
B. FoxPro.
C. Excel.
D. Base.
A database is a collection of information related to a particular subject or purpose, for e.g., student database, event management database etc. BASE (database component of OpenOffice.org), a popular RDBMS (Relational Database Management System – a system that manages data in terms of special tables called relations) lets us to manage the database by offering variety of features.
A. row.
B. record.
C. column.
D. file.
A field is a category of information. It contains a set of characters that have a proper meaning. For example, if a student is a table, then the roll number, name, class, section, date of birth are the fields. A field is also known as a column.
A. Flat Database.
B. Relational Database.
C. OpenOffice.org Calc.
D. OpenOffice.org Excel.
When data is stored in multiple tables that are linked via common fields, then such a database is called relational database. Microsoft Access, BASE, Oracle, MYSQL etc. are examples of Relational Database.
A. column.
B. field.
C. file.
D. row.
A record is a collection of data items that represent a complete unit of information. A record is also known as row of information in a table.
A. records.
B. fields.
C. articles.
D. names.
Databases store information in the form of records. Each RECORD represents a unique item in the database. Records consist of fields. Each FIELD represents a unique piece of information about the record.
A. the Internet.
B. computerised warehouse inventory.
C. venn diagram.
D. OpenOffice.org Calc.
A database is a collection of organised information. Databases can store information about people, books, products or anything else. Most, but not all, databases are computerised.
A. attribute.
B. record.
C. field.
D. relation.
A database record is represented by a row in a relational table.
A. telephone book.
B. computer.
C. cellphone.
D. watch.
A telephone book is a database in the sense that it is an organised collection of information about people.
A. tuple.
B. attribute.
C. field.
D. degree.
In computer science, data that has several parts can be divided into fields. For example, a computer may represent today's date as three distinct fields: the day, the month and the year.
A. watch.
B. mobile.
C. car.
D. tv guide.
The TV Guide is a database since it’s an organised collection of information about television programs.
A. provides all common multimedia presentation tools.
B. has all of the advanced analysis, charting and decision has all of the advanced
C. provides tools for day-to-day database work within a simple interface.
D. is a tool for creating letters, books, reports, newsletters etc.
Base can create and edit forms, reports, queries, tables, views and relations so that managing a connected database is much the same as in other popular database applications.
A. field.
B. file.
C. record.
D. entry.
Databases store information in the form of records. Each RECORD represents a unique item in the database. Records consist of fields. Each FIELD represents a unique piece of information about the record.
A. is the first column of a relation.
B. stores NULL for unknown values.
C. can have only unique values.
D. can hold only numeric values.
The primary key of a relational table uniquely identifies each record in the table. Imagine we have a STUDENTS table that contains a record for each student at a university. The student's unique student ID number can become a primary key in the STUDENTS table.
A. are Candidate Keys that are not part of the Primary Key.
B. are Candidate Keys that can be used as Foreign Keys.
C. are Foreign Keys that can also be used as Primary Keys.
D. are Candidate Keys, including Primary Key.
An alternate key is any candidate key which is not the primary key. Alternate keys are also referred as secondary keys.
A. cannot be part of the Primary Key.
B. are the Foreign Key and Primary Key attributes.
C. uniquely identifies rows in a table.
D. uniquely identifies columns in a table.
A candidate key is any column or set of columns that has unique values. Each table may have one or more candidate keys. One of these candidate keys is selected as the table primary key.
A. primary key.
B. composie key.
C. alternate key.
D. foreign key.
A foreign key is a field (or fields) that points to the primary key of another table. The purpose of the foreign key is to ensure referential integrity of the data.
A. primary key.
B. composite key.
C. alternate key.
D. foreign key.
In the context of relational databases, an alternate key (or secondary key) is any candidate key which is not selected to be the primary key (PK).
A. data integrity.
B. functional dependency.
C. referential integrity.
D. data independence.
Data independence is the type of data transparency that matters for a centralised DBMS. It refers to the immunity of user applications to make changes in the definition and organisation of data and vice-versa.
A. reduced redundancy.
B. no data sharing.
C. secured data.
D. standardised data.
In file management system, it is not possible to share data. Due to non-sharing of data, redundancy of data is possible.
A. reduced redundancy.
B. non-sharing of data.
C. inconsistency.
D. non-standardised data.
In database management system, it is possible to share the data. Due to sharing of data, redundancy of data is reduced.
A. data.
B. database.
C. information.
D. metadata.
A database is a collection of interrelated data stored together to serve multiple applications.
A. view level.
B. physical level.
C. internal level.
D. user level.
View level is concerned with the way in which data are viewed by individual users. It is also known as external level.
A.
B.
C.
D.
Database is the collection of logically related data that is stored in a predictable manner. A library catalogue is a database that describes what the library owns. Each item in the catalogue describes a book or other item in the library. A database can have from one to several tables.
A. relational database.
B. flat database.
C. circular database.
D. venn diagram.
In addition to being relatively easy to create and access, a relational database has the important advantage of being easy to extend. A relational database is a set of tables containing data fitted into predefined categories. Each table (which is sometimes called a relation) contains one or more data categories in columns. Each row contains a unique instance of data for the categories defined by the columns. For example, a typical business order entry database would include a table that described a customer with columns for name, address, phone number and so forth.
A. report.
B. query.
C. form.
D. table.
A query is a statement that gives you filtered data according to your conditions and specifications. To find and retrieve just the data that meets the conditions specified by you, including data from multiple tables, you may create a query. A query can also update or delete multiple records and at the same time, perform predefined or custom calculations on your data.
A. use a form.
B. use a report.
C. use a table.
D. write a query.
A query is a statement that gives you filtered data according to your conditions and specifications. To find and retrieve just the data that meets the conditions specified by you, including data from multiple tables, you may create a query. A query can also update or delete multiple records and at the same time, perform predefined or custom calculations on your data.
A.
B.
C.
D.
To find and retrieve just the data that meets conditions that you specify, including data from multiple tables, you may create a query. A query can also update or delete multiple records at the same time and perform predefined or custom calculations on your data.
A. forms.
B. tables.
C. reports.
D. queries.
A table refers to a storage container storing data pertaining to single object, subject or purpose. To store the data, we can create one table for each type of information that we track. To bring the data from multiple tables together in a query, form or report, we can define the relationships between the tables.
A. EDI.
B. SDI.
C. CGI.
D. InkML.
InkML is a data format for representing digital ink data. The markup provides a format for transferring digital ink data between devices & software components and storing hand-input traces.
A. comments.
B. tabs.
C. shifts.
D. definitions.
Prolog is a preface or introduction to XML document. Prolog should be the first logical component. It is an optional structural element, but for well-formed documents, it must be included. The prolog can have upto five types of components (all optional): An XML declaration, Processing Instructions (PIs), A document type declaration (DTD), Comments and White space.
A. property settings of element.
B. root elements.
C. document elements.
D. data elements.
Attributes provide additional information about elements. They are defined through name-value pairs along with start tag.
A. eXtra Style Language.
B. eXpandable Style Language.
C. eXtensible Style Listing.
D. eXtensible Stylesheet Language.
XSL is a language for expressing style sheets. An XSL style sheet is, like with CSS, a file that describes how to display an XML document of a given type.
A. skeleton.
B. schemas.
C. entities.
D. structures.
The physical structure contains actual data, i.e., the actual content. The storage unit in physical structure terms is called entities. Entities can either be contained inside document, i.e., internal entities or can also exist outside the document, i.e., external entities.
A. to save and transport data.
B. how to reuse data.
C. to make connection b/w data.
D. how to create data.
XML is a text-based markup language that allows storing data in structured format. The main purpose of XML is to save and transport data.
A. the document has root element.
B. the document contains atleast one or more root element.
C. the XML document has DTD associated with it & it complies with that DTD.
D. each element must nest inside any enclosing element property.
A valid XML document is the one that is well-formed as well as confirms the specifications of DTD. In other words, valid documents must confirm not only to the syntax but also to the DTD (Document Type Definition). DTD is a set of rules that defines what tags appear in an XML document, so that the viewers of XML document know what all the tags mean.
A. < ?xml? >.
B. < ?xml version="1.0"? >.
C. < ?xml encoding="JIS"? >.
D. < ?xml encoding="JIS" version="1.0"? >.
A document that obeys the syntax of XML is a well-formed document. A document that includes sequences of markup characters that cannot be parsed or are invalid cannot be well-formed.
A. XML file.
B. XML processor.
C. XML compiler.
D. XML parser.
An XML parser parses XML documents and sends data to display in a browser. The job of a parser is to make sure that the document meets the defined structures, validation and constraints. Validation rules and constraints can be defined in the form of a DTD (Document Type Definition) or schema.
A. duplicate-language.
B. meta-language.
C. documentation-language.
D. data–language.
A meta-language defines other languages. XML is a meta-language for describing markup languages.
A. < *xml…* >.
B. < $xml…$ >.
C. < ? xml…? >.
D. < ^xml…^ >.
The XML declaration identifies the following through pseudo-attributes: the xml version, encoding and stand-alone or not. XML declaration begins with a special tag < ?xml…? >.
A. Standards Automatics for XML.
B. Simple API for XML.
C. Standard API of XML.
D. Sequential API for XML.
SAX stands for the Simple API for XML. It is a platform-independent language, neutral standard interface for event-based XML parsing. SAX is often used in certain high-performance applications or areas where size of the XML might exceed the memory available to the running program.
A.
< note >
< to >Tove< /to >
< from >Jani< /from >
< heading >Reminder< /heading >
< body >Don't forget me this weekend!< /body >
< /note >
B.
< note >
< to >Tove< to >
< from >Jani< /from >
< heading >Reminder< /heading >
< body >Don't forget me this weekend!< /body >
< /note >
C.
< note >
< to >Tove< /to >
< from >Jani< /from >
< heading >Reminder< /heading >
< /body >Don't forget me this weekend!< body >
< /note >
D.
< note >
< to >Tove< /to >
< from >Jani< /from >
< heading >Reminder< /heading >
< body >Don't forget me this weekend!< /body >
< /note >
XML documents must contain a unique opening & closing tag that contains the whole document, forming what is called a root element.
A.
B.
C.
D.
Processing instructions are information for the application. They allow documents to contain instructions for applications. It takes the following form- < ?piname pseudo-attributes >.
A.
B.
C.
D.
Every XML file or document has both logical structure and physical structure. The logical structure tells about what all elements are to be included in the document and the order of elements. However, the physical structure contains the actual content.
A.
B.
C.
D.
All tags must be nested properly, i.e., the start and end tags of child elements cannot overlap. For e.g.,
< title > The A Team < /title >
< /videocollection >
A.
B.
C.
D.
XML documents must contain at least one element. For example, < title >Welcome< /title >.
A.
B.
C.
D.
The root element or document element is the first element of XML document. It is the parent element of all other elements in data instance. XML documents must contain one element that is parent of all other elements. This parent element is known as root element or document element.
A.
B.
C.
D.
To process an XML document on web in a desired manner, we need an XML document system and not just an XML-file. An XML document system mainly comprises the following:
i. A style sheet presentation through CSS or XSL.
ii. A grammar structure through DTD.
iii. Semantics of data through XML file.
A.
B.
C.
D.
The comments are not processed by XML parsers. The comments are inserted for purposes like – to add notes about document structure and to break a document into sections.
A.
B.
C.
D.
To link to an HTML document with a style-sheet:
A.
B.
C.
D.
SGML stands for Standard Generalized Markup Language. It is powerful but very complex, suffers from lack of industry support. It is the basis for XML.
A. order of elements.
B. names of the XML file.
C. how XML file should be created.
D. the extension of XML file.
Every XML file or document has both logical structure and physical structure. The logical structure tells about – what all elements are to be included in the document and the order of the elements.
A.
B.
C.
D.
XML documents must contain a unique opening & closing tag that contains the whole document, forming a root element. For example,
< videocollection >
< title > The A Team < /title >
< title > Jurassic Park < /title >
< /videocollection >
A. SMGML.
B. SSML.
C. RecipeML.
D. EDI.
RecipeML is a format for representing recipes on computer. Recipes can be either represented online or in software.
A.
B.
C.
D.
The XML file (also called XML document) contains and describes the actual data.
A.
B.
C.
D.