CBSE - MCQ Question Banks (के. मा. शि. बो . -प्रश्नमाला )

PreviousNext

Q. 194401 What does XML stands for?
Right Answer is:

SOLUTION

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.


Q. 194402 Explain ‘Comments’ in XML with the help of an example.
Right Answer is:

SOLUTION

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. Comments begin with < ! - -  > and end with -->, just like HTML comments.

For example, < !- - English Literature = X 2010 -- >


Q. 194403 Give two differences between HTML and XML.
Right Answer is:

SOLUTION

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’
.

2. In HTML, tags are predefined while in XML, tags can be created as per needs.


Q. 194404 Differentiate between well-formed documents and valid documents.
Right Answer is:

SOLUTION

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.


Q. 194405 Distinguish between elements and attributes?
Right Answer is:

SOLUTION

Elements are means to define individual data items. An element begins with a start tag and ends with an end tag.

Properties of elements can be described through attributes. Attributes are the property settings of elements, given through name-value pairs.


Q. 194406 Explain the following terms: Prolog and Data Instance.
Right Answer is:

SOLUTION

Prolog is a preface or introduction to XML document. The prolog should be the first logical component. It is an optional structural element, but for well-formed documents, it must be included.

A data instance is also referred as body. The data instance part of XML document follows the prolog and consists of one or more elements, i.e., it contains the real data.


Q. 194407 Distinguish between XML Parsers and XML Validator.
Right Answer is:

SOLUTION

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.    

XML Validators are the software packages that check XML document as per the specified DTD and give feedback about the document. Some XML validators on the web are – W3C XML validator, Tidy, XML.com’s etc.


Q. 194408 Write any four features of XML.
Right Answer is:

SOLUTION

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.


Q. 194409 What do you understand by style-sheet?
Right Answer is:

SOLUTION

A style sheet is made up of style rules that tell a browser how to present a document. Each style rule is made up of a selector (usually an HTML element such as BODY, P etc. or XML elements of XML document) and the style to be applied to the selector.


Q. 194410 Differentiate between
(i) internal entity and external entity  
(ii) parsed entity and unparsed entity  
Right Answer is:

SOLUTION

(i) Internal entities are entities that are inside document, whereas external entities are those that can also exist outside the document.   

(ii) A parsed entity is processed by XML-software such as XML-parser, while an unparsed entity contains some related information and is not processed by XML-parsers.


Q. 194411 Using XML tags, write the first name, last name, gender and DOB of an employee.
Right Answer is:

SOLUTION

< employee  >
             < firstName >Abhijeet< /firstName >
             < lastName > Arora< /lastName >
            < gender >m< /gender >
            < DOB >22/04/1976< /DOB >
            < /employee >


Q. 194412 Multiple Choice Questions:

(i) DTD stands for
(a) Dynamic Type Definition. (b) Do The dance.
(c) Document Type Definition.
(d) Direct Type Definition.

(ii) XML tags are
(a) written only in uppercase letter.
(b) written only in lowercase letter.
(c) not case sensitive.
(d) case sensitive.

(iii) XSL stands for
(a) eXtensible Style Listing.
(b) eXpandable Style Language.
(c) eXtra Style Language.
(d) eXtensible Stylesheet Language.
Right Answer is:

SOLUTION

(i)   c

(ii)  d

(iii) d


Q. 194413 Explain XML document system in detail.
Right Answer is:

SOLUTION

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.

(iii) semantics of data through XML file – contains and describes the actual data.


Q. 194414 XML-parsers ignore


A. comments.

B. processing instructions.

C. document type declaration.

D. white space.

Right Answer is: D

SOLUTION

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.


Q. 194415 One of the categories of XML document is


A. invalid document.

B. legal document.

C. correct document.

D. well-formed document.

Right Answer is: D

SOLUTION

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.


Q. 194416 The three pseudo-attributes that an XML declaration has are


A. vision, decoding and web-based.

B. version, encoding and standalone.

C. encoding, web-based and version.

D. decoding, web-based and version.

Right Answer is: B

SOLUTION

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.


Q. 194417 Prolog is a


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.

Right Answer is: D

SOLUTION

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.


Q. 194418 In terms of physical Structure of an XML document, an entity is a/an


A. processed unit.

B. storage unit.

C. data unit.

D. structural unit.

Right Answer is: B

SOLUTION

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.


Q. 194419 We can define and store document structure in


A. HTML.

B. C++.

C. XML.

D. Fortran.

Right Answer is: C

SOLUTION

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.


Q. 194420 Selector is


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.

Right Answer is: A

SOLUTION

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.


