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

PreviousNext

Q. 194301 The kind of list that < ol > tags will create is


A. grocery list.

B. numbered list.

C. bulleted list.

D. unnumbered list.

Right Answer is: B

SOLUTION

An ordered list (also known as numbered list) is an indented list that has numbers or letters in front of each item. These lists are marked by < ol > and < /ol > tags.


Q. 194302 To create a list using lowercase letters, we use


A. < ol = “a” >.

B. < ol letter = “a” >.

C. < ol type = “a” >.

D. < ol case = “a” >.

Right Answer is: C

SOLUTION

With the < ol > tag, the type attribute may have a value of ‘A’ for numbering with capital letters, ‘a’ for numbering with lowercase letters, ‘I’ for capital letters, ‘i’ for lowercase Roman numerals or ‘1’ for common Arabic numerals. The type attribute sets the actual numbering style. For example, if an ordered list numbering items start at 5 and the numbering style is set to ‘i’, the first number is the lowercase Roman numeral “v”.


Q. 194303 The HTML codes that control the appearance of the document contents are known as


A. tags.

B. slashes.

C. properties.

D. attributes.

Right Answer is: A

SOLUTION

A tag is a coded HTML command that indicates how part of a web page should be displayed.


Q. 194304 A two sided tag is


A. < dt >.

B. < li >.

C. < dl >.

D. < dd >.

Right Answer is: C

SOLUTION

A definition list is an indented list without any bullet symbol or any number in front of each item. A < dl > is a two sided tag, that is, it has an opening tag

and a closing tag < /dl >. The closing tag for < li > tag is optional.


Q. 194305 List inside another list is known as


A. hierarchical list.

B. sequential list.

C. multiple list.

D. nested list.

Right Answer is: D

SOLUTION

A list inside a list is known as a nested list. We can have a number of paragraphs, each containing a nested list, in a single list item.


Q. 194306 Compact attribute is used when


A. definition terms are very short.

B. we have to display the list items.

C. we have to create a links.

D. we have to create a form.

Right Answer is: A

SOLUTION

The compact attribute is used when definition terms are very short. It tells the browser to squeeze the list when possible.


Q. 194307 < DD > stands for


A. data definition.

B. data description.

C. data description.

D. definition description.

Right Answer is: D

SOLUTION

A definition list usually consists of alternating a definition term (coded as < DT >) and a definition description (coded as < DD >).


Q. 194308 < DT > stands for


A. data term.

B. description term.

C. definition term.

D. define term.

Right Answer is: C

SOLUTION

A definition list usually consists of alternating a definition term (coded as < DT >) and a definition description (coded as < DD >).


Q. 194309 The start attribute of < ol > tag must be set to


A. alphanumeric value.

B. numeric value.

C. special character.

D. letter.

Right Answer is: B

SOLUTION

The start attribute for the < ol > tag lets us change the beginning value. It must set the < ol > tag to a numeric value. For example, < ol type = 6 >.


Q. 194310 The two attributes of the < ol > tag are


A. li , type

B. start, disc

C. square, ul

D. start, type

Right Answer is: D

SOLUTION

The two attributes of the < ol > tag are < start > and < type >. The < start > attribute for the < ol > tag lets us change the beginning value. For example, < ol start = 5 >, will start a numbering list at 5. While, the type attribute, sets the actual numbering style. For example, < ol start = 8 type= ‘i’ >, will start numbering items at 8, but the style of numbering is set to I, the first number is the lowercase Roman numeral “viii”. Subsequent items are numbered with the same style, each value incremented by 1.


Q. 194311 The indented list without any bullet symbol or any number in front of each item is known as


A. ordered list.

B. unordered list.

C. text list.

D. definition list.

Right Answer is: D

SOLUTION

A definition list (marked as < dl >) usually consists of alternating a definition term (marked as < dt >) and a definition description (marked as < dd >).


Q. 194312 A list that lists the items with bullets is


A. < list >.

B. < dl >.

C. < ol >.

D. < ul >.

Right Answer is: D

SOLUTION

The unnumbered or unordered lists are bulleted lists. These lists are marked by < ul > and < /ul > tags.


Q. 194313 Shubha wants to create an HTML code so that she can communicate with her friends via email. To accomplish this, she should use


A. list.

B. images.

C. mailto.

D. links.

Right Answer is: C

SOLUTION

MAILTO function allows other users to communicate with us via email. MAILTO is called using an anchor just like standard links to other documents, i.e., using href attribute. The mailto function creates a link that, when clicked on, displays a separate window which allows users to write and send an email message to the specified email address (es).


Q. 194314 Aarti wants to create a link in her document so that it jumps from to another document. She should use


A. compact attribute.

B. external linking.

C. unordered list.

D. internal linking.

Right Answer is: B

SOLUTION

External linking means linking to another document. We make a hyperlink to another document with the < a > tag and its href attribute, which defines the URL of the target document as mentioned in previous section. The href attribute is used to specify the URL of the target of the link. For example, < a href = http://www.google.com > Welcome to Google!!< /a >.


Q. 194315 Sohail wants to create a link in his document so that it jumps from one section of his document to another section within the same document. He should use


A. compact attribute.

B. external linking.

C. unordered list.

