MCQOPTIONS
Saved Bookmarks
This section includes 1917 Mcqs, each offering curated multiple-choice questions to sharpen your UGC-NET knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
Which of the following refers to the element in an HTML document? |
| A. | document.body |
| B. | document.documentElement |
| C. | document.htmlElement |
| D. | document.rootElement |
| Answer» C. document.htmlElement | |
| 52. |
Which of the following methods is used to get a particular element? |
| A. | getElementByTagName() |
| B. | getElementById() |
| C. | returnElementById() |
| D. | getElement() |
| Answer» C. returnElementById() | |
| 53. |
Which of the following represents the element? |
| A. | document.documentElement.firstChild |
| B. | document.documentElement.childNodes[1] |
| C. | document.body.firstChild |
| D. | document.documentElement.lastChild |
| Answer» B. document.documentElement.childNodes[1] | |
| 54. |
Which of the following is equivalent to the occurrence indicator? |
| A. | {0, 1} |
| B. | {0,} |
| C. | {1,} |
| D. | None of the above |
| Answer» B. {0,} | |
| 55. |
The full form of DTD is |
| A. | Data Type Definition |
| B. | Document Type Declaration |
| C. | Document Type Definition |
| D. | Dynamic Type Declaration |
| Answer» D. Dynamic Type Declaration | |
| 56. |
Which of the following syntax is used to include DTD in your XML document? |
| A. | <DOCTYPE root – element [element – declarations]> |
| B. | <DOCTYPE root – element (element – declarations)> |
| C. | <!DOCTYPE root – element [element – declarations]> |
| D. | <!DOCTYPE [element – declarations]> |
| Answer» D. <!DOCTYPE [element – declarations]> | |
| 57. |
Which of the following element declaration is valid? |
| A. | <!ELEMENT root (#(DATA)> |
| B. | <!ELEMENT root (#P(DATA)> |
| C. | <!ELEMENT root (#ANY)> |
| D. | <ELEMENT root (#P(DATA)> |
| Answer» C. <!ELEMENT root (#ANY)> | |
| 58. |
In XML schema a Boolean type can hold |
| A. | 1, 0 |
| B. | True, False |
| C. | Both (a) & (b) |
| D. | True, false and any number except 0 |
| Answer» D. True, false and any number except 0 | |
| 59. |
A DTD for an XML document structure with a list of |
| A. | Internally |
| B. | Externally |
| C. | Both (a) and (b) |
| D. | None of the above |
| Answer» D. None of the above | |
| 60. |
Xpath is a language used to find information in a |
| A. | text file |
| B. | XML document |
| C. | HTML document |
| D. | X Query document |
| Answer» C. HTML document | |
| 61. |
Which of the following is not a correct name for an XML document? |
| A. | <para> |
| B. | <line> |
| C. | <IST> |
| D. | All three names are incorrect |
| Answer» B. <line> | |
| 62. |
Which of the following is the main building block of an xml file? |
| A. | Attribute |
| B. | Entities |
| C. | Elements |
| D. | Text |
| Answer» D. Text | |
| 63. |
Which one of the following tags refers to an external script called “sample.js”? |
| A. | <script name = “sample.js”> <⁄script> |
| B. | <script src = “sample.js”> <⁄script> |
| C. | <script href = “sample.js”> <⁄script> |
| D. | <script target = “sample.js”> <⁄script> |
| Answer» C. <script href = “sample.js”> <⁄script> | |
| 64. |
Which one of the following is the correct syntax to refer to the style sheet “simple.xsl”? |
| A. | <? xml – style sheet type = “text ⁄ xsl” href = “simple.xsl”?> |
| B. | <style sheet href = “simple.xsl “type = “text / xsl” ⁄> |
| C. | <link type = “text ⁄xsl” href = “simple.xsl”⁄> |
| D. | <! Xml – style sheet href = “simple.xsl “type = “text ⁄ xsl”!> |
| Answer» B. <style sheet href = “simple.xsl “type = “text / xsl” ⁄> | |
| 65. |
Which of the following is a function of regular expression? |
| A. | exec() |
| B. | match() |
| C. | replace() |
| D. | split() |
| Answer» B. match() | |
| 66. |
Which of the following is true if A and B are not equal? |
| A. | if A not = b |
| B. | if A! = B |
| C. | if (A not = B) |
| D. | if (A! = B) |
| Answer» E. | |
| 67. |
Which of the following namespace declaration is correct? |
| A. | <root ns:p = “<http⁄⁄it.jusl.ac.in>”> |
| B. | <root xmlns:p =“http:⁄⁄it.jusl.ac.in>”> |
| C. | <root:xmlns = “http:⁄⁄it.jusl.ac.in>”> |
| D. | <root namespace:p=”http://it.jusl.ac.in>”> |
| Answer» D. <root namespace:p=”http://it.jusl.ac.in>”> | |
| 68. |
Which of these are based on x path expression? |
| A. | XQuery and XML |
| B. | XQuery and XLINK |
| C. | XQuery and XPointer |
| D. | XLink and XPointer |
| Answer» D. XLink and XPointer | |
| 69. |
Which of the following is a predefined attributed? |
| A. | xml : lang |
| B. | xml : space |
| C. | both a & b |
| D. | None of these |
| Answer» D. None of these | |
| 70. |
What value is returned by get month() for the month of April? |
| A. | 2 |
| B. | 3 |
| C. | 4 |
| D. | 5 |
| Answer» C. 4 | |
| 71. |
Which of the following is not a valid of the position attribute? |
| A. | Absolute |
| B. | relative |
| C. | static |
| D. | dynamic |
| Answer» E. | |
| 72. |
Which of the following is not a java script opeartor? |
| A. | New |
| B. | this |
| C. | delete |
| D. | typeof |
| Answer» C. delete | |
| 73. |
HTML header section does not contain |
| A. | Epilogue |
| B. | Prologue |
| C. | Links |
| D. | Title |
| Answer» B. Prologue | |
| 74. |
In what form are style role presented? |
| A. | Selector {property : value; } |
| B. | Selector(property = value;) |
| C. | Selector(property : value;) |
| D. | Selector {property = value;} |
| Answer» B. Selector(property = value;) | |
| 75. |
What is the full form of DHTML? |
| A. | Dancing HTML |
| B. | Dynamic HTML |
| C. | Distributed HTML |
| D. | Data HTML |
| Answer» C. Distributed HTML | |
| 76. |
Which of the following methods is used to create an element type node? |
| A. | newElement() |
| B. | getElement() |
| C. | createElement() |
| D. | element() |
| Answer» D. element() | |
| 77. |
Which of the following uses X path expression? |
| A. | XLINK documents |
| B. | XSL documents |
| C. | XML documents |
| D. | XSLT documents |
| Answer» E. | |
| 78. |
What is the full form of CDATA? |
| A. | Computer DATA |
| B. | Character DATA |
| C. | Common DATA |
| D. | Compiled DATA |
| Answer» C. Common DATA | |
| 79. |
Which of the following is the correct syntax of a qualified name? |
| A. | local name : prefix |
| B. | local name – prefix |
| C. | prefix – local name |
| D. | prefix : local name |
| Answer» E. | |
| 80. |
Which of the following is not a property of the document object? |
| A. | a link color |
| B. | bg color |
| C. | back ground |
| D. | link color |
| Answer» D. link color | |
| 81. |
What is the full form of XSD? |
| A. | XSL schema definition |
| B. | XSLT schema definition |
| C. | XHTML schema definition |
| D. | XML schema definition |
| Answer» E. | |
| 82. |
Which of the following is not a property of the window object? |
| A. | Title |
| B. | location |
| C. | history |
| D. | document |
| Answer» B. location | |
| 83. |
W3C schema is written in |
| A. | XSL |
| B. | XSLT |
| C. | XML |
| D. | XHTML |
| Answer» D. XHTML | |
| 84. |
Which is the correct syntax of the union operator? |
| A. | <xsl : apply – template select = ‘ / head / title & / book / tittle ‘ /> |
| B. | <xsl : apply – template select = ‘ / head / title OR / book / tittle ‘ /> |
| C. | <xsl : apply – template select = ‘ / head / title AND / book / tittle ‘ /> |
| D. | <xsl : apply – template select = ‘ / head / title / / book / tittle ‘ /> |
| Answer» E. | |
| 85. |
Which of the following tag specifies the table item in html? |
| A. | <tr> |
| B. | <th> |
| C. | <ti> |
| D. | <lm> |
| Answer» D. <lm> | |
| 86. |
A document have how may DTD’s? |
| A. | Two |
| B. | None |
| C. | Three |
| D. | All of these |
| Answer» C. Three | |
| 87. |
Which of the following is not a property of the event object? |
| A. | src element |
| B. | target element |
| C. | From element |
| D. | to element |
| Answer» C. From element | |
| 88. |
Which of the following syntaxes is the correct usage of the element? |
| A. | <xsl : output method = ‘xml’ indent = ‘no’ /> |
| B. | <xsl : output method = ‘html’ indent = ‘no’ /> |
| C. | <xsl : output method = “text’ indent = ‘no’ /> |
| D. | All of them |
| Answer» E. | |
| 89. |
Attributes of the tag is⁄are |
| A. | a link |
| B. | v link |
| C. | Link |
| D. | All of these |
| Answer» E. | |
| 90. |
Which of the following syntax is used to declared an element in DTD? |
| A. | <ELEMENT element – name category> |
| B. | <!ELEMENT element – name category> |
| C. | <! Element – name ELEMENT category> |
| D. | <! ELE element – name category> |
| Answer» C. <! Element – name ELEMENT category> | |
| 91. |
The words Document node, node list, Element node, Named node map etc. Are |
| A. | Interfaces |
| B. | Objects |
| C. | Attributes |
| D. | Elements |
| Answer» B. Objects | |
| 92. |
and are used for |
| A. | Heading |
| B. | Underlining |
| C. | Alignment |
| D. | Listing |
| Answer» E. | |
| 93. |
Which of the following statements is fasle? |
| A. | XSLT is written in XML |
| B. | XSLT is not a W3C rewmmentate |
| C. | XSLT uses X path |
| D. | XSLT is a subset of XSL |
| Answer» D. XSLT is a subset of XSL | |
| 94. |
Which of the following is a meta character? |
| A. | - |
| B. | ⁄ |
| C. | @ |
| D. | . |
| Answer» E. | |
| 95. |
Which the following statement regarding XML is true? |
| A. | XML documents must have a root tag |
| B. | XML tags are case – sensitive |
| C. | XML elements must be properly nested |
| D. | All the statements are true |
| Answer» E. | |
| 96. |
Which of these is not a mathematical operator? |
| A. | ⁄ |
| B. | * |
| C. | + |
| D. | - |
| Answer» D. - | |
| 97. |
Which of the following technologies is used to display XML data? |
| A. | CSS |
| B. | Xpath |
| C. | XQuens |
| D. | XHTML |
| Answer» B. Xpath | |
| 98. |
Which of the following is not a valid X path axis? |
| A. | Attribute |
| B. | followed |
| C. | ancestor |
| D. | child |
| Answer» C. ancestor | |
| 99. |
How is an empty XML element defined? |
| A. | <sample><⁄sample> |
| B. | <sample⁄> |
| C. | All of the above |
| D. | None of the above |
| Answer» D. None of the above | |
| 100. |
The first control statement in a far loop usually |
| A. | Sets the termination condition |
| B. | increments a counter |
| C. | Creates a control variable |
| D. | none of the above |
| Answer» D. none of the above | |