Q. 194421 Every XML document has


A. a logical structure only.

B. a physical structure only.

C. logical and meta structure.

D. logical structure and physical structure.

Right Answer is: D

SOLUTION

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.


Q. 194422 The fundamental data element in an InkML file is called


A. cell.

B. trace.

C. RecipeML.

D. ods.

Right Answer is: B

SOLUTION

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.


Q. 194423 The grammar structure defines the


A. styles.

B. actual data.

C. rule book of XML document.

D. tags.

Right Answer is: C

SOLUTION

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.


Q. 194424 Building blocks of data instance are


A. cells.

B. traces.

C. elements.

D. structures.

Right Answer is: C

SOLUTION

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.


Q. 194425 DTD begins with


A. < DOCTYPE >.

B. < ? DOCTYPE >.

C. < ! DOCTYPE >.

D. < ^DOCTYPE >.

Right Answer is: C

SOLUTION

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” >


Q. 194426 < Email > tag can be created in


A. HTML.

B. XHTML.

C. XML.

D. EDI.

Right Answer is: C

SOLUTION

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.


Q. 194427 The style-sheet presentation defines


A. rule book of XML document.

B. the styles.

C. actual data.

D. syntactic of SML.

Right Answer is: B

SOLUTION

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.


Q. 194428 The two main components of an XML-file are


A. data instance and data definition.

B. data declaration and data instance.

C. prolog and data instance.

D. prolog and data declaration.

Right Answer is: C

SOLUTION

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.


Q. 194429 Madhavi is appearing for the technical skills test at CSC. The full-form of XML is


A. eXtensible Markup Language.

B. eXperts Marked Language.

C. eXtended Markup Language.

D. eXpanded Marked Language.

Right Answer is: A

SOLUTION

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.


Q. 194430 A language that is created using SGML specifications is called


A. EDI.

B. LaTex.

C. SGML application.

D. SGML complexity.

Right Answer is: C

SOLUTION

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.


Q. 194431 Default value for stand-alone attribute is


A. 1.

B. 2.

C. no.

D. yes.

Right Answer is: D

SOLUTION

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”.


Q. 194432 The syntax that defines the XML declaration version is


A. < xml version="1.0" / >.

B. < ?xml version="1.0"? >.

C. < ?xml version="1.0" / >.

D. < xml version = “1.0”? >.

Right Answer is: B

SOLUTION

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.


Q. 194433 WML stands for


A. Wireless Markup Language.

B. Wired Markup Language.

C. World Markup Language.

D. Window Markup Language.

Right Answer is: A

SOLUTION

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.


Q. 194434 BASE is an example of


A. flat database.

B. forms.

C. relational database.

D. tables.

Right Answer is: C

SOLUTION

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.


Q. 194435 Data redundancy is the


A. collection of relevant data.

B. duplication of data.

C. storage of data in a database.

D. security of data.

Right Answer is: B

SOLUTION

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.


Q. 194436 The database file of BASE is stored with extension


A. .ods

B. .odc

C. .odb

D. .odx

Right Answer is: C

SOLUTION

The database file of BASE is stored with extension .odb which expands to OpenOffice database.


Q. 194437 A set of attributes that can uniquely identify tuples within the relation is known as


A. alternate key.

B. primary key.

C. secondary key.

D. candidate key.

Right Answer is: B

SOLUTION

Primary key is called so because it helps to distinguish one relation from another.


Q. 194438 A file is a sequence of


A. tracks.

B. blocks.

C. records.

D. tables.

Right Answer is: C

SOLUTION

A record is a named collection of data items that represents a complete unit of information.


Q. 194439 Computer based record keeping system is known as


A. Distributive Management System.

B. Computerized Record Keeping System.

C. Data Management System.

D. Database Management System.

Right Answer is: D

SOLUTION

Database Management System (DBMS) is a computer program that manages a database effectively and efficiently.


Q. 194440 To easily view, enter and change data directly in a table, we can create


A. table.

B. form.

C. query.

D. report.

Right Answer is: B

SOLUTION

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.


Q. 194441 To present data in a printed format, we can use


A. form.

B. table.

C. report.

D. sheet.

Right Answer is: C

SOLUTION

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.


Q. 194442 A primary key uniquely identifies records in a


A. database.

B. record.

C. table.

D. DBMS.

Right Answer is: C

SOLUTION

One or more fields (columns) whose value or values uniquely identify each record in a table is called primary key.


Q. 194443 Data is a collection of


A. facts and entities relevant to user.

B. raw material.

C. a set of numbers and alphabet.

D. input material for a computer.

Right Answer is: A