D. internal linking.

Right Answer is: D

SOLUTION

Internal linking links to anchors on the current page. Internal linking allows us to link to another section of the document on the same web page. Here, anchors are used to move to a particular section in the document. The anchor of this type is also known as named anchor.


Q. 194316 Prakash is reading links in HTML. He has observed that whenever we want to link any image or text, href is used. But he is not able to find out the full form of href. Href stands for


A. horizontal reference.

B. hypertext reference.

C. historical reference.

D. highertext reference.

Right Answer is: B

SOLUTION

Href is used as Hypertext Reference and links an HTML document to another HTML document. This can be linked to a WWW address, HTML file or NAME.


Q. 194317 Abhay wants to use certain terms which have descriptions. In order to give a description about the data term, we use


A. < dl >.

B. < dt >.

C. < dd >.

D. < td >.

Right Answer is: C

SOLUTION

A definition list is a list of items, with a description of each item. It starts with a < dl > tag (definition list). Each term starts with a < dt > tag (definition term). Each description starts with a < dd > tag (definition description).


Q. 194318 The attribute that is used to specify the alternate text for an image is


A. < img >

B. < alt >.

C. < href >.

D. < src >.

Right Answer is: B

SOLUTION

 
Its source is specified with src attribute, alternate
text with alt attribute, alignment with align attribute
and size with height and weight attributes.
The alt attributes specifies an alternative text for an image,
if the image cannot be displayed. It provides alternative
information for an image if a user for some reason can view it.


Q. 194319 To horizontally center an image, we use


A. < center >…< /center >.

B. < align >…< /align >.

C. < a >…< /a >.

D. < I >…< /I >.

Right Answer is: A

SOLUTION

We cannot horizontally center an image using align attribute. To horizontally center an image, we use the < center >… < /center >.


Q. 194320 Shubha has written a code for inserting an image in her HTML document. But she has not mentioned the alignment of that image. The default alignment of images, which are inserted in the web page, is


A. left.

B. right.

C. middle.

D. inline with the text.

Right Answer is: D

SOLUTION

Inline image means image display in line with the text, i.e., the specified image is loaded separately and placed into the text flow as if the image were some special character.


Q. 194321 Ajay wants to create a link between document 1 and document 2. But he wants to know how the URL is specified along with < a >.  For linking to another web page, its URL is specified with


A. title.

B. href.

C. name.

D. align.

Right Answer is: B

SOLUTION

Href indicates the URL being linked to. Href makes the anchor into a link. For example, < a href = “resume.html” > My Resume < /a > creates a link to resume.html.


Q. 194322 If the image we are loading in the web page is not available, then we want a text to appear in the image place holder, the attribute that lets us define this text is


A. src.

B. align.

C. text.

D. alt.

Right Answer is: D

SOLUTION

The alt attribute specifies an alternative text for an image, if the image cannot be displayed. It provides alternative information for an image if a user for some reason can view it. The value for the alt attribute is a text string of 1024 characters.


Q. 194323 Ankur wants to insert an image along with the text. He doesn’t know the syntax for inserting an image. The correct HTML for inserting an image is


A.

B.

C.

D.

Right Answer is: C

SOLUTION

 


Q. 194324 Akansha has used an image in her HTML code but she did not include the alt attribute. Now, when she tried to run the code it did not display the image. Therefore, we should add alternative text to our images


A. incase the user wishes to load a different picture.

B. so that the user can save the image using the text as a name.

C. so that the users can get an idea of what the image is before it loads.

D. incase the user wants to load the same picture many times.

Right Answer is: C

SOLUTION

The alt attribute specifies alternative text that the browser may show if image display is not possible or disable by the user. The value for the alt attribute is a text string of upto 1024 characters, enclosed in quotation marks if we include spaces or other punctuations.


Q. 194325 The tag where a link starts is


A. < I >.

B. < a >.

C. < start >.

D. < begin >.

Right Answer is: B

SOLUTION

The < a > tag defines an anchor. An anchor can be used in two ways: 1.    To create a link to another document, by using the href attribute. 2.    To create a bookmark inside a document, by using the name attribute. The ‘a’ element is usually referred to as a link or a hyperlink. The href attribute of the ‘a’ element indicates the link’s destination.


Q. 194326 Shikha has to create a list of items in HTML. She wants the list items to be displayed in different kinds of bullet styles. The various options that we have in bullet styles are


A. triangle, square, circle.

B. square, disc, polygon.

C. rhombus, square, circle.

D. disc, square, circle.

Right Answer is: D

SOLUTION

The browser automatically bullets each < ul >- tagged item in an ordered list. By default, a solid circle is used for the bullets. However, we can change the bullet style using type attribute. This attribute may have a value of either disc, circle or square. For example, < ul type = square >. The disc is the default bullet, i.e., a solid circle. Attribute value circle displays a hollow circle as the bullet and the value square displays a solid square as the bullet.


Q. 194327 Megha wants to create a hyperlink for her HTML document. She desires to have a link such that it directs her to the specified place, when clicked. The correct HTML code line is


A. < a name = http://www.techsystems.com >Tech Systems < /a >.

B. < a href = http://www.techsystems.com >Tech Systems < /a >.

