Web-Technologies

Question 1

A graphical HTML browser resident at a network client machine Q accesses a static HTML webpage from a HTTP server S. The static HTML page has exactly one static embedded image which is also at S.  Assuming no caching, which one of the following is correct about the HTML webpage loading (including the embedded image)?

A
Q needs to send at least 2 HTTP requests to S, each necessarily in a separate TCP connection to server S
B
Q needs to send at least 2 HTTP requests to S, but a single TCP connection to server S is sufficient
C
A single HTTP request from Q to S is sufficient, and a single TCP connection between Q and S is necessary for this
D
A single HTTP request from Q to S is sufficient, and this is possible without any TCP connection between Q and S
       Web-Technologies       HTML       GATE 2014 [Set-2]
Question 1 Explanation: 
By default, HTTP is a persistent connection.
Whenever a browser opens a webpage, a separate HTML request must be sent for each image or component in HTML like css file or javascript. But all can be done in the same TCP connection.
Question 2
Choose the most appropriate HTML tag in the following to create a numbered lists.
A
< dl >
B
< ul >
C
< li >
D
< ol >
       Web-Technologies       HTML       ISRO-2017 May
Question 2 Explanation: 
→ The
    tag defines an ordered list. An ordered list can be numerical or alphabetical.
    → The
      tag defines an unordered (bulleted) list. Use the
        tag together with the
      • tag to create unordered lists.
Question 3
Which of the following is TRUE only for XML but NOT HTML?
A
It is derived from SGML
B
It describes content and layout
C
It allows user defined tags
D
It is restricted only to be used with web browsers
       Web-Technologies       HTML        ISRO-2016
Question 3 Explanation: 
→ User-defined tags are only allowed in XML but not in HTML. All the other options are correct for both XML and HTML.
→ SGML stands for Standard Generalized Markup Language and it was extended to HTML and XML.
→ Both XML and HTML are used to describe the content and layout of a webpage and are used with web browsers only.
Question 4

The definitions in an XML document are said to be when the tagging system and definitions in the DTD are all in compliance.

A
well-formed
B
reasonable
C
valid
D
logical
       Web-Technologies       XML       UGC-NET CS 2018 JUNE Paper-2
Question 4 Explanation: 
→ A XML document is said to be well- formed if it have correct syntax like tags are case sensitive, elements must have closing tags, elements must be properly nested etc.
→ But when when associate a well formed XML document with a DTD( in which we define the structure of a document) and if that XML document validates all the definitions defined in DTD then that XML document is called as “valid” XML document.
→ Always remember that a “valid” XML document is also a “well-formed” XML document but a “well-formed” XML document is not necessarily a “valid” XML document.
→ In question, it is mentioned that XML document is validating the definitions in the DTD. So, the answer is option (3).
Question 5

Consider the JavaScript Code :

var y = "12";
function f() 
{
      var y = "6";
      alert (this.y);
      function g() 
      {
           alert (y); 
      }
      g();
} 
f();

If M is the number of alert dialog boxes generated by this JavaScript code and D1, D2, ...., DM represents the content displayed in each of the M dialog boxes, then : 

A
M=3; D1 displays ”12”; D2 displays ”6”; D3 displays ”12”.
B
M=3; D1 displays ”6”; D2 displays ”12”; D3 displays ”6”.
C
M=2; D1 displays ”6”; D2 displays ”12”.
D
M=2; D1 displays ”12”; D2 displays ”6”.
       Web-Technologies       Java-Script       UGC-NET CS 2018 JUNE Paper-2
Question 5 Explanation: 
The JavaScript this keyword refers to the object it belongs to.
It has different values depending on where it is used:
• In a method, this refers to the owner object.
• Alone, this refers to the global object.
• In a function, this refers to the global object.
• In an event, this refers to the element that received the event.
• Methods like call(), and apply() can refer this to any object.
• There are two alert boxes in the javascript code. So two messages will be displayed.
• First message, alert(this.y) here this.y is global variable whose value is 12. So first message is “12”.
• Second message is alert(y) , here “y” local variable and value is 6 so second message displays value “6”
Question 6
Earlier name of java programming language was:
A
OAK
B
D
C
Netbean
D
Eclipse
       Web-Technologies       Java-Script       Nielit Scientist-B IT 4-12-2016
Question 6 Explanation: 
Oak is a discontinued programming language created by James Gosling in 1991, initially for Sun Micro systems' set-top box project. The language later evolved to become Java.
Question 7
Which of the following is a platform free language?
A
Java
B
C
C
Assembly
D
Fortran
       Web-Technologies       Java-Script       Nielit Scientist-B IT 4-12-2016