SOLUTION

Data is a collection of facts and entities relevant to user because it produces some meaningful information.


Q. 194444 A table contains only


A. one primary key.

B. two primary keys.

C. three primary keys.

D. four primary keys.

Right Answer is: A

SOLUTION

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.


Q. 194445 Database Management System is a combination of


A. hardware and software.

B. hardware and operating system.

C. software and operating system.

D. utility programs.

Right Answer is: A

SOLUTION

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.


Q. 194446 The database component of OpenOffice.org is known as


A. Access.

B. FoxPro.

C. Excel.

D. Base.

Right Answer is: D

SOLUTION

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.


Q. 194447 A field is also called a


A. row.

B. record.

C. column.

D. file.

Right Answer is: C

SOLUTION

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.


Q. 194448 MySQL is an example of


A. Flat Database.

B. Relational Database.

C. OpenOffice.org Calc.

D. OpenOffice.org Excel.

Right Answer is: B

SOLUTION

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.


Q. 194449 A record is also known as


A. column.

B. field.

C. file.

D. row.

Right Answer is: D

SOLUTION

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.


Q. 194450 A database is divided into


A. records.

B. fields.

C. articles.

D. names.

Right Answer is: A

SOLUTION

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.


Q. 194451 An example of database is


A. the Internet.

B. computerised warehouse inventory.

C. venn diagram.

D. OpenOffice.org Calc.

Right Answer is: B

SOLUTION

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.


Q. 194452 Another term for a row in relational table is


A. attribute.

B. record.

C. field.

D. relation.

Right Answer is: B

SOLUTION

A database record is represented by a row in a relational table.


Q. 194453 An example of database is a


A. telephone book.

B. computer.

C. cellphone.

D. watch.

Right Answer is: A

SOLUTION

A telephone book is a database in the sense that it is an organised collection of information about people.


Q. 194454 The smallest unit of database record is


A. tuple.

B. attribute.

C. field.

D. degree.

Right Answer is: C

SOLUTION

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.


Q. 194455 An example of database is a


A. watch.

B. mobile.

C. car.

D. tv guide.

Right Answer is: D

SOLUTION

The TV Guide is a database since it’s an organised collection of information about television programs.


Q. 194456 Base


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.

Right Answer is: C

SOLUTION

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.


Q. 194457 A set of related data item is called a


A. field.

B. file.

C. record.

D. entry.

Right Answer is: A

SOLUTION

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.


Q. 194458 Primary Key


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.

Right Answer is: C

SOLUTION

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.


Q. 194459 Alternate Keys


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.

Right Answer is: A

SOLUTION

An alternate key is any candidate key which is not the primary key. Alternate keys are also referred as secondary keys.


Q. 194460 Candidate 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.

Right Answer is: C

SOLUTION

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.


Q. 194461 An attribute in a table which is the key attribute in some other table is known as


A. primary key.

B. composie key.

C. alternate key.

D. foreign key.

Right Answer is: D

SOLUTION

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.


Q. 194462 Candidate keys which are not chosen as the primary key are known as


A. primary key.

B. composite key.

C. alternate key.

D. foreign key.

Right Answer is: C

SOLUTION

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).


Q. 194463 The data stored at different levels should not affect each other when they get changed. It refers to


A. data integrity.

B. functional dependency.

C. referential integrity.

D. data independence.

Right Answer is: D

SOLUTION

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.


Q. 194464 A disadvantage of file management system is


A. reduced redundancy.

B. no data sharing.

C. secured data.

D. standardised data.

Right Answer is: B

SOLUTION

In file management system, it is not possible to share data. Due to non-sharing of data, redundancy of data is possible.


Q. 194465 The advantage of database management system is


A. reduced redundancy.

B. non-sharing of data.

C. inconsistency.

D. non-standardised data.

Right Answer is: A

SOLUTION

In database management system, it is possible to share the data. Due to sharing of data, redundancy of data is reduced.


Q. 194466 An organised collection of logically related data is known as


A. data.

B. database.

C. information.

D. metadata.

Right Answer is: B

SOLUTION

A database is a collection of interrelated data stored together to serve multiple applications.


Q. 194467 The level of database implementation that is closest to users is


A. view level.

B. physical level.

C. internal level.

D. user level.

Right Answer is: A

SOLUTION

View level is concerned with the way in which data are viewed by individual users. It is also known as external level.


Q. 194468 Hari works as a Database Administrator in the British Library. He maintains a library catalogue database. Each record represents one


A. book, journal, video, CD etc.

B. author.

C. subject.

D. CD.

Right Answer is: A