C. < a >http://www.techsystems.com < /a >.

D. < a url = http://www.techsystems.com >Tech Systems < /a >.

Right Answer is: B

SOLUTION

We make a hyperlink to another document with the tag and its href attribute, which defines the URL of the target document as mentioned in the previous section. The href attribute is used to specify the URL of the target of the link. For example, < a href = http://www.yahoo.com >Welcome to Yahoo!!< /a >.


Q. 194328 Akash has inserted in image in his document. However, he wants to change the size of the image used in his HTML document. He should use


A. bigger and smaller.

B. greater and lesser.

C. pliers.

D. height and width.

Right Answer is: D

SOLUTION

The height and width attribute specify the dimensions of an image. The browser reserves the space before downloading the image. It eliminates content shifting. It speeds document rendering.


Q. 194329 Bhavna wants to add links to her HTML page. She wants that when a link is clicked, it goes to the specified place. The tags that she should use are


A. < b > and < /b >.

B. < I > and < /I >.

C. < a > and < /a >.

D. < href > and < /href >.

Right Answer is: C

SOLUTION

The < a > tag defines an anchor. An anchor can be used in two ways: 1.    To create a link to another document, by using the href attribute. 2.    To create a bookmark inside a document, by using the name attribute. The ‘a’ element is usually referred to as a link or a hyperlink. The href attribute of the ‘a’ element indicates the link’s destination.


Q. 194330 Sushma wants to create a link in the document such that when the link is clicked, it goes to the specified position within a current page. To accomplish this, she should use


A. external linking.

B. internal linking.

C. title attribute.

D. image attribute.

Right Answer is: B

SOLUTION

Internal linking links to anchors on the current page. Internal linking allows us to link to another section of the document on the same web page. Here, anchors are used to move to a particular section in the document. The anchor of this type is also known as named anchor.


Q. 194331 Ana is taking a test on HTML images. The question that appears on the screen is:
The attribute that is used to specify an image source is known as


A. < src >.

B. < source >.

C. < image >.

D. < img >

Right Answer is: A

SOLUTION


Q. 194332 Rishi wants to insert an image in his HTML document. The tag that he should use to insert image is known as


A. < image >.

B. < img >

C. < alt >.

D. < source >.

Right Answer is: B

SOLUTION


Q. 194333 Siddharth wants to insert some things with an extension of .gif and .jpeg in his html code. Gif and jpg are two main types of


A. images.

B. borders.

C. outlines.

D. animated effects.

Right Answer is: A

SOLUTION

Browsers can display images in the document if they are in either GIF (Graphics Interchange Format), XBM (X Bit Map) or JPEG format.


Q. 194334 Lata wants to create a hyperlink in her document such that it directs her to a new document. The tag which she should use to achieve this is


A. < hyperlink >.

B. < link >.

C. < a >.

D. < li >.

Right Answer is: C

SOLUTION

We make a hyperlink to another document with the tag and its href attribute, which defines the URL of the target document as mentioned in previous section. The href attribute is used to specify the URL of the target of the link. For example, < a href = http://www.wildlife.com > Wild Life < /a >


Q. 194335 Ekta wants to create an ordered list such that the list appears in lowercase letters starting from 6th letter. The correct HTML code line is


A. < ol = 6 >.

B. < ol type = “a” start = 6 >.

C. < ol start = 6 >.

D. < ol type = “a”, start = 6 >.

Right Answer is: B

SOLUTION

The < start > attribute for the < ol > tag lets us change the beginning value. While, the type attribute, sets the actual numbering style. For example, < ol type = “a” start = 6 >, will display the list starting from the 6th letter, that is, ‘f’. Subsequent items are numbered with the same style, each value incremented by 1.


Q. 194336 Sita wants to create an ordered list such that the list starts from number “8” and the numbering style is in “lowercase roman numerals”. The correct HTML code line is


A. < ol = 8 >.

B. < ol type = 8 >.

C. < ol start = 8, type = ‘i’ >.

D. < ol start = 8 type = ‘i’ >.

Right Answer is: B

SOLUTION

The two attributes of the < ol > tag are < start > and < type >. The < start > attribute for the < ol > tag lets us change the beginning value. For example, < ol start = 8 >, will start a numbering list at 8. While, the type attribute, sets the actual numbering style. For example, < ol start = 8 type= ‘i’ >, will start numbering items at 8, but the style of numbering is set to ‘i’, the first number is the lowercase Roman numeral “viii”. Subsequent items are numbered with the same style, each value incremented by 1.


Q. 194337 Amit wants to create a list that contains different cars. But he wants the list items should have letters starting with “A”. To achieve this, he should use


A. < ol >.

B. < ol type = “A” >.

C. < ul type = “A” >.

D. < ul >.

Right Answer is: B

SOLUTION

To change the numbering style, we can use the type attribute along with the < ol > tag.  With the < ol > tag, the type attribute may have a value of A for numbering with capital letters, a for numbering with lowercase letters, I for capital Roman numbers, i for lowercase Roman numerals or 1 for common Arabic numerals.


Q. 194338 Ashita wants to create a list that contains the various kinds of drinks. But she wants the list items should have bullets rather than numbers or letters. To achieve this, she needs


A. < ol >.

B. < disc >.

