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.
| 801. |
Which of the following functions is used to create a regular expressions? |
| A. | RegExp() |
| B. | Expression() |
| C. | Regular() |
| D. | RegularExpression() |
| Answer» B. Expression() | |
| 802. |
Which of the following flags is invalid? |
| A. | i |
| B. | s |
| C. | g |
| D. | m |
| Answer» C. g | |
| 803. |
Which one of the following best describes attributes? |
| A. | Provide information |
| B. | Provide more data |
| C. | Provide extra information about data |
| D. | None of these |
| Answer» D. None of these | |
| 804. |
What is the full form of DOM? |
| A. | Distributed Object Model |
| B. | Document Object Model |
| C. | Dense Object Model |
| D. | Dynamic Object Model |
| Answer» C. Dense Object Model | |
| 805. |
How many parts are there in the W3C DOM specification? |
| A. | 2 |
| B. | 3 |
| C. | 4 |
| D. | 5 |
| Answer» C. 4 | |
| 806. |
How do you convert the first letter of each word in text to a capital letter? |
| A. | text – transform : uppercase |
| B. | text-transform: capitalize |
| C. | text – translate: uppercase |
| D. | you cannot do that with CSS |
| Answer» C. text – translate: uppercase | |
| 807. |
A declaration is terminated by a |
| A. | } – end curly bracket |
| B. | . – Period |
| C. | ; - semi colon |
| D. | ! – Exclamation sign |
| Answer» D. ! – Exclamation sign | |
| 808. |
Which of the following statements is/are TRUE regarding JAVA?(a) Constants that cannot be changed are declared using the ‘static’ keyword.(b) A class can only inherit one class but can implement multiple interfaces. |
| A. | Only (a) is TRUE. |
| B. | Only (b) is TRUE. |
| C. | Both (a) and (b) are TRUE. |
| D. | Neither (a) nor (b) is TRUE. |
| Answer» C. Both (a) and (b) are TRUE. | |
| 809. |
Document type declaration & document type definition are |
| A. | Different terms |
| B. | Same |
| C. | Uncertain |
| D. | Can’t say |
| Answer» B. Same | |
| 810. |
Which of the following syntax is used to reference an external DTD? |
| A. | <!DOCTYPE root – element SYSTEM “filename”> |
| B. | <DOCTYPE root – element SYSTEM “filename”> |
| C. | <!DOCTYPE root – element SYSTEM “filename”> |
| D. | <!DOCTYPE SYSTEM “filename”> |
| Answer» B. <DOCTYPE root – element SYSTEM “filename”> | |
| 811. |
Which of the following do java script lines end with? |
| A. | , |
| B. | ; |
| C. | : |
| D. | . |
| Answer» C. : | |
| 812. |
Which of the following is true regarding x path? |
| A. | It is a Microsoft standard |
| B. | It is not a W3C standard |
| C. | It does not belong to any standard |
| D. | It is a W3C standard |
| Answer» E. | |
| 813. |
What is the full form of CSS? |
| A. | Casacde style streams |
| B. | Color Sensitive Style |
| C. | Colorful Style Systems |
| D. | Cascading Style Sheets |
| Answer» E. | |
| 814. |
Well-formed XML |
| A. | Meets certain grammatical rules out lined in the xmL 1.0 specification |
| B. | Doesn’t contain DTD’s |
| C. | Is full of formula’s |
| D. | None of these |
| Answer» C. Is full of formula’s | |
| 815. |
What does the + + operator do? |
| A. | Adds two numbers together |
| B. | Concatenates two text strings together |
| C. | Adds 1 to a number |
| D. | Adds 2 to a number |
| Answer» D. Adds 2 to a number | |
| 816. |
Attributes are by default |
| A. | Optional |
| B. | required |
| C. | default |
| D. | fixed |
| Answer» B. required | |
| 817. |
Which of the following X path expressions selects first four p elements in the document? |
| A. | (//p) [index() L = 4] |
| B. | (//p) [order() L = 4] |
| C. | (//p) [position() & It ; = 4] |
| D. | (//p) [last() & It ; = 4] |
| Answer» D. (//p) [last() & It ; = 4] | |
| 818. |
The element contains |
| A. | a sequence of <when> element followed by an optional <otherwise> element |
| B. | one <when> element followed by a required <otherwise> element |
| C. | one <when> element followed by an optional <otherwise> element |
| D. | a sequence of <when> element followed by a required <otherwise> element |
| Answer» B. one <when> element followed by a required <otherwise> element | |
| 819. |
Which of the following constructs is used for conditional processing? |
| A. | if else |
| B. | check |
| C. | test |
| D. | if |
| Answer» E. | |
| 820. |
Which one of the following is not a Client-Server application? |
| A. | Internet chat |
| B. | Web browser |
| C. | |
| D. | Ping |
| Answer» E. | |
| 821. |
Which of the following methods on an element node is used to check whether it has any child nodes? |
| A. | childNodes() |
| B. | hasChildNodes() |
| C. | checkChildNodes() |
| D. | none of the above |
| Answer» C. checkChildNodes() | |
| 822. |
Which of the following is not a valid HTML tag declaration? |
| A. | <frameset columns = “30%, 70%”> |
| B. | <frameset rows = “20%, 30%”> |
| C. | <frameset columns = “10%, * ”> |
| D. | <frameset rows = “40%, * ”> |
| Answer» B. <frameset rows = “20%, 30%”> | |
| 823. |
Xpath is a language used to navigate through |
| A. | files |
| B. | directories |
| C. | elements and attributes of an XML document |
| D. | different pages |
| Answer» D. different pages | |
| 824. |
The term “Container” in html is associated with |
| A. | The browser window |
| B. | The data base |
| C. | Frames |
| D. | None of these |
| Answer» B. The data base | |
| 825. |
SaaS is a popular term in the field of: |
| A. | Data mining |
| B. | Bioinformatics |
| C. | Information Security |
| D. | Cloud Computing |
| Answer» E. | |
| 826. |
In CSS, a : link defines the style for which of the following? |
| A. | Visited links |
| B. | Virtual links |
| C. | Active links |
| D. | Normal unvisited links |
| Answer» E. | |
| 827. |
Which of the following matches best with XML schema? |
| A. | DTD |
| B. | XSLT |
| C. | XSL |
| D. | XML |
| Answer» B. XSLT | |
| 828. |
A simple element is an XML element that can contain |
| A. | Only images |
| B. | only text |
| C. | only elements |
| D. | Both text and other child elements |
| Answer» C. only elements | |
| 829. |
Which of the following DOCTYPE declarations is valid? |
| A. | <!DOCTYPE SYSTEM PUBLIC “sample.dtd”> |
| B. | <!DOCTYPE SYSTEM SYSTEM“ sample.dtd”> |
| C. | <DOCTYPE PUBLIC SYSTEM “sample.dtd”> |
| D. | <!DOCTYPE PUBLIC PUBLIC “sample.dtd”> |
| Answer» C. <DOCTYPE PUBLIC SYSTEM “sample.dtd”> | |
| 830. |
Which of the following is an invalid CSS selector? |
| A. | Title selectors |
| B. | Head selectors |
| C. | TAG selectors |
| D. | ID selectors |
| Answer» C. TAG selectors | |
| 831. |
Which of the following is a java script comment? |
| A. | ‘This is a comment’ |
| B. | <! - - This is a comment - -> |
| C. | // This is a comment |
| D. | “This is a comment” |
| Answer» D. “This is a comment” | |
| 832. |
Which of the following is not an attribute of the element? |
| A. | Action |
| B. | name |
| C. | id |
| D. | color |
| Answer» E. | |
| 833. |
Given the following declaration in the same DTD, which one is actually used? |
| A. | <!ENTITY make “Sun”> |
| B. | <!ENTITY make “Sun”> |
| C. | <!ENTITY make “Sun micro system”> |
| D. | None of the above this is an error |
| Answer» B. <!ENTITY make “Sun”> | |
| 834. |
DTD’s are |
| A. | Associate with the document element |
| B. | Not associated with document element |
| C. | are associated to scheme |
| D. | None of these |
| Answer» B. Not associated with document element | |
| 835. |
Which of the following is a correct XML declared? |
| A. | <xml version = “1.0”⁄> |
| B. | <?xml version = “1.0”⁄> |
| C. | <? xml version = “1.0”⁄?> |
| D. | <? xml version = 1.0 ?> |
| Answer» D. <? xml version = 1.0 ?> | |
| 836. |
Which of the following is a valid syntax to insert comments in a CSS file? |
| A. | / * this is a comment * / |
| B. | // this is a comment // |
| C. | // this is a comment |
| D. | .this is a comment |
| Answer» B. // this is a comment // | |
| 837. |
DTD’s |
| A. | Don’t follow inheritance principle |
| B. | Follow the inheritance principle |
| C. | Are, recommendation only |
| D. | none of these |
| Answer» B. Follow the inheritance principle | |
| 838. |
Link tag is used |
| A. | To inform the location of the based document location |
| B. | To inform the browser the banner |
| C. | To inform the banner |
| D. | All of these |
| Answer» B. To inform the browser the banner | |
| 839. |
How do you remove underline from hyper links? |
| A. | a { text – decoration : no underline ; } |
| B. | a { decoration : no underline; } |
| C. | a { underline : none;} |
| D. | a { text – decoration : none;} |
| Answer» E. | |
| 840. |
Which of the following statement(s) is/are TRUE regarding Java Servelets?(a) A Java Servelet is a server-side component that runs on the web server and extends the capabilities of a server.(b) A Servelet can use the user interface classes like AWT or Swing. |
| A. | Only (a) is TRUE. |
| B. | Only (b) is TRUE. |
| C. | Both (a) and (b) are TRUE. |
| D. | Neither (a) nor (b) is TRUE. |
| Answer» B. Only (b) is TRUE. | |
| 841. |
Which of the following describes a DTD element that contains both text and other child elements? |
| A. | Complex declaration |
| B. | Mixed content |
| C. | Empty elements |
| D. | Simple elements |
| Answer» C. Empty elements | |
| 842. |
Which of the following returns the first characters of the string str? |
| A. | str.charAt(0); |
| B. | str.substring(1); |
| C. | str.charAt(1); |
| D. | str.charAt(2); |
| Answer» B. str.substring(1); | |
| 843. |
How many document nodes does a DOM tree have? |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4 |
| Answer» B. 2 | |
| 844. |
Which of the following is not a function of string? |
| A. | test() |
| B. | search() |
| C. | replace() |
| D. | split() |
| Answer» B. search() | |
| 845. |
Which of the following is not a meta character? |
| A. | ( |
| B. | [ |
| C. | 1 |
| D. | # |
| Answer» E. | |
| 846. |
What does the URL need to access documents?I. Path nameII. Host nameIII. DNSIV. Retrieval methodV. Server port number |
| A. | I, II, III |
| B. | I, III, V |
| C. | I, II, IV |
| D. | III, IV, V |
| Answer» C. I, II, IV | |
| 847. |
Which of the following methods is used to create an Attr type node? |
| A. | CreateAttribute() |
| B. | CreateAttr() |
| C. | newAttribute() |
| D. | newAttr() |
| Answer» B. CreateAttr() | |
| 848. |
Which of the following is not a mouse event? |
| A. | mouse up |
| B. | mouse down |
| C. | mouse move |
| D. | mouse enter |
| Answer» E. | |
| 849. |
How do you call a function named “a Function”? |
| A. | a Function() |
| B. | call function a Function |
| C. | call a Function() |
| D. | execute a Function() |
| Answer» B. call function a Function | |
| 850. |
Which of the following is used to register a remote object 0 with the name “ obj ” at the port 1080 on the host it.jusl.ac.in? |
| A. | Naming.bind(“rmi : ⁄⁄ it.jusl.ac.in⁄obj”, 0); |
| B. | Name.rebind(“ rmi : ⁄⁄ it.jusl.ac.in : 1080⁄obj”, 0); |
| C. | Naming.rebind(“ rmi : ⁄⁄ it.jusl.ac.in : 1080⁄ obj” 0); |
| D. | Name.bind(“ rmi : ⁄⁄ it.just.ac.in : 1080⁄obj”, 0); |
| Answer» D. Name.bind(“ rmi : ⁄⁄ it.just.ac.in : 1080⁄obj”, 0); | |