SOLUTION

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.


Q. 194469 Akash has been asked to fetch data of his Supervisor. In order to bring the data from multiple tables that are linked via common fields, he should use


A. relational database.

B. flat database.

C. circular database.

D. venn diagram.

Right Answer is: A

SOLUTION

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.


Q. 194470 Abhay is a Database Administrator. He wants to retrieve his team member’s details by fetching Name and EmployeeID from Employee table and Department from Departments table. To achieve this, he should use


A. report.

B. query.

C. form.

D. table.

Right Answer is: B

SOLUTION

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.


Q. 194471 If you had a database with 500 names and addresses of students enrolled at your school and wanted to know the phone number of one particular student, you would


A. use a form.

B. use a report.

C. use a table.

D. write a query.

Right Answer is: D

SOLUTION

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.


Q. 194472 A statement that gives you filtered data according to your conditions and specifications is called a


A. table.

B. form.

C. report.

D. query.

Right Answer is: D

SOLUTION

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.


Q. 194473 Bhavya is a Sales Manager. He wants to maintain a database containing the information of all the sales persons in his company. The data that he wants to store is as follows: Salesman Id, First Name, Last Name, Sales Made and Target. To fulfill his requirements, he should use


A. forms.

B. tables.

C. reports.

D. queries.

Right Answer is: B

SOLUTION

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.


Q. 194474 A language that is based on XML is


A. EDI.

B. SDI.

C. CGI.

D. InkML.

Right Answer is: D

SOLUTION

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.


Q. 194475 One of the five components of a Prolog can be


A. comments.

B. tabs.

C. shifts.

D. definitions.

Right Answer is: A

SOLUTION

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.


Q. 194476 Attributes are


A. property settings of element.

B. root elements.

C. document elements.

D. data elements.

Right Answer is: A

SOLUTION

Attributes provide additional information about elements. They are defined through name-value pairs along with start tag.


Q. 194477 XSL stands for


A. eXtra Style Language.

B. eXpandable Style Language.

C. eXtensible Style Listing.

D. eXtensible Stylesheet Language.

Right Answer is: D

SOLUTION

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.


Q. 194478 The storage units in physical structure terms are called


A. skeleton.

B. schemas.

C. entities.

D. structures.

Right Answer is: C

SOLUTION

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.


Q. 194479 The main purpose to design XML is


A. to save and transport data.

B. how to reuse data.

C. to make connection b/w data.

D. how to create data.

Right Answer is: A

SOLUTION

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.


Q. 194480 Valid XML document means


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.

Right Answer is: C

SOLUTION

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.


Q. 194481 The XML fragments that are well-formed documents are


A. < ?xml? >.

B. < ?xml version="1.0"? >.

C. < ?xml encoding="JIS"? >.

D. < ?xml encoding="JIS" version="1.0"? >.

Right Answer is: B

SOLUTION

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.


Q. 194482 A component that should be part of a web-browser for XML-support is


A. XML file.

B. XML processor.

C. XML compiler.

D. XML parser.

Right Answer is: D

SOLUTION

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.


Q. 194483 A language that defines other languages is known as


A. duplicate-language.

B. meta-language.

C. documentation-language.

D. data–language.

Right Answer is: B

SOLUTION

A meta-language defines other languages. XML is a meta-language for describing markup languages.


Q. 194484 Jaya has to write a code for the employee details using XML. Before typing the various details of an employee, she needs to write the XML declaration. An XML declaration begins with a


A. < *xml…* >.

B. < $xml…$ >.

C. < ? xml…? >.

D. < ^xml…^ >.

Right Answer is: C

SOLUTION

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…? >.


Q. 194485 SAX stands for


A. Standards Automatics for XML.

B. Simple API for XML.

C. Standard API of XML.

D. Sequential API for XML.

Right Answer is: B

SOLUTION

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.


Q. 194486 A well-formed document is


A. < xml version="1.0" >
< note >
< to >Tove< /to >
< from >Jani< /from >
< heading >Reminder< /heading >
< body >Don't forget me this weekend!< /body >
< /note >

B. < ?xml version="1.0"? >
< note >
< to >Tove< to >
< from >Jani< /from >
< heading >Reminder< /heading >
< body >Don't forget me this weekend!< /body >
< /note >

C. < ?xml version="1.0"? >
< note >
< to >Tove< /to >
< from >Jani< /from >
< heading >Reminder< /heading >
< /body >Don't forget me this weekend!< body >
< /note >

D. < ?xml version="1.0"? >
< note >
< to >Tove< /to >
< from >Jani< /from >
< heading >Reminder< /heading >
< body >Don't forget me this weekend!< /body >
< /note >