C. < ul >.

D. < square >.

Right Answer is: C

SOLUTION

The three basic types of lists in HTML are: unnumbered, numbered and definition. An unnumbered or unordered list is a bulleted list. It is marked by < ul > and < /ul > tags.


Q. 194339 Pallavi is coding in HTML. She wants to use an attribute that lets her specify a title for the document to which she is linking. She should use


A. name attribute.

B. title attribute.

C. link attribute.

D. href attribute.

Right Answer is: B

SOLUTION

The title attribute lets us specify a title for the document to which we want to link. The value of the title attribute is any string, enclosed in quotation marks. The browser might use it when displaying the link. The title attribute is useful for referencing an otherwise unlabeled resource, such as an image or a non-HTML document.


Q. 194340 Prakash wants to show some computer options that may fit on the same line as the start of the definition. The attribute to be used is


A. start attribute.

B. compact attribute.

C. dir attribute.

D. lang attribute.

Right Answer is: B

SOLUTION

The compact attribute is used when definition terms are very short. It tells the browser to squeeze the list when possible.


Q. 194341 Aparna is preparing a presentation for her class. She has to explain the computer options. She wants the list of the computer options to be displayed without any bullet symbol or any number in front of each item. The kind of list she should choose is


A. ordered list.

B. unnumbered list.

C. numbered list.

D. definition list.

Right Answer is: D

SOLUTION

A definition list is a list of items, with a description of each item. It starts with a < dl > tag (definition list). Each term starts with a < dt > tag (definition term). Each description starts with a < dd > tag (definition description).


Q. 194342 Ashi is taking the test on HTML. The first question that appears on her screen is: The two attributes for < ol > are


A. dir and lang attribute.

B. start and type attribute.

C. type and underline attribute.

D. dir and start attribute.

Right Answer is: B

SOLUTION

The start attribute lets us change the beginning value. It must be set to a numeric value. The type attribute is used to change the numbering style.


Q. 194343 Parthav desires to create an HTML code using the < ul > tag in such a way, that the list items have either squares or circles before them. The attribute of the < ul > tag that needs to be used is


A. dir attribute.

B. lang attribute.

C. type attribute.

D. underline attribute.

Right Answer is: C

SOLUTION

By default, the browser automatically bullets each < ul > tagged item. However, the bullet style can be changed using type attribute. This attribute may have a value of either disc, circle or square.


Q. 194344 Pooja has to prepare a list of guests to be invited in the party. She wants that all the names should have bullets before them. The tag that can be used to accomplish this is


A. < un >.

B. < ul >.

C. < uo >.

D. < ol >.

Right Answer is: B

SOLUTION

An unnumbered or unordered list is identified as < ul >. It is a bulleted list. It starts with an opening list < ul >. It then uses the < li > tag to denote the beginning of each new list item.


Q. 194345 To insert an image we use the tag


A. < img src >

B. < image >

C. < img href >

D. < href >

Right Answer is: A

SOLUTION

To insert an image we use the tag . It called the images that we have defined in the SRC attribute followed be "=" and the name of the file, surrounded by quotes.


Q. 194346 Rakesh has to prepare an assignment on the basic types of lists in HTML. They are


A. data list , number list, order list.

B. data definition, number definition, order definition.

C. ordered list, unordered list, definition list.

D. basic list, advanced list, logical list.

Right Answer is: C

SOLUTION

There are three basic types of lists in HTML. They are unnumbered or unordered list, numbered or ordered list and definition list.


Q. 194347 One of the value that is used for align attribute of < img > is known as


A. center.

B. bottom.

C. diagonal.

D. mailto.

Right Answer is: B

SOLUTION

With Netscape and Internet Explorer, the bottom alignment value has the same effect, i.e., the browsers align the bottom of the image in the same horizontal plane as the baseline of the text.


Q. 194348 A list that lists the items with numbers is defined as


A. < list >.

B. < dl >.

C. < ol >.

D. < ul >.

Right Answer is: C

SOLUTION

An ordered list (also known as numbered list) is an indented list that has numbers or letters in front of each item. These lists are marked by < ol > and < /ol > tags.


Q. 194349 The link which is used to allow the visitor to send an email from our page is


A. add an image of an envelope

B. add < a href =

C. add < a href = mailto:youraddress >

D. add < a href = “youraddress:mailto” >

Right Answer is: C

SOLUTION

MAILTO function allows other users to communicate with us via email. MAILTO is called using an anchor just like standard links to other documents, i.e., using href attribute. The mailto function creates a link that, when clicked on, displays a separate window which allows users to write and send an email message to the specified email address (es). We can send email to multiple addresses by separating all email addresses with a comma and space. The syntax is: < a href = mailto:emailaddress >email address < /a >.


Q. 194350 Name the attribute that is used for image alignment.
A. add an image of an envelope
B. add < a href =
C. add < a href = mailto:youraddress >
D. add < a href = “youraddress:mailto” >

Right Answer is:

SOLUTION

The align attribute.


Q. 194351 Name the attribute that is used to specify alternate text.
A. add an image of an envelope
B. add < a href =
C. add < a href = mailto:youraddress >
D. add < a href = “youraddress:mailto” >

Right Answer is:

SOLUTION