Question 7 Explanation: 
  • Sun released the Java HotSpot virtual machine and compiler as free software under the GNU General Public License on November 13, 2006, with a promise that the rest of the JDK (that includes the JRE) would be placed under the GPL by March 2007 ("except for a few components that Sun does not have the right to publish in distributable source form under the GPL").

  • Java code is platform independent in the sense that the same Java application or algorithms (typically compiled to Java bytecode and packaged in a .jar file) will run identically on Windows and Linux.
  • Question 8
    By which technology do we separate our business logic from the presentation logic?
    A
    Servlet
    B
    JSP
    C
    Both (A) & (B)
    D
    None of the above
           Web-Technologies       JSP       Nielit Scientist-B IT 4-12-2016
    Question 8 Explanation: 
    ● JSP stands for Java Server Pages.JSP is a server side technology to help developers to create dynamic pages with HTML like syntax.
    ● The jsp pages are easier to maintain than servlet because we can separate designing and development. It provides some additional features such as Expression Language, Custom Tag etc
    Question 9
    Match the problem domains in GROUP I with the solution technologies in GROUP II
    A
    P-1,Q-2,R-3,S-4
    B
    P-3,Q-4,R-2,S-1
    C
    P-3,Q-1,R-4,S-2
    D
    P-4,Q-3,R-2,S-1
           Web-Technologies       XML       Nielit Scientist-B CS 22-07-2017
    Question 9 Explanation: 
    Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.
    Interoperability is a characteristic of a product or system, whose interfaces are completely understood, to work with other products or systems, at present or in the future, in either implementation or access, without any restrictions.
    Service-oriented computing (SOC) is the computing paradigm that utilizes services as fundamental elements for developing applications/solutions.
    To build the service model, SOC relies on the service oriented architecture (SOA), which is a way of reorganizing software applications and infrastructure into a set of interacting services
    Question 10
    The correct syntax to write “Hi there” in Javascript is
    A
    jscript.write (“Hi There”);
    B
    document.write (“Hi There”);
    C
    print (“Hi There”);
    D
    print.jscript (“Hi There”);
           Web-Technologies       Java-Script       ISRO CS 2015
    Question 10 Explanation: 
    JavaScript can "display" data in different ways:
    Writing into an HTML element, using innerHTML.
    Writing into the HTML output using document.write().
    Writing into an alert box, using window.alert().
    Writing into the browser console, using console.log().
    Question 11
    HTML(Hypertext Markup language) has language elements which permit certain actions other than describing the structure of the web document. Which of the following actions is NOT supported by pure HTML(Without any server or client side scripting) pages?
    A
    Embed web objects from different sites into the same page
    B
    Refresh the page automatically after a specified interval
    C
    Automatically redirect to another page upon download
    D
    Display the client time as part of the page
           Web-Technologies       HTML       Nielit Scientist-B IT 22-07-2017
    Question 11 Explanation: 
    We can achieve first three options by using HTML(static web pages). But to display the client time alone HTML is not sufficient , We require Java Script.
    Question 12
    Consider the HTML table definition given below":

    The number of rows in each column and the number of columns in each row are:
    A
    (2,2,3) and (2,3,2)
    B
    (2,2,3) and (2,2,3)
    C
    (2,3,2) and (2,3,2)
    D
    (2,3,2) and (2,2,3)
           Web-Technologies       HTML       Nielit Scientist-B IT 22-07-2017
    Question 12 Explanation: 
    If you create HTML page with the above code,we will get table structure as below
    Question 13
    Which of the following statements is/are False?
    1. XML overcomes the limitations in HTML to support a structured way of organizing content
    2. XML specification is not case sensitive while HTML specification is case sensitive
    3. XML supports user defined tags while HTML uses pre-defined tags.
    4. XML tags need not be closed while HTML tags must be closed
    A
    2 only
    B
    1 only
    C
    2 and 4 only
    D
    3 and 4 only
           Web-Technologies       HTML       Nielit Scientist-B IT 22-07-2017
    Question 13 Explanation: 
    ● Both XML and HTML languages are case sensitive.
    ● Both XML and HTML consists of Tags. Every open tag should consists of close tag in both languages.
    Question 14
    To add a background color for all h1 elements, which of the following HTML syntax is used
    A
    h1 { background-color :#FFFFFF}
    B
    { background-color :#FFFFFF} . h1
    C
    h1 { background-color :#FFFFFF} . h1(all)
    D
    h1. all{bgcolor= #FFFFFF}
           Web-Technologies       HTML       ISRO CS 2015
    Question 14 Explanation: 
    → Select and style all

    elements AND all

    elements:
    Example:
    h1, p { background-color: yellow; }
    → To style several elements with the same style, separate each element name with a comma.

    Question 15
    To declare the version of XML, the correct syntax is
    A
    B
    <*xml version='1.0'/>
    C
    D
           Web-Technologies       HTML       ISRO CS 2015
    Question 15 Explanation: 
    1.XML stands for eXtensible Markup Language.
    2.XML was designed to store and transport data.
    3.XML was designed to be both human- and machine-readable.
    Syntax:
    Question 16

    Which of the following statements is/are FALSE?

      (i) XML element names are case sensitive
      (ii) In XML, empty element can be represented as
      (iii) XML element names can contain spaces
    A
    only (iii)
    B
    only (ii) and (iii)
    C
    only (i) and (iii)
    D
    only (ii)
           Web-Technologies       XML       JT(IT) 2018 PART-B Computer Science
    Question 16 Explanation: 
    An element can contain
    1. text
    2. attributes
    3. other elements or a mix of the above
    Note: XML element names cannot contain spaces.
    Question 17

    XML documents form a ___ structure.

    A
    Binary tree
    B
    Tree
    C
    Linear list
    D
    Graph
           Web-Technologies       XML       JT(IT) 2018 PART-B Computer Science
    Question 17 Explanation: 
    → The document entity serves as the root of the entity tree and a starting-point for an XML processor.
    → This specification does not specify how the document entity is to be located by an XML processor; unlike other entities, the document entity has no name and might well appear on a processor input stream without any identification at all.
    Question 18
    Which of the following provides a method to avoid element name conflicts in XML?
    A
    Namespaces
    B
    DTD
    C
    CSS
    D
    DOM
           Web-Technologies       Web-Technologies       JT(IT) 2018 PART-B Computer Science
    Question 18 Explanation: 
    Question 19
    The definitions in an XML document are said to be when the tagging system and definitions in the DTD are all in compliance.
    A
    well-formed
    B
    reasonable
    C
    valid
    D
    logical
           Web-Technologies       XML       UGC NET CS 2018 JUNE Paper-2
    Question 19 Explanation: 
    → A XML document is said to be well- formed if it have correct syntax like tags are case sensitive, elements must have closing tags, elements must be properly nested etc.
    → But when when associate a well formed XML document with a DTD( in which we define the structure of a document) and if that XML document validates all the definitions defined in DTD then that XML document is called as “valid” XML document.
    → Always remember that a “valid” XML document is also a “well-formed” XML document but a “well-formed” XML document is not necessarily a “valid” XML document
    → In question, it is mentioned that XML document is validating the definitions in the DTD. so the answer is option (3).
    Question 20
    ​ Web links are stored within the page itself and when you wish to 'jump' to the page that is linked, we select the hotspot or anchor. This technique is called
    A
    Hypertext
    B
    hypermedia
    C
    Both (A) and (B)
    D
    Anchoring
           Web-Technologies       HTML       Nielit Scientific Assistance IT 15-10-2017
    Question 20 Explanation: 
    Web links are stored within the page itself and when you wish to 'jump' to the page that is linked, we select the hotspot or anchor. This technique is called hypertext or hypermedia.
    Question 21

    Which of the following is the correct syntax to insert an image in HTML documents?

    A
    B
    C
    D
           Web-Technologies       HTML       JT(IT) 2018 PART-B Computer Science
    Question 21 Explanation: 
    → In HTML, images are defined with the tag.
    → The tag is empty, it contains attributes only, and does not have a closing tag.
    → The src attribute specifies the URL (web address) of the image:
    Question 22

    How many different headings tags are available in HTML?

    A
    6
    B
    8
    C
    3
    D
    5
           Web-Technologies       HTML       JT(IT) 2018 PART-B Computer Science
    Question 22 Explanation: 
    → HTML defines six levels of headings.
    → A heading element implies all the font changes, paragraph breaks before and after, and any white space necessary to render the heading.
    → The heading elements are H1, H2, H3, H4, H5, and H6 with H1 being the highest (or most important) level and H6 the least.
    Question 23
    Which of the following is true about time value assignment in VBscript?
    A
    The time value should be assigned without double quotes(“).
    B
    The time value should be enclosed within double quotes(“).
    C
    The time value should be enclosed within single quotes(‘);
    D
    The time value should be enclosed within hash symbols(#).
           Web-Technologies       VB-Script       KVS 22-12-2018 Part-B
    Question 23 Explanation: 
    →The numeric values should be declared without double quotes.
    →The String values should be enclosed within double quotes(")
    →Date and Time variables should be enclosed within hash symbol(#)
    Question 24
    Given below are several usages of the anchor tag in HTML.
    (a) <A href=”http://w3c.org/test.html” >
    (b) <A href=”/HTML/test.html”> Test </A >
    (c) <A href=”test.html”>Test < /A >
    (d) <A href=”test.html#top”>Test < /A >
    Which of the above are valid?

    A
    (a) and (b) only
    B
    (a),(b) and (c) only
    C
    (b),(c) and (d) only
    D
    (a),(b),(c) and(d)
           Web-Technologies       HTML       KVS 22-12-2018 Part-B
    Question 24 Explanation: 
    The “a” is known as an anchor and it acts as a mini URL. So if you had a page called test.html, I could actually link directly to your anchor like this:
    https://example.com/test.html#top and it would load your page and scroll to your anchor. All syntaxes are valid for creating hyperlinks.
    Question 25
    Which of the following method is used to refresh the webpage in javascript?
    A
    window.reload()
    B
    location.reload()
    C
    window.refresh()
    D
    page.refresh()
           Web-Technologies       Java-Script       KVS 22-12-2018 Part-B
    Question 25 Explanation: 
    → Reload the current document:
    → location.reload();
    → The reload() method is used to reload the current document.
    → The reload() method does the same as the reload button in your browser.
    → By default, the reload() method reloads the page from the cache
    Question 26
    Web links are stored within the page itself and when you wish to 'jump' to the page that is linked, we select the hotspot or anchor. This technique is called
    A
    Hypertext
    B
    hypermedia
    C
    Both (A) and (B)
    D
    Anchoring
           Web-Technologies       HTML       Nielit Scientific Assistance CS 15-10-2017
    Question 26 Explanation: 
    Web links are stored within the page itself and when you wish to 'jump' to the page that is linked, we select the hotspot or anchor. This technique is called hypertext (or) Hypermedia
    Question 27
    If a user is not able to see the image on the web page, the text that is displayed in place of the image, is specified by which of the following attributes in HTML?
    A
    ALTERNATE
    B
    ALTLINK
    C
    ALT_TEXT
    D
    ALT
           Web-Technologies       HTML       KVS DEC-2013
    Question 27 Explanation: 
    ● “ALT” attribute is used along with tag to specify the text in place of image, if image not able to see.
    ● The syntax is
    < img src=”file.jpg” alt=”Image can’t be loaded” >
    Question 28
    Insertion linking with respect to HTML means
    A
    Linking one part of the document on one computer, to another part of the document on some other computer with the same file name
    B
    Linking one part of the document on one computer, to another part of the document on some other computer in the same LAN
    C
    Linking one part of the document to another part of the same document
    D
    Linking one part of the document to another document on the same computer
           Web-Technologies       HTML       KVS DEC-2013
    Question 28 Explanation: 
    Linking nothing but creating hyperlinks from HTML page or HTML document to another HTML Page or HTML document.
    Question 29
    The function of the XML parser is to
    A
    Convert XML content into HTML content
    B
    Convert XML content into DHTML content
    C
    Convert XML content into XML DOM content
    D
    Convert XML content into binary code
           Web-Technologies       XML       KVS DEC-2013
    Question 29 Explanation: 
    An XML parser converts an XML document into an XML DOM object - which can then be manipulated with a JavaScript
    Question 30
    Prolog in XML contains an XML declaration like
    A
    < ?xml version=”1.0” >
    B
    < !-xml version=”1.0” >
    C
    < /xml version=”1.0” >
    D
    < \xml version=”1.0” >
           Web-Technologies       XML       KVS DEC-2013
    Question 30 Explanation: 
    The ​ Following syntax shows XML declaration −
    < ?xml
    version = "version_number"
    encoding = "encoding_declaration"
    standalone = "standalone_status"
    ? >
    Question 31
    Which of the following is the appropriate format for graphics that can be embedded within an internet document?
    A
    HTML
    B
    BMP
    C
    TIFF
    D
    GIF
           Web-Technologies       HTML       KVS DEC-2017
    Question 31 Explanation: 
    Most web browsers (excluding text-only ones like Linux, Mosaic) can display only a handful of these formats inline. The format of about 90% of these files is binary.
    1. ​ Graphical interchange format - GIF
    For line art (such as one- or two-color logos), simple drawings, animations, and basically any image that has no gradients or blends. GIF is also the best format when you want to display an image with a transparent background.
    2. J​ oint Photographic Experts Group - JPEG
    JPEG is the best format for colorful, complex images (such as photographs); images containing gradients or color blends; and any other images with millions of colors.
    3. ​ Portable Network Graphics - PNG
    PNG generally produces better-looking images with smaller file sizes than GIF for the same kinds of limited-color images. Really old browsers, such as IE 3, don’t support the PNG format, but most Web designers now choose this format over GIF because so few people use such old browser. Browsers as recent as IE6 don’t display transparent PNG files properly, which is unfortunate because PNG files tend to handle transparency better.
    4. ​ X-Bitmap/X-Pixelmap
    X-Bitmaps are a common format on UNIX platforms, and are often found in older image and icon libraries. Here, a bit is used to represent each pixel of the graphics. Consequently, only black and white images are supported. Transparency is possible as in GIF since the white portion is treated as the color of the underlying background (making way for attractive designs). X-Pixel map is the colour equivalent of X-Bitmap. Here, 8 bits represent each pixel(256 colours). Obviously, both methods are very inefficient in terms of storage space required. It is quite uncommon outside the UNIX environment.
    Question 32
    Which of the following is true to declare variable of ASP?
    A
    Var
    B
    Dim
    C
    S
    D
    Set
           Web-Technologies       ASP       KVS DEC-2017
    Question 32 Explanation: 
    We can declare VBScript variables with the Dim, Public or the Private statement.
    Syntax: ​ Dim variable_name
    Example:​ Dim anand
    Question 33
    Which of the following is the default scripting language in Active server pages(ASP)?
    A
    JavaScript
    B
    PHP
    C
    HTML
    D
    VBScript
           Web-Technologies       VB-Script       KVS DEC-2017
    Question 33 Explanation: 
    The default scripting language used for writing ASP is VBScript, although you can use other scripting languages like JScript (Microsoft's version of JavaScript).
    Question 34
    Which of the following methods in JavaScript will display a window having a dialog box with a specific message, along with an OK and a CANCEL button as options?
    A
    prompt()
    B
    alert()
    C
    confirm()
    D
    request()
           Web-Technologies       Java-Script       KVS DEC-2017
    Question 34 Explanation: 
    confirm(): Displays a dialog box with a message and an OK and a Cancel button
    alert(): Displays an alert box with a message and an OK button
    prompt(): Displays a dialog box that prompts the visitor for input
    Question 35
    To declare the version of XML, the correct syntax is
    A
    < / xml version='1.0'/ >
    B
    < ? xml version=”1.0”/ >
    C
    < *xml version='1.0'/ >
    D
    < ?xml version=*1.0*/ >
           Web-Technologies       XML       KVS DEC-2017
    Question 35 Explanation: 
    This line is called the XML prolog:

    → The XML prolog is optional. If it exists, it must come first in the document.
    → XML documents can contain international characters, like Norwegian øæå or French êèé.
    → To avoid errors, you should specify the encoding used, or save your XML files as UTF-8.
    → UTF-8 is the default character encoding for XML documents.
    Question 36
    What is the full form of DTD that is used to describe content is an XHTML document?
    A
    Document to Definition
    B
    Document Type Definition
    C
    Document Towards Definition
    D
    Document Text Definition
           Web-Technologies       HTML       KVS DEC-2017
    Question 36 Explanation: 
    → A DTD defines the structure and the legal elements and attributes of an XML document.
    → With a DTD, independent groups of people can agree on a standard DTD for interchanging data.
    → An application can use a DTD to verify that XML data is valid.
    Question 37
    What is the correct HTML tag for the largest heading?
    A

    B
    =large
    C
    =large
    D
           Web-Technologies       HTML       KVS DEC-2017
    Question 37 Explanation: 
    The HTML < h1 > to < h6 > tag is used to define headings in an HTML document.
    → < h1 > defines largest heading
    → < h6 > defines smallest heading.
    Question 38
    When an ASP.NET file is placed on an IIS server and viewed through a browser, the resulting HTML page contains?
    A
    a mix of ASP.NET and HTML code
    B
    all ASP.NET code
    C
    all HTML code
    D
    as much ASP.NET code as is in the ASP.NET file.
           Web-Technologies       HTML       KVS DEC-2017
    Question 38 Explanation: 
    When an ASP.NET file is placed on an IIS server and viewed through a browser, the resulting HTML page contains all HTML code.
    Question 39

    Which of the following is not an entity reference in XML?

    A
    &qt
    B
    &
    C
    <
    D
    >
           Web-Technologies       XML       JT(IT) 2016 PART-B Computer Science
    Question 39 Explanation: 
    Predefined Character Entities:
    They are introduced to avoid the ambiguity while using some symbols.
    For example, an ambiguity is observed when less than ( < ) or greater than ( > ) symbol is used with the angle tag (<>).
    Character entities are basically used to delimit tags in XML.
    Following is a list of predefined character entities from XML specification. These can be used to express characters without ambiguity.
    Ampersand − &
    Single quote − '
    Greater than − >
    Less than − <
    Double quote − "
    Question 40

    ____ element is used to create destination anchors in HTML?

    A
    B
    C
    D
           Web-Technologies       HTML       JT(IT) 2016 PART-B Computer Science
    Question 40 Explanation: 
    • HTML offers many of the conventional publishing idioms for rich text and structured documents, but what separates it from most other markup languages is its features for hypertext and interactive documents.
    • This section introduces the link (or hyperlink, or Web link), the basic hypertext construct. A link is a connection from one Web resource to another. Although a simple concept, the link has been one of the primary forces driving the success of the Web.
    • A link has two ends -- called anchors -- and a direction. The link starts at the "source" anchor and points to the "destination" anchor, which may be any Web resource (e.g., an image, a video clip, a sound bite, a program, an HTML document, an element within an HTML document, etc.)
    Question 41
    Consider the following statements respect to JavaScript
    (i) A variable is created using the keyword
    (ii) JavaScript is untyped language
    Which of the above are true?
    A
    Neither (i) nor (ii)
    B
    Only (i)
    C
    Only(ii)
    D
    Both (i) and (ii)
           Web-Technologies       Java-Script       KVS DEC-2017
    Question 41 Explanation: 
    (i)True: Because we are using “var” keyword.
    (ii) False: Untyped means the operation of dividing integer by string would result in treating the first four bytes of strings as integer. This is because untyped take place directly on bits, there are no types to observe. Javascript is typed language.
    Question 42
    A multimedia project is said to be ___ and user interactive when users are given navigational control
    A
    Secure
    B
    hypertext
    C
    linear
    D
    non linear
           Web-Technologies       HTML       KVS DEC-2017
    Question 42 Explanation: 
    A multimedia project is said to be hypertext and user interactive when users are given navigational control
    Question 43
    The comment in XML document is given by
    A
    < /---- >
    B
    < ?---- >
    C
    < !---- >
    D
    < !----! >
           Web-Technologies       XML       KVS DEC-2017
    Question 43 Explanation: 
    A comment is a character, a line or a paragraph that is not considered as part of the XML code that needs to be processed. A comment allows you to insert notes or personal observations inside an XML file.
    Syntax:
    Question 44
    In ASP, which of the following methods is used to end the current user session and destroy the current session object immediately?
    A
    Session.Exit
    B
    Session.End
    C
    Session.Abandon
    D
    Session.terminate
           Web-Technologies       ASP       KVS 30-12-2018 Part B
    Question 44 Explanation: 
    →Clear - Removes all keys and values from the session-state collection.
    →Abandon - removes all the objects stored in a Session. If you do not call the Abandon method explicitly, the server removes these objects and destroys the session when the session times out.It also raises events like Session_End.
    Question 45
    <DT> tag is designed to fit a single line of our web page but <DD> tag will accept
    A
    A character
    B
    A word
    C
    A line of text
    D
    Full paragraph
           Web-Technologies       HTML       KVS 30-12-2018 Part B
    Question 45 Explanation: 
    →The
    tag is used to describe a term/name in a description list.
    →The
    tag is used in conjunction with
    (defines a description list) and
    (defines terms/names).
    →Inside a
    tag you can put paragraphs, line breaks, images, links, lists, etc.
    Question 46
    Which of the following are the types of Cascading Style Sheets(CSS)?
    A
    Local,Internal and External
    B
    Inline,Inhouse and External
    C
    Inbuilt,Internal and External
    D
    Inline,Internal and External
           Web-Technologies       CSS       KVS 30-12-2018 Part B
    Question 46 Explanation: 
    Three types of Cascading Style Sheets(CSS) are Inline,Internal and External
    Question 47
    Which of the following is true to open a link in a new browser window?
    A
    < a href=”url” target=”_blank” >
    B
    < a href=”url” target=”_new” >
    C
    < a href=”url” target=”_top” >
    D
    < a href=”url” target=”_self” >
           Web-Technologies       HTML       KVS 30-12-2018 Part B
    Question 47 Explanation: 
    The < a > tag defines a hyperlink, which is used to link from one page to another. Default target
    If no target is specified, the link will open in the current context, unless the user or browser specifies otherwise.
    a target=”_blank” Open in New Browser Tab (or Window)
    The target attribute specifies where the linked document will open when the link is clicked. The default is the current window. If target="_blank", the linked document will open in a new tab or (on older browsers) a new window.
    Question 48
    Which of the following functions is used to trim the leading as well as trailing spaces of a string in VBScript?
    A
    Ltrim
    B
    Trim
    C
    Space
    D
    Replace
           Web-Technologies       VB-Script       KVS 30-12-2018 Part B
    Question 48 Explanation: 
    The Trim function removes spaces on both sides of a string.
    Trim(string)
    Question 49
    Which of the following is the correct Javascript syntax to display “Hello World”?
    A
    println(“Hello World”)
    B
    system.out.print(“Hello world”)
    C
    document.write(“Hello world”)
    D
    response.write(“Hello World”)
           Web-Technologies       Java-Script       KVS 30-12-2018 Part B
    Question 49 Explanation: 
    →The write() method writes HTML expressions or JavaScript code to a document.
    →Write HTML elements with text directly to the HTML document:
    →document.write(" < h1 > Hello World!< /h1 > < p > Have a nice day! < /p > ");
    Question 50
    Discovery of cross sales opportunities is called as _____.
    A
    Association
    B
    Visualization
    C
    Correlation
    D
    Segmentation
           Web-technologies       UGC NET CS 2016 Aug- paper-2
    Question 50 Explanation: 
    → Association rule learning is a rule-based machine learning method for discovering interesting relations between variables in large databases. It is intended to identify strong rules discovered in databases using some measures of interestingness.
    → This rule-based approach also generates new rules as it analyzes more data. The ultimate goal, assuming a large enough dataset, is to help a machine mimic the human brain’s feature extraction and abstract association capabilities from new uncategorized data.
    Question 51
    Which of the following HTML5 codes will affect the horizontal as well as vertical alignment of the table content?
    A
    < t d halign = " middle" valign = " center" > BASH < / td >
    B
    < t d style = " text − a lign : center; vertical − a lign : middle; " > BASH < / td >
    C
    < t d align = "middle" valign = " center" > B ASH < / td >
    D
    < t d style = " horizontal − a lign : c enter; vertical − a lign : m iddle; " > B ASH < / td >
           Web-Technologies       HTML       UGC NET CS 2018-DEC Paper-2
    Question 51 Explanation: 
    ● The text-align property sets the horizontal alignment (like left, right, or center) of the content in or .
    ● The vertical-align property sets the vertical alignment (like top, bottom, or middle) of the content in or .
    Question 52
    The ______ is a set of standards that defines how a dynamic web document should be written, how input data should be supplied to the program, and how the output result should be used.
    A
    Hyper Text Markup Language
    B
    File Transfer Protocol
    C
    Hypertext Transfer Protocol
    D
    Common Gateway Interface
           Web-Technologies       Serverside-script       UGC NET CS 2013 Sep-paper-2
    Question 52 Explanation: 
    Common Gateway Interface(CGI) is a set of standards that defines how a dynamic web document should be written, how input data should be supplied to the program, and how the output result should be used.
    → CGI is often used to process inputs information from the user and produce the appropriate output.
    Question 53
    The _____ language was originally designed as the Transformation Language for Style Sheet facility.
    A
    XSTL
    B
    XML
    C
    XQuery
    D
    XPath
           Web-Technologies       XML       UGC NET CS 2013 Sep-paper-2
    Question 53 Explanation: 
    XSLT (eXtensible Stylesheet Language Transformations) is the recommended style sheet language for XML.
    XSLT is far more sophisticated than CSS. With XSLT you can add/remove elements and attributes to or from the output file. You can also rearrange and sort elements, perform tests and make decisions about which elements to hide and display, and a lot more.
    XSLT uses XPath to find information in an XML document.

    Question 54
    Consider the JavaScript Code :
    var y= ’’12”;
    function f( )
    {
    var y=’’6”;
    alert (this.y);
    function g( )
    {
    alert (y);
    }
    g( );
    }
    f( );
    If M is the number of alert dialog boxes generated by this JavaScript code and D1, D2, ...., DM represents the content displayed in each of the M dialog boxes, then :
    A
    M=3; D1 displays ”12”; D2 displays ”6”; D3 displays ”12”.
    B
    M=3; D1 displays ”6”; D2 displays ”12”; D3 displays ”6”.
    C
    M=2; D1 displays ”6”; D2 displays ”12”.
    D
    M=2; D1 displays ”12”; D2 displays ”6”.
           Web-Technologies       Java-Script       UGC NET CS 2018 JUNE Paper-2
    Question 54 Explanation: 
    The JavaScript this keyword refers to the object it belongs to.
    It has different values depending on where it is used:
    In a method, this refers to the owner object.
    Alone, this refers to the global object.
    In a function, this refers to the global object.
    In an event, this refers to the element that received the event.
    Methods like call(), and apply() can refer this to any object.
    There are two alert boxes in the javascript code.So two messages will be displayed.
    First message, alert(this.y) here this.y is global variable whose value is 12 So first message is “12”.
    Second message is alert(y) , here “y” local variable and value is 6 so second message displays value “6”
    Question 55
    Active X controls are Pentium binary programs that can be embedded in ________
    A
    Word pages
    B
    URL pages
    C
    Script pages
    D
    Web pages
           Web-Technologies       Framework       UGC NET CS 2013 Dec-paper-2
    Question 55 Explanation: 
    → ActiveX is a software framework created by Microsoft that adapts its earlier Component Object Model (COM) and Object Linking and Embedding (OLE) technologies for content downloaded from a network, particularly from the World Wide Web.
    → Active X controls are Pentium binary programs that can be embedded in web pages.
    Question 56
    The word ‘format’ in formal languages means
    A
    the symbols used have well-defined
    B
    they are unnecessary, in reality
    C
    only the form of the string of symbols is significant
    D
    none of the above
           Web-Technologies       HTML       NIELIT Junior Teachnical Assistant_2016_march
    Question 57
    An XML document that adheres to syntax rules specified by XML 1.0 specification in that it must satisfy both physical and logical structured, is called:
    A
    Well - formed
    B
    Reasonable
    C
    Valid
    D
    Sophisticated
           Web-Technologies       XML       UGC NET CS 2017 Nov- paper-3
    Question 57 Explanation: 
    A well-formed document in XML is a document that "adheres to the syntax rules specified by the XML 1.0 specification in that it must satisfy both physical and logical structures".
    Well formed documents requirements:
    1. Content be defined.
    2. Content be delimited with a beginning and end tag
    3. Content be properly nested (parents within roots, children within parents)
    Question 58
    Which of the following statement(s) is/are TRUE regarding Java Servlets ?
    (a) A Java Servlet is a server-side component that runs on the web server and extends the capabilities of a server.
    (b) A Servlet 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.
           Web-Technologies       Java-Script       UGC NET CS 2017 Nov- paper-3
    Question 58 Explanation: 
    TRUE: A Java Servlet is a server-side component that runs on the web server and extends the capabilities of a server.
    FALSE: A Servlet can not use the user interface classes like AWT or Swing.
    → Servlets can respond to any types of requests, they most commonly implement web containers for hosting web applications on web servers and thus qualify as a server-side servlet web API.
    Question 59
    Consider the following HTML table definition:
    <table border = 1>
       <tr>
                <td> colspan = 2> Text A </td>
      </tr>
       <tr>
                  <td> Text B </td>
    <td> Text C </td*gt;
       </tr>
     <tr>
                   <td rowspan = 2> Text D </td>
     </tr>
     <tr>
              <td> Text E </td>
     <tr>
              <td> Text F </td>
     </tr>
    </table>
    The above HTML code would render on screen as:
    A

    B

    C

    D

           Web-Technologies       HTML       UGC NET CS 2017 Nov- paper-3
    Question 59 Explanation: 

    Question 60
    Which of the following statements is/are TRUE ?
    (a) In HTML, character entities are used to incorporate external content into a web page, such as images.
    (b) Once a web server returns a cookie to a browser, the cookie will be included in all future requests from the browser to the same server.
    A
    Only (a) is TRUE.
    B
    Only (b) is TRUE.
    C
    Both (a) and (b) are TRUE.
    D
    Neither (a) nor (b) is TRUE.
           Web-Technologies       HTML       UGC NET CS 2017 Nov- paper-3
    Question 60 Explanation: 
    FALSE: Entities are used to display characters that have special HTML meaning, such as “<” and “>”.
    FALSE: Once a web server returns a cookie to a browser, the cookie will be included in all future requests from the browser to the same server.
    Question 61
    Which of the following HTML code will affect the vertical alignment of the table content?
    A
    B
    C
    D
           Web-Technologies       HTML       UGC NET CS 2017 Jan- paper-3
    Question 61 Explanation: 

    Question 62
    What can you say about the following statements ?
    I. XML tags are case-insensitive.
    II. In JavaScript, identifier names are case-sensitive.
    III.Cascading Style Sheets (CSS) cannot be used with XML.
    IV. All well-formed XML documents must contain a document type definition.
    A
    only I and II are false.
    B
    only III and IV are false.
    C
    only I and III are false.
    D
    All are incorrect.
           Web-Technologies       XML       UGC NET CS 2017 Jan- paper-3
    Question 62 Explanation: 
    FALSE: XML tags are case-sensitive.
    FALSE: In JavaScript, identifier names are not case-sensitive.
    FALSE: Cascading Style Sheets (CSS) can be used with XML.
    FALSE: Somel well-formed XML documents must contain a document type definition.
    Question 63
    Which of the following statements is not correct?
    A
    HTML is not screen precise formatting language.
    B
    HTML does not specify a logic.
    C
    DHTML is used for developing highly interactive web pages.
    D
    HTML is a programming language.
           Web-Technologies       HTML       UGC NET CS 2016 July- paper-3
    Question 63 Explanation: 
    HTML is not a programming language. It is a markup language. The abbreviation of HTML is hypertext markup language.
    Question 64
    Which of the following tag in HTML is used to surround information, such as signature of the person who created the page ?
    A
    < body > < / body >
    B
    < address > < / address >
    C
    < strong > < / strong >
    D
    < em > < / em >
           Web-Technologies       HTML       UGC NET CS 2016 Aug- paper-3
    Question 64 Explanation: 
    This tag is for address information, signatures, etc, normally at the top or bottom of a document. typically, it is italic and/or right justified or indented.
    The format is:
    < ADDRESS > text ... < / ADDRESS >
    Question 65
    Javascript and Java has similar name because __________ is/are true. 

    (a)Javascripts syntax is loosely based on Java’s syntax 

    (b)Javascript is stripped down version of Java 

    (c)Java and Javascript are originated from the Island of Java

    A
    (a) only
    B
    (a), (b) and (c)
    C
    (a) and (b)
    D
    (a) and (c)
           Web-Technologies       Java-Script       UGC NET CS 2015 Dec - paper-3
    Question 65 Explanation: 
    → Java programming language whereas Javascript is script language.
    → Java can used to create the application independently.
    → JavaScript is used along with HTML mainly meant for validation.
    Question 66
    Which of the following statements are true with reference to the way of describing XML data?
    (a)XML uses DTD to describe the data
    (b)XML uses XSL to describe the data
    (c)XML uses a description node to describe the data
    A
    (a) only
    B
    (b) only
    C
    (a) and (b)
    D
    (a) and (c)
           Web-Technologies       XML       UGC NET CS 2015 Dec - paper-3
    Question 66 Explanation: 
    Option(A): XML uses DTD to define the structure of an XML document. It defines the structure with a list of legal elements. Hence statement (a) is correct.
    Option(B): XSLT (eXtensible Stylesheet Language Transformations) is the recommended style sheet language for XML.XSLT is far more sophisticated than CSS. With XSLT you can add/remove elements and attributes to or from the output file. You can also rearrange and sort elements, perform tests and make decisions about which elements to hide and display, and a lot more. XSLT uses XPath to find information in an XML document.
    Hence here XML is not using XSL to describe the data. So statement (b) is wrong.
    Option(C): Everything in an XML document is a node:
    The entire document is a document node
    Every XML element is an element node
    The text in the XML elements are text nodes
    Every attribute is an attribute node
    Comments are comment nodes
    Hence statement (c) is correct.
    Question 67
    __________ tag is an extension to HTML that can enclose any number of Javascript statements.
    A
    < SCRIPT >
    B
    < BODY >
    C
    < HEAD >
    D
    < TITLE >
           Web-Technologies       HTML       UGC NET CS 2015 Dec - paper-3
    Question 67 Explanation: 

    Question 68
    Which of the following statements is/are true?
    P: In a scripting language like javaScript, types are typically associated with values, not variables.
    Q: It is not possible to show images on a web page without the tag of HTML
    Select the correct answer from the given below:
    A
    P only
    B
    Q only
    C
    Both P and Q
    D
    neither P nor Q
           Web-Technologies       Java-Script       UGC NET June-2019 CS Paper-2
    Question 68 Explanation: 
    P : True. Variables are typically not declared in scripting language is, so there is no opportunity to assign them a type.
    Question 69
    Which of the following terms best describes Git?
    A
    Issue Tracking System
    B
    Integrated Development Environment
    C
    Distributed Version Control System
    D
    Web-Based Repository Hosting Service
           Web-Technologies       Git       UGC NET June-2019 CS Paper-2
    Question 69 Explanation: 
    Git is a distributed version control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Its goals include speed, data integrity, and support for distributed, non-linear workflows.
    Question 70
    Which of the following statements is/are true
    P: An XML document with correct as specified by W3C is called “well formed”.
    Q: An XML documented validated against a DTD is both “Well-Formed” and “valid”.
    R: is syntactically correct declaration for the version of an XML document.
    Select the correct answer from the options given below:
    A
    P and Q only
    B
    P and R only
    C
    Q and R only
    D
    All of P,Q and R
           Web-Technologies       XML       UGC NET June-2019 CS Paper-2
    Question 70 Explanation: 
    → A XML document is said to be well- formed if it has correct syntax like tags are case sensitive, elements must have closing tags, elements must be properly nested etc.
    → But when we associate a well formed XML document with a DTD( in which we define the structure of a document) and if that XML document validates all the definitions defined in DTD then that XML document is called as “valid” XML document.
    → Always remember that a “valid” XML document is also a “well-formed” XML document but a “well-formed” XML document is not necessarily a “valid” XML document
    → < ? xml version="1.0" encoding="UTF-8" ? > is syntactically correct declaration for the version of an XML document.
    Question 71
    The component in MVC is responsible for
    A
    User interface
    B
    Security of the system
    C
    Business logic and domain objects
    D
    Translating between user interface actions/events and operation on the domain objects
           Web-Technologies       MVC       UGC NET June-2019 CS Paper-2
    Question 71 Explanation: 
    "MVC" stands for "Model-View-Controller" and refers to three different realms of responsibility in the design of a graphical user interface.
    When the MVC pattern is applied to a component, the model consists of the data that represents the current state of the component.
    The view is simply the visual presentation of the component on the screen.
    And the controller is the aspect of the component that carries out actions in response to events generated by the user (or by other sources such as timers).
    The idea is to assign responsibility for the model, the view, and the controller to different objects.
    Question 72
    I​ n XML we can specify the frequency of an element by using the symbols:
    A
    + * !
    B
    # * !
    C
    +* ?
    D
    - * ?
           Web-Technologies       XML       UGC NET CS 2015 June Paper-3
    Question 73
    In XML, DOCTYPE declaration specifies to include a reference to __________ file.
    A
    Document type Definition
    B
    Document type declaration
    C
    Document transfer definition
    D
    Document type language
           Web-Technologies       XML       UGC NET CS 2015 June Paper-3
    Question 74
    Which tag is used to enclose any number of javascript statements in HTML document?
    A
    < code >
    B
    < script >
    C
    < title >
    D
    < body >
           Web-Technologies       HTML       UGC-NET DEC-2019 Part-2
    Question 74 Explanation: 
    The < script > tag is used to define a client-side script (JavaScript).
    The < script > element either contains scripting statements, or it points to an external script file through the src attribute.
    Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content.
    Question 75
    Match List-I with List-II:


    Choose the correct option from those given below:
    A
    (a).(i), (b).(ii), (c).(iii), (d).(iv)
    B
    (a).(ii), (b).(i), (c).(iii), (d).(iv)
    C
    (a).(iv), (b).(iii), (c).(ii), (d).(i)
    D
    (a).(iii), (b).(iv), (c).(ii), (d).(i)
           Web-Technologies       HTML       UGC-NET DEC-2019 Part-2
    Question 75 Explanation: 
    Frame attribute → To specify the side of the table frame that display border
    The < frame > tag defines one particular window (frame) within a < frameset >.
    Each < frame > in a < frameset > can have different attributes, such as border, scrolling, the ability to resize, etc.
    < tr > tag → To enclose each row in a table.
    The < tr > tag defines a row in an HTML table.
    A < tr > element contains one or more or elements
    Valign attribute → for vertical alignment of content in cell
    < a > tag → To create link in HTML
    Question 76
    Consider the following script: < html > < head >< title > JavaScript < title >< / head > < body > < script language-“JavaScript” > var a=80 var b=(==80 ? “pass” : “fail”): document, write(b) < / script > < / body > < / html > What will be the output of the above script?
    A
    pass
    B
    fail
    C
    80
    D
    Error at line 6
           Web-Technologies       Java-Script       APPSC-2016-DL-CS
    Question 77
    An alternative to Java Script is
    A
    VBScript
    B
    ASP, NET
    C
    JSP
    D
    None of the given options
           Web-Technologies       Java-Script       APPSC-2016-DL-CS
    Question 78
    When destroy 0 method of servlet gets called?
    A
    The destroy 0 method is called only once at the end of the life cycle of a servlet.
    B
    The destroy 0 method is called after the servlet has executed service method.
    C
    The destroy 0 method is called only once at the end of the life cycle of a servlet. And destroy 0 method is called after the servlet has executed service method.
    D
    None of the given options
           Web-Technologies       Java-Script       APPSC-2016-DL-CS
    Question 79
    FOR XML document to be valid
    A
    document need to be well-formed
    B
    document need to be validated against a DTD
    C
    document need to be well-formed and document need to be validated against a DTD
    D
    document should contain valid data
           Web-Technologies       XML       APPSC-2016-DL-CS
    Question 80
    Which of the following instruct the browser which style sheet to use
    A
    < xml-stylesheet type=”text/xsl” href=”cdxsl” >
    B
    < xml-stylesheet type=”text/xsl” xsl=’cd.xsl” >
    C
    < ’/xml-stylesheet type=”text/dsl” href=”cd.xsl”? >
    D
    < ?xml-styleshet type=”test/xsl” xsl=”cd.xsl”? >
           Web-Technologies       XML       APPSC-2016-DL-CS
    Question 81

    What is the difference between XML and HTML?

    A
    HTML is used for exchanging data, XML is not
    B
    XML is used for exchanging data, HTML is not
    C
    HTML can have user defined tags, XML cannot
    D
    XML is used for exchanging data, HTML is not (and) HTML can have user defined tags, XML cannot
           Web-Technologies       XML       APPSC-2016-DL-CA
    Question 82

    What are tags used for?

    A
    To replace paragraph i.e., p tags
    B
    To logically divide the paragraphs
    C
    To logically divide the document
    D
    To provide space between tables
           Web-Technologies       HTML       APPSC-2016-DL-CA
    Question 83

    What are meta tags used for?

    A
    To store information usually relevant to browsers and search engines
    B
    To only store information usually relevant to browsers
    C
    To only store information about search engines
    D
    To store information about external links
           Web-Technologies       HTML       APPSC-2016-DL-CA
    Question 84

    Which is true to change the text colour to red?

    A
    B
    C
    D
    None of the given options
           Web-Technologies       HTML       APPSC-2016-DL-CA
    Question 85

    Which tag is used to display the numbered list?

    A
      B
      C
        D
      •        Web-Technologies       HTML       APPSC-2016-DL-CA
        Question 86

        The most popular way to materialize XML document is to use

        A
        DTD
        B
        XSLT
        C
        HTML
        D
        SOAP
               Web-Technologies       XML       APPSC-2016-DL-CA
        Question 87

        Apache Tomcat is a

        A
        Servlet
        B
        Java program
        C
        web server
        D
        web server that is capable of running Java programs
               Web-Technologies       Java-Script       APPSC-2016-DL-CA
        Question 88

        In Javascript, what does in NaN function do?

        A
        Return true, if the argument is not a number
        B
        Return false, if the argument is not a number
        C
        Return true, if the argument is a number
        D
        None of the given options
               Web-Technologies       Java-Script       APPSC-2016-DL-CA
        There are 88 questions to complete.
        PHP Code Snippets Powered By : XYZScripts.com
        error: Content is protected !!