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

HTML (Hyper Text Markup Language) has language elements which permit certain actions other than describing the structure of the web document. Which one 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       GATE 2011
Question 2 Explanation: 
Note: Out of syllabus.
Question 3

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       GATE 2009
Question 3 Explanation: 
Note: Out of syllabus. [Web Technologies]
Question 4

Which of the following is TRUE only of 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       XML       GATE 2008-IT
Question 4 Explanation: 
Note: Out of syllabus.
Question 5

Given below are HTML lines,

With reference to the HTML lines given above, consider the following statements.
(i) Clicking on the point <80, 75> does not have any effect.
(ii) The web browser can identify the area applicable to the mouse-click within the image and the subsequent action to be taken without additional responses from the web server.
(iii) The dots in the cgi-bin URL will be resolved by the web browser before it is sent to the web server.
(iv) The “fd.html” request when sent to the web server will result in a GET request.
Exactly how many of the statements given above are correct?

A
0
B
1
C
2
D
3
       Web-Technologies       HTML       GATE 2007-IT
Question 5 Explanation: 
Note: Out of syllabus.
Question 6

Consider the XML document fragment given below:

Consider the XPath expression: *[not (self)::TOC]
What would be the result of the given XPath expression when the current node is Book?

A
The Title and Content elements
B
The Content and TOC elements
C
The Title and TOC elements
D
The Title, Content and TOC elements
       Web-Technologies       XML       GATE 2007-IT
Question 6 Explanation: 
Note: Out of syllabus.
Question 7

Consider the following XML DTD describing course information in a university:

<!ELEMENT Univ (Course+, Prof+)>
<!ELEMENT Course (Title, Eval*)>
<!ATTLIST Course Number ID #REQUIRED Instructor IDREF #IMPLIED>
<!ELEMENT Title (#PCDATA)>
<!ELEMENT Eval (#PCDATA)>
<!ATTLIST Eval Score CDATA #REQUIRED>
<!ELEMENT Prof EMPTY>
<!ATTLIST Prof Name ID #REQUIRED Teaches IDREF #IMPLIED>

What is returned by the following XQuery?

let $as := //@Score
for $c in /Univ/Course[Eval]
let $cs := $c/Eval?@Score
where min($cs) > avg($as)
return $c 
A
The professor with the lowest course evaluation
B
Professors who have all their course evaluations above the university average
C
The course with the lowest evaluation
D
Courses with all evaluations above the university average
       Web-Technologies       XML       GATE 2006-IT
Question 7 Explanation: 
Note: Out of syllabus.
Question 8
XPath is used to navigate through elements and attributes in
A
XSL document
B
XML document
C
XHTML document
D
XQuery document
       Web-Technologies       XML       ISRO-2017 May       Video-Explanation
Question 8 Explanation: 
XPath
1. XPath stands for XML Path Language
2. XPath uses “path like” syntax to identify and navigate nodes in an XML document
3. XPath contains over 200 built-in functions
4. XPath is a major element in the XSLT standard
Question 9
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       Video-Explanation
Question 9 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 10
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       Video-Explanation
Question 10 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 11

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 11 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 12

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 12 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 13
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 13 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 14
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 14 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 15
    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 15 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 16
    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 16 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 17
    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       Video-Explanation
    Question 17 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 18
    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 18 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 19
    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 19 Explanation: 
    If you create HTML page with the above code,we will get table structure as below
    Question 20
    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 20 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 21
    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       Video-Explanation
    Question 21 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 22
    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       HTML       ISRO CS 2015       Video-Explanation
    Question 22 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: < ?xml version="1.0"/ >
    Question 23

    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 23 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 24

    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 24 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 25
    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 25 Explanation: 
    Question 26
    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 26 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 27
    ​ 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 27 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 28

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

    A
    &lt a href=”flower.jpg”? &gt
    B
    &lt image href=”flower.jpg” width=”500” height=”600” &gt
    C
    &lt img src=”flower.jpg” &gt
    D
    &lt img href=”flower.jpg” &gt
           Web-Technologies       HTML       JT(IT) 2018 PART-B Computer Science
    Question 28 Explanation: 
    → In HTML, images are defined with the &lt img &gt tag.
    → The &lt img &gt 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: &lt img src=”url” &gt
    Question 29

    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 29 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 30
    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 30 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 31
    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 31 Explanation: 
    I. statement 1 represents absolute URL. But since Statement A does not contain a closing tag so it is a wrong statement.
    II. Statement 2 relative URL starting from website root
    III. Statement 3 relative URL starting from the current page location
    IV. Statement 4 relative URL starting from the current page location and then going to “test” part of the loaded page
    Hence option C is right answer.
    Question 32
    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 32 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 33
    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 33 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 34
    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 34 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 35
    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 35 Explanation: 
    Linking nothing but creating hyperlinks from HTML page or HTML document to another HTML Page or HTML document.
    Question 36
    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 36 Explanation: 
    An XML parser converts an XML document into an XML DOM object – which can then be manipulated with a JavaScript
    Question 37
    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 37 Explanation: 
    The ​ Following syntax shows XML declaration −
    < ?xml
    version = “version_number”
    encoding = “encoding_declaration”
    standalone = “standalone_status”
    ? >
    Question 38
    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 38 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 39
    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 39 Explanation: 
    We can declare VBScript variables with the Dim, Public or the Private statement.
    Syntax: ​ Dim variable_name
    Example:​ Dim anand
    Question 40
    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 40 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 41
    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 41 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 42
    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 42 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 43
    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 43 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 44
    What is the correct HTML tag for the largest heading?
    A
    < H1 >
    B
    < HEAD > =large
    C
    < HEADING >=large
    D
    < H6 >
           Web-Technologies       HTML       KVS DEC-2017
    Question 44 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 45
    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 45 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 46

    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 46 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 47

    ____ element is used to create destination anchors in HTML?

    A
    &lt d &gt
    B
    &lt a &gt
    C
    &lt da &gt
    D
    &lt ad &gt
           Web-Technologies       HTML       JT(IT) 2016 PART-B Computer Science
    Question 47 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 48
    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 48 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 49
    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 49 Explanation: 
    A multimedia project is said to be hypertext and user interactive when users are given navigational control
    Question 50
    The comment in XML document is given by
    A
    < /—- >
    B
    < ?—- >
    C
    < !—- >
    D
    < !—-! >
           Web-Technologies       XML       KVS DEC-2017
    Question 50 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:
    There are 50 questions to complete.

    Access subject wise (1000+) question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

    Register Now