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.
| 101. |
Which of the following expand entities? |
| A. | Compiler |
| B. | debugger |
| C. | linker |
| D. | parser |
| Answer» E. | |
| 102. |
Which of the following properties of the body tag prevents scrolling of a background image? |
| A. | background = “still” |
| B. | background = “fixed” |
| C. | bg properties = “Statinary” |
| D. | bgpropeties is =“fixed” |
| Answer» E. | |
| 103. |
Which method is used to search for a sub string? |
| A. | str.substring(subString) |
| B. | str.find(subString) |
| C. | str.indexOf(subString) |
| D. | str.indexOf(charAt(0)) |
| Answer» D. str.indexOf(charAt(0)) | |
| 104. |
HTML is used to mark-up |
| A. | Data |
| B. | file |
| C. | text |
| D. | none of these |
| Answer» D. none of these | |
| 105. |
In an XSLT document, the matching rule is called? |
| A. | Specification |
| B. | syntax |
| C. | rule |
| D. | template |
| Answer» E. | |
| 106. |
What is the correct syntax to create an array in java script? |
| A. | Names = new Array(“tom”‚ “jerry”); |
| B. | Names = new Array(1 : “tom”, 2 : “jerry”); |
| C. | Names = new Array { “tom”, “jerry” }; |
| D. | Names = new Array [ “tom”, “jerry” ]; |
| Answer» B. Names = new Array(1 : “tom”, 2 : “jerry”); | |
| 107. |
What is the number of parent nodes that a node in the DOM tree can have? |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4 |
| Answer» B. 2 | |
| 108. |
Which of the following DTD is valid? |
| A. | <!ENTITY abc “(#PC(DATA)”><!ELEMENT elm, & abc;> |
| B. | <!ENTITY sample elm “file1”> |
| C. | <!ENTITY sample SYSTEM “file1”> |
| D. | <!ENTITY Y.test” (#PCDATA)”><!ELEMENT elm1 % Test> |
| Answer» E. | |
| 109. |
“Get” and “post” belongs to ACTION |
| A. | Attribute |
| B. | Method |
| C. | PROCESS attribute |
| D. | ENCACTION attribute |
| Answer» C. PROCESS attribute | |
| 110. |
Which is the full form of PCDATA? |
| A. | Public character DATA |
| B. | Private character DATA |
| C. | Parsed character DATA |
| D. | Parsed and compilied DATA |
| Answer» D. Parsed and compilied DATA | |
| 111. |
What is the value of the node name attribute for a text node? |
| A. | $ text |
| B. | text # |
| C. | # text # |
| D. | # text |
| Answer» C. # text # | |
| 112. |
Which of the following attributes of the element specifies the URL to be loaded when the form is submitted? |
| A. | URL |
| B. | action |
| C. | go |
| D. | load |
| Answer» C. go | |
| 113. |
The syntax for defining an attribute is |
| A. | <xs:attribute name = a Name type = a Type⁄> |
| B. | <xs:attribute name = “ a Name type = “a Type”⁄> |
| C. | <attribute name = “ a Name “type = “ a Type ”⁄> |
| D. | <xs:attribute type = “a Type ”⁄> |
| Answer» C. <attribute name = “ a Name “type = “ a Type ”⁄> | |
| 114. |
The event object is accessible from |
| A. | only event handlers |
| B. | only handlers of key press event |
| C. | all functions |
| D. | a function named event() only |
| Answer» B. only handlers of key press event | |
| 115. |
Which of the following methods is used to parse an XML document? |
| A. | doParse() |
| B. | parse() |
| C. | parseXML() |
| D. | parseXMDOC() |
| Answer» C. parseXML() | |
| 116. |
Which of the following adds a plain color to the background of a web page? |
| A. | <body color = “#FF0000”> |
| B. | <body color = “3, 454”> |
| C. | <body bg color = “#FF0000”> |
| D. | <body bg color = “ 36, 24, 35”> |
| Answer» D. <body bg color = “ 36, 24, 35”> | |
| 117. |
Which CSS property controls the text size? |
| A. | Text – size |
| B. | font – style |
| C. | text – style |
| D. | font - size |
| Answer» E. | |
| 118. |
DTP defines the document structure with a list of |
| A. | Elements |
| B. | bad elements |
| C. | Legal elements |
| D. | none of these |
| Answer» D. none of these | |
| 119. |
Which of the following is not an image attribute? |
| A. | Link |
| B. | Align |
| C. | SRC |
| D. | alt |
| Answer» B. Align | |
| 120. |
What is the full form of XML |
| A. | extra markup language |
| B. | extensible markup language |
| C. | x-markup language |
| D. | expandable markup language |
| Answer» C. x-markup language | |
| 121. |
Which of the following parameter of the insert adjacent HTML function does not effect the context element? |
| A. | Before Begin |
| B. | After end |
| C. | After Begin |
| D. | All of them |
| Answer» D. All of them | |
| 122. |
Which of the following represents an optional occurrence indicator? |
| A. | * |
| B. | + |
| C. | ? |
| D. | None of the above |
| Answer» D. None of the above | |
| 123. |
What is the correct syntax of the CDATA section in an XML document? |
| A. | <CDATA> Text to be ignored <⁄CDATA> |
| B. | <PCDATA> Text to be ignored <⁄PCDATA> |
| C. | <xml: CDATA [Text to be ignored]> |
| D. | <![CDATA [Text to be ignored]]> |
| Answer» E. | |
| 124. |
Which of the following represents the correct format of the built-in simple type ‘data’? |
| A. | MM-DD-YY |
| B. | DD-MM-YY |
| C. | YY-MM-DD |
| D. | YYY-MM-DD |
| Answer» E. | |
| 125. |
Which of the following refers to the element in an HTML page? |
| A. | window.document |
| B. | window.document.body |
| C. | window.document.document.element |
| D. | window.body |
| Answer» E. | |
| 126. |
Which of the following statement is true regarding the match attribute of the element? |
| A. | select element for which a template is applied |
| B. | creates a variable |
| C. | select a variable |
| D. | select a case |
| Answer» B. creates a variable | |
| 127. |
Which of the following methods is used to create a text type node? |
| A. | createText() |
| B. | newTextNode() |
| C. | newText() |
| D. | createTextNode() |
| Answer» E. | |
| 128. |
What is the full form of XSLT? |
| A. | Extendable Style Language Translation |
| B. | Extensible Style sheet Language Transformation |
| C. | Extensible Style Language Transformation |
| D. | Extensible Style sheet Language Translation |
| Answer» C. Extensible Style Language Transformation | |
| 129. |
What does the confirm() method of the window object return? |
| A. | An Integer |
| B. | A String |
| C. | A Boolean |
| D. | An Object |
| Answer» D. An Object | |
| 130. |
Which of the following is not a kind of complex element? |
| A. | Element that contains only other elements |
| B. | Empty element |
| C. | Element that contains only text |
| D. | Element that contains both text and other child element |
| Answer» D. Element that contains both text and other child element | |
| 131. |
Which of the following constructs is used for looping in XSLT? |
| A. | While |
| B. | for-each |
| C. | do while |
| D. | for |
| Answer» C. do while | |
| 132. |
Which of the following is not a property of the location object? |
| A. | hoslname |
| B. | host |
| C. | hash |
| D. | url |
| Answer» E. | |
| 133. |
Nodes having a common parent are called? |
| A. | Child |
| B. | Parent |
| C. | Sibling |
| D. | Descendant |
| Answer» D. Descendant | |
| 134. |
Which of the following is not a method of the history object? |
| A. | back() |
| B. | up() |
| C. | forward() |
| D. | go() |
| Answer» C. forward() | |
| 135. |
Which of the following constructs is used to select one among several possibilities? |
| A. | Select |
| B. | choose |
| C. | pick up |
| D. | do select |
| Answer» C. pick up | |
| 136. |
Which of the following axes is used by XSLT? |
| A. | Grand – parent |
| B. | ancestor |
| C. | Child |
| D. | descendent – or – self |
| Answer» B. ancestor | |
| 137. |
Which of the following attributes returns the name of an element? |
| A. | Element Name |
| B. | name |
| C. | tag Name |
| D. | get Name |
| Answer» D. get Name | |
| 138. |
Which of the following is the correct syntax for creating an anchor tag? |
| A. | <ref = <http:⁄⁄mail.jusl.ac.in⁄’>JUSL web mail <⁄ref> |
| B. | <a ref = “http:⁄⁄mail.jusl.ac.in⁄’>JUSL web mail <⁄a> |
| C. | <a ref = ‘http:⁄⁄mail.jusl.ac.in⁄”>JUSL web mail <⁄a> |
| D. | <h ref = “http:⁄⁄mail.jusl.ac.in⁄’> JUSL web mail> |
| Answer» C. <a ref = ‘http:⁄⁄mail.jusl.ac.in⁄”>JUSL web mail <⁄a> | |
| 139. |
Which of the following is used to inspect the type of a node? |
| A. | Type |
| B. | type of node |
| C. | node type |
| D. | get node type |
| Answer» D. get node type | |
| 140. |
Which of the following is a major part of W3C’s XSLT standard? |
| A. | X path |
| B. | X pointer |
| C. | XQuery |
| D. | X Link |
| Answer» B. X pointer | |
| 141. |
Which of the following properties is used to change the left margin of an element? |
| A. | margin : |
| B. | indent : |
| C. | margin – left : |
| D. | text – indent : |
| Answer» D. text – indent : | |
| 142. |
Which of the following properties is used to set the maximum height for an element? |
| A. | Maximum – height |
| B. | max – height |
| C. | m – height |
| D. | maxi – height |
| Answer» C. m – height | |
| 143. |
Which of the following options is available for changing the text color in CSS? |
| A. | Hex color only |
| B. | Common name and Hex color only |
| C. | Common name, RBGValue, Hexcolor |
| D. | RBGValue, Hex color |
| Answer» D. RBGValue, Hex color | |
| 144. |
Which of the following tags is used to insert java script code? |
| A. | <jscode> |
| B. | <script> |
| C. | <javascript> |
| D. | <code> |
| Answer» C. <javascript> | |
| 145. |
Which of the following has child nodes attributes? |
| A. | Attr |
| B. | Text |
| C. | Entity |
| D. | Element |
| Answer» E. | |
| 146. |
Which one of the following is a correct attribute declaration? |
| A. | <element – name attribute – name = attribute – value ⁄> |
| B. | <element – name attribute – name = “attribute – value” ⁄> |
| C. | <element – name attribute – name = ‘attribute – value’> |
| D. | <element – name attribute – name = “attribute – value”⁄> |
| Answer» C. <element – name attribute – name = ‘attribute – value’> | |
| 147. |
Which of the following declaration must be used for an external DTD |
| A. | <?xml version = “1.0”standalone = “no”?> |
| B. | <!DOCTYPE standalone = “no”> |
| C. | <?xml version = “1.0” standalone = “yes”?> |
| D. | <!DOCTYPE standalone = “yes”!> |
| Answer» B. <!DOCTYPE standalone = “no”> | |
| 148. |
To locate a remote object with the name obj at port 1080 on host it.just.ac.in, we use |
| A. | Remote remote Ref = Name.lookup(“rmi : ⁄⁄ it.jusl.ac.in : 1080⁄obj”); |
| B. | Remote remote Ref = Name.lookup(”⁄⁄ it.jusl.ac.in : 1080⁄obj”); |
| C. | Remote remote Ref = Name.lookup(“http:⁄⁄ it.jusl.ac.in : 1080⁄obj”); |
| D. | Remote remote Ref = Naming.lookup(“rmi : ⁄⁄ it.jusl.ac.in : 1080⁄obj”); |
| Answer» E. | |
| 149. |
Which of the following styles is the most flexible styling? |
| A. | Multiple style |
| B. | Embedded style |
| C. | In-line style |
| D. | External style |
| Answer» E. | |
| 150. |
HTML describes |
| A. | Structure |
| B. | Appearance |
| C. | Automatically |
| D. | none of these |
| Answer» E. | |