The alt attribute.


Q. 194352 Name the attribute that we use to specify the image source.
A. add an image of an envelope
B. add < a href =
C. add < a href = mailto:youraddress >
D. add < a href = “youraddress:mailto” >

Right Answer is:

SOLUTION

The src attribute.


Q. 194353 What does a definition list consists of?
A. add an image of an envelope
B. add < a href =
C. add < a href = mailto:youraddress >
D. add < a href = “youraddress:mailto” >

Right Answer is:

SOLUTION

A definition list consists of alternating a definition term ( < dt > ) and a definition description ( < dd > ).


Q. 194354 To avoid repetition of statements in stylesheets, we should use


A. tags.

B. elements.

C. grouping.

D. traces.

Right Answer is: C

SOLUTION

In order to decrease repetitious statements within stylesheets, grouping of selectors and declaration is allowed.


Q. 194355 Syntax is the


A. book of markup languages.

B. rules of RecipeML.

C. rules of CML.

D. grammar of a language.

Right Answer is: D

SOLUTION

If all tags in a document are correctly formed and follow XML guidelines, then a document is considered as well-formed. Syntax is the grammar of language.


Q. 194356 XML well-formed documents have


A. two root elements.

B. four root elements.

C. one root element.

D. three elements.

Right Answer is: C

SOLUTION

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. 194357 Default character-set value is


A. UPF-8.

B. UTF-8.

C. UCF–6.

D. UTF-6.

Right Answer is: B

SOLUTION

The encoding pseudo-attribute specifies the characterset. This pseudo-attribute is optional. If we skip it, the default character-set is UTF-8.


Q. 194358 A format for representing recipes on computer


A. InkML.

B. CML.

C. GML.

D. RecipeML.

Right Answer is: D

SOLUTION

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


Q. 194359 XML is


A. expandable.

B. a stylesheet.

C. free and extensible.

D. designed to display data.

Right Answer is: C

SOLUTION

XML tags are not predefined. We can use XML to create our own tag set. We can create or invent new tags as per our requirements.


Q. 194360 XML is given recommendation by


A. W3C.

B. Microsoft.

C. Sun.

D. IBM.

Right Answer is: A

SOLUTION

XML is supported and recommended by World Wide Web Consortium (W3C). W3C forms working group to develop specifications for XML. W3C has laid down certain rules that need to be followed by all XML applications.


Q. 194361 A sequence of contiguous ink points is known as


A. vector.

B. trace.

C. element.

D. scalar.

Right Answer is: B

SOLUTION

A trace represents a sequence of contiguous ink points, where each point captures the values of particular quantities such as the X and Y coordinates of the pen’s position. A sequence of traces accumulates to meaningful units such as characters, words or diagrams.


Q. 194362 The correct way to insert comments is


A. < -- This is comment -- >.

B. < !- - This is a comment -- >.

C. < - - ! This is a comment !-- >.

D. < ? This is a comment ? >.

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


Q. 194363 CML stands for


A. Central Markup Language.

B. Chemical Markup Language.

C. Center Markup Language.

D. Chemical Marked Language.

Right Answer is: B

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), ChessGML (Chess Game Markup Language), CML (Chemical Markup Language) etc.


Q. 194364 A valid XML document


A. has a stylesheet file.

B. has an html file.

C. confirms to XML syntax rules as well as DTD specification.

D. creates new rules for the document.

Right Answer is: C

SOLUTION

Valid documents must conform to XML syntax rules as well as DTD. Document Type Definition (DTD) is a set of rules that defines what tags appear in an XML document.


Q. 194365 The two types of entities are


A. physical and logical.

B. internal and external.

C. structured and unstructured.

D. automatic and manual.

Right Answer is: B

SOLUTION

The storage units in physical structure terms are called entities. Entities can either be contained inside document (i.e., internal entities) or can also exist outside document (i.e., external entities).


Q. 194366 XML file confirming to syntax or grammar rules is called a


A. valid document.

B. correct document.

C. well-formed document.

D. confirmed document.

Right Answer is: C

SOLUTION

Well-formed documents must conform to XML syntax rules. They have correctly formed tags & follow XML guidelines.


Q. 194367 GML stands for


A. Geometric Markup Language.

B. Geography Markup Language.

C. Global Markup Language.

D. Google Markup Language.

Right Answer is: B

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), GML (Geography Markup Language), ChessGML (Chess Game Markup Language), CML (Chemical Markup Language) etc.


Q. 194368 The extension for a css file is


A. .xml.

B. .css.

C. .xsl.

D. .ods.

Right Answer is: B

SOLUTION

To create a CSS file, we need to write the style-rules for desired selectors in an editor and save them with extension .css.


Q. 194369 A style-sheet is made up of


A. several style-sheets.

B. workbooks.

C. worksheets.

D. style rules.

Right Answer is: D

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. 194370 CSS stands for


A. Centering Sheet Style.

B. Cascading Style Sheet.

C. Cubical Style Sheet.

D. Conical Style Sheet.

Right Answer is: B

SOLUTION

CSS stands for Cascading Style Sheet. It is a collection of formatting rules. It controls the appearance of content in a web page.


Q. 194371 Attribute values must always


A. begin with a letter.