Right Answer is: D

SOLUTION

XML documents must contain a unique opening & closing tag that contains the whole document, forming what is called a root element.


Q. 194487 Karthik has learnt XML with the help of video tutorials. Before he starts writing codes, he wants to test his knowledge. So, he decides to solve a paper on XML that has objective questions. PI stands for


A. program instruction.

B. pseudo instruction.

C. primary instruction.

D. processing instruction.

Right Answer is: D

SOLUTION

Processing instructions are information for the application. They allow documents to contain instructions for applications. It takes the following form- < ?piname pseudo-attributes >.


Q. 194488 Gina has written a code for inventory house of her company. Her assistant told him that every XML document has a logical as well as a physical structure. But she doesn’t know what a physical structure actually contains. A physical structure contains the


A. order of elements.

B. css file.

C. actual content.

D. xsl file.

Right Answer is: C

SOLUTION

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.


Q. 194489 Tags must be


A. case-insensitive.

B. attractive.

C. nested properly.

D. created for fun.

Right Answer is: C

SOLUTION

All tags must be nested properly, i.e., the start and end tags of child elements cannot overlap. For e.g., < videocollection >
< title > The A Team < /title >
< /videocollection > is a well-formed tag.


Q. 194490 Sukhbir has to write poetry lines using XML. He read in a tutorial that all XML documents must contain element. XML documents must contain


A. only one element.

B. only two elements.

C. at least two elements.

D. at least one element.

Right Answer is: D

SOLUTION

XML documents must contain at least one element. For example, < title >Welcome< /title >.


Q. 194491 Ana’s sir has asked her to write XML code containing Student Details. She was told to write a code with the tags of her own choice but before that she needs to add a parent element also. The parent element of all other elements in data instance is known as


A. child element.

B. document element.

C. data element.

D. entity.

Right Answer is: B

SOLUTION

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.


Q. 194492 Sanjeevni has created an XML document. But she does not know what all is required to view the output in web browser. To process an XML document on web, we need


A. only css or xsl.

B. only dtd.

C. only xml file.

D. css or xsl, dtd and xml file.

Right Answer is: D

SOLUTION

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.


Q. 194493 Janvi is writing a code for audio collection for which she needs to include comments in her code. Comments are inserted to XML to


A. design the file.

B. break document into sections.

C. have fun.

D. processing.

Right Answer is: B

SOLUTION

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.


Q. 194494 One of the things that we require to link an HTML document with a style-sheet is


A. create html document (.html file).

B. create groups.

C. create sgml file.

D. create dhtml file.

Right Answer is: A

SOLUTION

To link to an HTML document with a style-sheet: 1. Create HTML document. 2. Create a separate css style-sheet (.css file) for the HTML elements of the file created in step1. 3. Link the two files.


Q. 194495 Pranav is a new joinee at Satyam. He has been asked to revise the basics of XML so that he does not make any mistakes while writing the codes. First Generation Markup Language is


A. InkML.

B. RecipeML.

C. SGML.

D. EDI.

Right Answer is: C

SOLUTION

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.


Q. 194496 Ria’s brother is teaching her XML. He told her that every XML document has both logical and physical structure. Logical structure tells about


A. order of elements.

B. names of the XML file.

C. how XML file should be created.

D. the extension of XML file.

Right Answer is: A

SOLUTION

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.


Q. 194497 XML documents must contain


A. one tag only.

B. a unique opening and closing tag.

C. one attribute only.

D. one element only.

Right Answer is: B

SOLUTION

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 >


Q. 194498 Amita wants to use a language which helps to write the code for Rasam recipe. A language that is based on XML is


A. SMGML.

B. SSML.

C. RecipeML.

D. EDI.

Right Answer is: C

SOLUTION

RecipeML is a format for representing recipes on computer. Recipes can be either represented online or in software.


Q. 194499 Ram is a Software Trainee and has been asked to take an online test at Q-Infotech to test his knowledge. The other name for XML file is


A. XML document.

B. XSL.

C. grammar structure.

D. SGML.

Right Answer is: A

SOLUTION

The XML file (also called XML document) contains and describes the actual data.


Q. 194500 Suhani wants to use a markup language, i.e., HTML for writing a program on Computer Parts. But her friend suggested her to write in XML as XML is


A. platform independent.

B. inextensible.

C. designed to display data.

D. exactly same as HTML.

Right Answer is: A

SOLUTION

XML can run on all platforms. It is created by using standard text files. These files are compatible with all platforms such as Windows, Macintosh, Unix etc.


PreviousNext