B. contain symbols.

C. be quoted.

D. contain only letters.

Right Answer is: C

SOLUTION

Attribute values must always be quoted (as opposed to HTML). For example, < title id = “1” > Beautiful < /title >


Q. 194372 A data instance is also known as


A. body.

B. head.

C. root element.

D. document element.

Right Answer is: A

SOLUTION

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. 194373 One of the element types is


A. definition element tag.

B. declaration element tag.

C. declared empty element tag.

D. defined empty element tag.

Right Answer is: C

SOLUTION

Elements that are nested inside the root element belong to one of the following three element categories: start tag, end tags and declared empty element tag. A start tag is a tag name inside angle brackets, e.g., < atag >. An end tag is a tag-name that has same name as that of its start tag but with a pre-ceeding slash, e.g., < /atag >. A declared empty element tag is a tag without end tag.


Q. 194374 Explain XML-document system. How is it different from XML document or XML-file?
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

XML-document system is the set of all related files and documents that are needed when an XML based file is to be rendered on web. It comprises of:

(i)
Style-sheet file (CSS or XSL)
(ii) Grammar structure (DTD)
(iii) Semantics of data (XML file)

XML-document or XML-file is a component of XML document system. An XML document contains the real data and its semantics.


Q. 194375 Create a tag set for employees which consists of student name, rollno and subject etc. Write a sample XML tag set for the above.
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

< student-list >

          < student >

               < name > Akash < /name >

               < rollno > 5 < /rollno >

               < subject > Mathematics < /subject >

          < /student >

          < student >

              < name > Bhavna < /name >

              < rollno > 11 < /rollno >

              < subject > Biology < /subject >

         < /student >

     < student-list >


Q. 194376 List some of the rules laid down by W3C that all XML applications need to follow.
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

The rules that all XML applications need to follow are listed below: 
(i) XML must be directly usable over the Internet. 
(ii) XML must support a wide variety of applications. 
(iii) XML must be compatible with SGML. 
(iv) Number of optional features in XML needs to be kept to the absolute minimum, ideally zero. 
(v) XML documents must be human-legible and clear. 
(vi) XML design must be formal and concise.


Q. 194377 Create XML document using tags of your own choice to define a question “Who is the Father of the Nation?” , options as (a) Jawahar Lal Nehru, (b) Mahatma Gandhi, (c) Subhash Chandra Bose, (d) Bhagat Singh and the answer as  ‘b’.
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

< QuestionPaper >

        < Question category = “MCQ” >

        < title > Who is the Father Of Nation? < /title >

        < optionA > A). Jawahar Lal Nehru < /optionA >

        < optionB > B). Mahatma Gandhi< /optionB >

        < optionC > C). Subhash Chandra Bose  
     < /optionC >

       < optionD > D). Bhagat Singh < /optionD >

       < answer > B). < /answer >

       < /Question >

       < /QuestionPaper >


Q. 194378 What are the differences between InkML and RecipeML.
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

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. The fundamental data element in an InkML file is the < trace >. Trace represents a sequence of contiguous ink points.

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


Q. 194379 What are the important rules for an XML document?
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

The important rules for an XML document are:

1. XML documents must contain at least one element.

2. XML documents must contain a unique opening & closing tag that contains the whole document, known as a root element.

3. All other tags must be closed properly, i.e., there must be a proper opening & a closing tag. In XML, empty tags must end with a following slash.

4. All other tags must be nested properly, i.e., the start and end tags of child elements cannot overlap.

5. Tags in XML are case-sensitive. That is, < Audio >, < AUDIO > and < audio > are not the same.

6. Attribute values must always be quoted.


Q. 194380 Explain the structure of XML file/document.
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

Every XML document is a structured document. Every XML file or document has both, a logical structure and a physical structure. The logical structure tells about what all elements are to be included in the document and the order of elements. The physical structure contains the actual content. The storage units in physical structure terms are called entities. Entities can either be contained inside document, i.e., internal entities or can also exit outside the document, i.e., external entities.


Q. 194381 Create XML markup to create a message sent on 12 Feb 2011 to Pranav and Piyush by Prerna. The message is “Let us meet up on the coming weekend”.
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

< ?xml version = “1.0”? >

   < message data = “2/12/2011” >

   < sender > Prerna < /sender >

   < receivers >

   < receiver > Pranav < receiver >

   < receiver > Piyush < receiver >

   < /receivers >

   < text > Let us meet up on the coming weekend < /text >

   < /message >


Q. 194382 Fill in the blanks: 
(a) The software that is used to validate XML document is called ________.
(b) The root element is the _________ of the structure in an XML document. (c) A DTD begins with _______ declaration.
(d) An XML document that follows all grammer rules is _____.
(e) The parent element is also called _______ element.
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

(a) XML Validator.

(b) top-level

(c) !DOCTYPE

(d) well formed document

(e) root.


Q. 194383 State true and false.(a) XML is a subset of SGML.
(b) XML is a meta language.
(c) The empty element contains a combination of child elements and character data.
(d) In XML, white spaces refer to spaces, tabs, carriage returns and blank lines.
(e) XML supports four types of elements.
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

(a) True

(b) True

(c) False

(d) True

(e) True


Q. 194384 Fill in the blanks: 
i. XML stands for _______________.
ii. ______attribute is used with < IMG > tag to specify the URL of image.
iii. HTML attribute value should always be enclosed in______.
iv. The < BASE > tag is designed to appear only between the _______tag.
v. Anything inside the actual _________ statement needs to remain intact.
vi. An XML document that follows all grammar rule is_______.
vii. ________ is a preface or introduction to XML document.
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

i. eXtensible Markup Language
ii. src  
iii. tags 
iv. < HEAD >  
v. < A HREF >
vi well-formed documents
vii. Prolog


Q. 194385 i. Why does an XML document form a tree structure? Explain with an example.    

ii. Write the HTML code to generate the following output of a table with the content exactly in the same format as shown within the table:
                                      [5+5=10]
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

i.  XML document must contain a root element. This element is “the parent” of all other elements. The elements in an XML document form a document tree. The tree starts at the root and branches to the lowest level of the tree.

All elements can have sub elements(child elements):

< root >

     < child >

              < subchild > …… < /subchild >

    < /child >

< /root >

         

ii. Code for the given table format:

< html >

< body >

 

< table border="1" >

< caption > < font color = "blue" > < b >Student Record< b >< /font >

< /Caption >

< tr >

    < th >Add No.< /th >

    < th >Name< /th >

    < th >Age< /th >

    < th >Address< /th >

    < th >Contact No.< /th >

  < /tr >

  < tr >

    < td >111< /td >

    < td >Pooja< /td >

    < td >20< /td >

    < td >XYZ< /td >

    < td >1234< /td >

  < /tr >

< tr >

    < td >112< /td >

    < td >Prerna< /td >

    < td >20< /td >

    < td >abc< /td >

    < td >2567< /td >

  < /tr >

< /table >

 

< /body >

< /html >


Q. 194386 i. Which of the following is an attribute of < Img > tag? a) SRC
b) LINK
c) CELLPADDING
d) BOLD

ii. Which tag tells where the link starts?
a) < A >
b) < L >
c) < LI >
d) < start here >

iii. The tag which allows some Web server search engines to search your Web page
a) < Page>
b) < ISINDEX>
c) < HEAD >
d) < None of these >

iv. What is the correct syntax of the declaration which defines the XML version?
a) < ?xml version=”1.0”/ >
b) < xml version=”1.0”/ >
c) < ?xml version=”1.0”? >
d) < ?xml version=”1.0”* >

v. What does DTD stand for?
a) Dynamic Type Definition
b) Do The Definition
c) Direct Type Definition
d) Document Type Definition

vi. Choose the correct HTML tag to make the text italic?
a) < B >
b) < BOLD >
c) < I >
d) Both a) and c)

vii. What is the correct way of describing XML data?
a) XML uses a validation to describe the data
b) XML uses XSL to describe the data
c) XML uses a description node to describe data
d) XML uses a DTD to describe data

viii. Which is not correct name for an XML?
a) < NAME >
b) < age >
c) < first name >
d) < name >

ix. What does XSL stands?
a) eXtensible Style Listing
b) eXpandable Style Listing
c) eXtensible Stylesheet Language
d) eXtra style Language

x. Choose the correct HTML tag for the largest heading?
a) < H1 >
b) < H6 >
c) < H10 >
d) < HEAD >

xi. XML tags are
a) written only in uppercase letter.
b) written only in lowercase letter.
c) both upper and lowercase
d) case sensitive
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

i. a
ii. a
iii. b
iv. c
v. d
vi. b
vii. b
viii. c
ix. c
x. b
xi. d


Q. 194387 i. Which tag is used to include a background image?
a) < body style=”background-image:filename.gif” >.
b) < image >filename.gif< /image >
c) < body background = “filename.gif” >
d) < body bgimg=”filename.gif” >

ii. Every XML document has
a) only a logical structure.
b) only a physical structure.
c) both logical and meta structure.
d) both logical structure and physical structure.

iii. Choose the correct HTML tag for the smallest heading?
a) < H1 >
b) < H6 >
c) < H10 >
d) < HEAD >

iv Choose the correct attribute of < ul > tag 
a) dir attribute.
b) lang attribute.
c)  type attribute.
d) underline attribute.

v. Which attribute of < A > tag is used for linking to another web page?
a) title
b) href
c) name
d) sub

vi. Choose is the correct syntax in HTML for creating a link on a webpage
a) < LINK SRC= "abc.html" >
b) < BODY LINK = "abc.html" >
c) < A SRC = "abc.html" >
d) < A HREF = "abc.html" >

vii. Which of the following is not a valid value for align
attribute of < img >?
a) top
b) middle
c) bottom
d) center

viii. Which HTML tag would be used to display power in expression X2?
a) < SUP >
b) < SUB >
c) < B >
d) < P >

ix. Which tag should be used to start a table cell?
a) < table >
b) < tc >
c)  < td >
d) < tr >

x. Choose the correct way to include comments in XML
document:
a) < ?_ _ _ _ >
b) < !_ _ _ _! >
c) < !_ _ _ _ >
d) < /_ _ _ _ >

xi. Is this a "well formed" XML document?
< ?xml version="1.0"? >
< note >
< to age="29">Tove
< from>Aditya
< /note >

a) Yes
b) No
c) Cannot be determined without the DTD
d) None of the above

xii. To view the output of XML document, we need to use:
a) Word Processor
b) Web browser
c) Notepad
d) None of the above

xiii. A valid XML document
a) confirms to XML syntax rules as well as DTD specification
b) creates new rules for the document
c) has a stylesheet file
d) breaks a document in sections

xiv. What are the two table dimension tags?
a) < TL > and < TW >
b) < TR > and < TD >
c) < TD > and < RD >
d) < TC > and < RD >

xv. Well formed XML document means
a) It contains a root element
b) It contains an element
c) It contains one or more elements
d) Must contain one or more elements and root element must contain all other elements.
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

i.    (c) 
ii.   (d)
iii.  (b)
iv.  (c)
v.   (b)
vi.  (d)
vii. (d)
viii.(a)
ix.  (c)
x.   (c)
xi.  (b)
xii. (b)
xiii.(a)
xiv.(b)
xv. (d)


Q. 194388 Answer the following questions:
(a) What is the general rule to declare XML tags?
(b) What is the purpose of XML declaration?
(c) Do you think XML is the replacement of HTML?
(d)What is DTD?
(e) What do you understand by XML Parser?
(f) Differentiate bewteen well formed XML document and valid XML document.
(g) Who developed XML?
(h) What is an XML Element? [2+2+2+2+2+2+2+2 = 16]
A. definition element tag.
B. declaration element tag.
C. declared empty element tag.
D. defined empty element tag.

Right Answer is:

SOLUTION

(a) The syntax rules of XML are very simple.
• All XML elements must have a closing tag.
• XML tags are case sensitive.
• XML elements must be properly nested.
• XML documents must have a root element.
• XML attribute values must be quoted.

(b) The XMLdeclaration indicates that the document is written in XML and specifies which version of XML is used. It also specifies the language encoding for the document (optional) and if the application refers to external entities.


(c) No, XML itself does not replace HTML. Instead, it provides an alternative that allows you to define your own set of markup elements.

(d) DTD stands for Document Type Definition. A DTD allows you to create rules for the elements within your XML documents.

(e) XML Parser is the software that reads XML documents and interprets or “parse” the code according to the XML standard. A parser is needed to perform actions on XML, such as comparing an XML document to a DTD.

(f) Well formed XML documents contain text and XML tags which conform with the XML syntax.

Valid XML documents must be well formed and are additionally error checked against a Document Type Definition (DTD). A DTD is a set of rules outlining which tags are allowed, what values those tags may contain and how the tags relate to each other. Typically, a valid document is used when documents require error checking and enforced structure or are working within a company in whch many documents need to follow the same guidelines.

(g) XML is a project of the World Wide Web Consortium (W3C) and the development of the specification is supervised by an XML Working Group.

(h) XML Elements are represented by tags. Elements usually consist of an opening tag and a closing tag.


Q. 194389 The abbreviation DBMS stands for


A. Data Borrowing and Movement Software.

B. Database Management System.

C. Database Manipulation Software.

D. Digital Base Mapping System.

Right Answer is: B

SOLUTION

Database Management System (DBMS) is a computer program that manages a database effectively and efficiently. Database refers to the collection of interrelated data.


Q. 194390 One of the advantages of database systems is


A. system complexity.

B. extra hardware requirement.

C. reduced data redundancy.

D. performance overhead.

Right Answer is: C

SOLUTION

Data redundancy means duplication of data. Data redundancy sometimes refers to computer data storage. It is a property of some disk arrays that provides fault tolerance, so that all or part of the data stored in the array can be recovered in the case of disk failure. Database systems reduce redundancy of data.


Q. 194391 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. 194392 Data items grouped together for storage purposes are called


A. table.

B. relation.

C. record.

D. tree.

Right Answer is: C

SOLUTION

An ordered set of fields, usually stored contiguously is known as a record.


Q. 194393 A spreadsheet is an example of


A. flat database.

B. relational database.

C. normalisation.

D. query.

Right Answer is: A

SOLUTION

When all the data is stored in one file, then such a database is called Flat Database.


Q. 194394 What does the logical structure of XML document consists of?
Right Answer is:

SOLUTION

The logical structure of an XML document consists of mainly–
a. The Prolog
b. The Data Instance


Q. 194395 Name the first generic mark-up language.
Right Answer is:

SOLUTION

SGML (Standard Generalized Markup Language)


Q. 194396 Expand the following terms - DTD and PI.
Right Answer is:

SOLUTION

DTD stands for Document Type Definition and PI stands for Processing Instructions.


Q. 194397 Write the other name for root element?
Right Answer is:

SOLUTION

Document element


Q. 194398 Define the term ‘entity’?
Right Answer is:

SOLUTION

The storage units in physical structure are called entities. Entities can be either external or internal.


Q. 194399 Define meta-language?
Right Answer is:

SOLUTION

A meta-language defines other languages.


Q. 194400 Is XML just HTML on steroids?
Right Answer is:

SOLUTION

No. XML is a true subset of SGML designed for use on the Internet. It supports all the structural and validation features that we expect from SGML. Valid XML documents are valid SGML documents.


PreviousNext