Web-Technologies

Question 1

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 1 Explanation: 
Note: Out of syllabus.
Question 2

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 2 Explanation: 
Note: Out of syllabus.
Question 3

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 3 Explanation: 
Note: Out of syllabus.
Question 4

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 4 Explanation: 
Note: Out of syllabus.
Question 5
Which of 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       XML       GATE 2015 [Set-1]       Video-Explanation
Question 6
In a web server, ten Web Pages are stored with the URLs of the form http://www.yourname.com/var.html; where, var is a different number from 1 to 10 for each Webpage. Suppose, the client stores the Webpage with var = 1 (say W1) in local machine, edits and then tests. Rest of the Web Pages remains on the web server. W1 contains several relative URLs of the form “var.html” referring to the other Web Pages. Which one of the following statements needs to be added in W1, so that all the relative URLs in W1 refer to the appropriate Web Pages on the web server?
A
&lta.href: “http://www.yourname.com/”, href: “…var.html”&gt
B
&ltbase href: “http://www.yourname.com/”&gt
C
&lta.href: “http://www.yourname.com/”&gt
D
&ltbase href: “http://www.yourname.com/”, range: “…var.html”&gt
       Web-Technologies       HTML       GATE 2015 [Set-3]       Video-Explanation
Question 7

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

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 8 Explanation: 
Note: Out of syllabus.
Question 9

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]       Video-Explanation
Question 9 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 10

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 11

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 12

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 13

Which is true to change the text colour to red?

A
&lt BODY BGCOLOUR=RED &gt
B
&lt BODY TEXT=RED &gt
C
&lt BODY COLOUR=RED &gt
D
None of the given options
       Web-Technologies       HTML       APPSC-2016-DL-CA
Question 14

Which tag is used to display the numbered list?

A
&lt OL &gt &lt /OL &gt
B
&lt DL &gt &lt /DL &gt
C
&lt UL &gt &lt /UL &gt
D
&lt LI &gt &lt /LI &gt
       Web-Technologies       HTML       APPSC-2016-DL-CA
Question 15

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 15 Explanation: 
The most popular way to materialize XML document is to use XSLT ( eXtensible Stylesheet Language)
Question 16

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 17

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
Question 18
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 19
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 20
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 21
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 22
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 23
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 24
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 25
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 25 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 26
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 26 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 27
Which one of the following allows the session to continue?
A
When a user quits a browser
B
When the user logs out and is invalidated by the servlet
C
When the session is timed out due to inactivity
D
When the user refreshes the browser and there is a persistent cookie
       Web-Technologies       Servlet       NTA UGC NET DEC-2022 Paper-2       Video-Explanation
Question 27 Explanation: 
Except the last statement, in all remaining cases the session will be closed.
Question 28
Which mechanism in XML allows organizations to specify globally unique names as element tags in documents?
A
root
B
header
C
schema
D
namespace
       Web-Technologies       XML       NTA-UGC-NET 2021 Dec & 2022 June Paper-2
Question 29
Which of the following is correct Content-Type header that a server side script should send for SSE in HTML5?
A
Content-Type: text/event-stream
B
Content-Type: text/ application-stream
C
Content-Type: text/data-stream
D
None of the options
       Web-Technologies       HTML       NIC-NIELIT Scientist-B 2020       Video-Explanation
Question 30
_________ is automatically loaded and operates as part of browser.
A
Add-ons
B
Plug-ins
C
Utilities
D
Widgets
       Web-Technologies       Plug-ins       NIC-NIELIT Scientist-B 2020       Video-Explanation
Question 30 Explanation: 
Plug-ins is automatically loaded and operate as part of the browser.
Question 31
Which element is used to define discrete unit of content such as a blogpost, comment and so on?
A
section
B
class
C
article
D
none of the options
       Web-Technologies       article       NIC-NIELIT Scientist-B 2020       Video-Explanation
Question 32
Which of the following tag is used intended for navigation in HTML5?
A
nav
B
footer
C
section
D
navigation tag
       Web-Technologies       HTML       NIC-NIELIT Scientist-B 2020       Video-Explanation
Question 32 Explanation: 
The < nav > tag defines a set of navigation links.
Notice that NOT all links of a document should be inside a < nav > element. The < nav > element is intended only for major blocks of navigation links.
Browsers, such as screen readers for disabled users, can use this element to determine whether to omit the initial rendering of this content.
Question 33
How to specify the comment in the XML document?
A
< ?- -- >
B
< !-- --! >
C
< !-- -- >
D
< /-- -- >
       Web-Technologies       XML       NIC-NIELIT Scientist-B 2020       Video-Explanation
Question 33 Explanation: 
The syntax for writing comments in XML is similar to that of HTML:
< !-- This is a comment -->
Question 34
Limitations of the XML Data Type are:
A
It cannot be compared or sorted. This means an XML data type cannot be used in a GROUP BY statement.
B
It cannot be used as a key column in an index.
C
The value() method of the XML data type returns a scalar value, so it can be specified anywhere where scalar values are allowed.
D
All of the options.
       Web-Technologies       XML       NIC-NIELIT Scientist-B 2020       Video-Explanation
Question 34 Explanation: 
Limitations of the xml Data Type:
Note the following general limitations that apply to the xml data type:
The stored representation of xml data type instances cannot exceed 2 GB.
It cannot be used as a subtype of a sql_variant instance.
It does not support casting or converting to either text or ntext. Use varchar(max) or nvarchar(max) instead.
It cannot be compared or sorted. This means an xml data type cannot be used in a GROUP BY statement.
It cannot be used as a parameter to any scalar, built-in functions other than ISNULL, COALESCE, and DATALENGTH.
It cannot be used as a key column in an index. However, it can be included as data in a clustered index or explicitly added to a nonclustered index by using the INCLUDE keyword when the nonclustered index is created.
XML elements can be nested up to 128 levels.
Question 35
PI in XML specification stands for _______.
A
priceless instruction
B
processing instruction
C
polymorphic inheritance
D
primary instruction
       Web-Technologies       XML       NIC-NIELIT Scientist-B 2020       Video-Explanation
Question 35 Explanation: 
A Processing Instruction (PI) is an SGML and XML node type, which may occur anywhere in the document, intended to carry instructions to the application.
Processing instructions are exposed in the Document Object Model as Node.PROCESSING_INSTRUCTION_NODE, and they can be used in XPath and XQuery with the ‘processing-instruction()’ command.
Question 36
The default character encoding in HTML5 is ______.
A
UTF-16
B
UTF-32
C
UTF-8
D
ISO-8859-1
       Web-Technologies       HTML       NIC-NIELIT STA 2020       Video-Explanation
Question 36 Explanation: 
For HTML5, the default character encoding is UTF-8.
This has not always been the case. The character encoding for the early web was ASCII.
Question 37
_____ CSS property allows you to wrap a block of text around an image.
A
wrap
B
push
C
float
D
align
       Web-Technologies       CSS       NIC-NIELIT STA 2020       Video-Explanation
Question 38
What does < main > include?
A
Header
B
Sidebar
C
Article
D
Footer
       Web-Technologies       HTML       NIC-NIELIT STA 2020       Video-Explanation
Question 38 Explanation: 
Answer can be option A also. Main tag contains the content that is main and unique to the document and is not repeated such as sidebar etc. Header can be in the main tag.
Question 39
Which of the following constructs is not supported by Java Server Pages?
A
JSP Directives
B
JSP Scriptlets
C
JSP Actions
D
JSP Reaction
       Web-Technologies       JSP       NIC-NIELIT STA 2020       Video-Explanation
Question 40
If we don’t want to allow a floating div to the left side of an element, ______ CSS property will we use.
A
margin
B
clear
C
float
D
padding
       Web-Technologies       CSS       NIC-NIELIT STA 2020       Video-Explanation
Question 40 Explanation: 
The clear property specifies on which sides of an element floating elements are not allowed to float.
Syntax: clear: none|left|right|both|initial|inherit;
Question 41
Adding the style attributes in HTML elements, is known to be ______.
A
Internal
B
Inline
C
Outline
D
External
       Web-Technologies       HTML       NIC-NIELIT STA 2020       Video-Explanation
Question 41 Explanation: 
CSS can be added to HTML documents in 3 ways:
Inline – by using the style attribute inside HTML elements
Internal – by using a < style > element in the < head > section
External – by using a < link > element to link to an external CSS file
The most common way to add CSS, is to keep the styles in external CSS files.
Question 42
Term in the MVC architecture that receives events is called ______.
A
Receiver
B
Controller
C
Transmitter
D
Modulator
       Web-Technologies       MVC       NIC-NIELIT STA 2020       Video-Explanation
Question 42 Explanation: 
Term in the MVC architecture that receives events is called Controller.
Question 43
In HTML, < map > tag is used for
A
defining a path between two nodes in an image
B
defining clickable region in an image
C
highlighting an area in an image
D
defining the site-map of a web-site
       Web-Technologies       HTML       UGC NET JRF November 2020 Paper-2
Question 43 Explanation: 
The HTML < map > element is used with < area > elements to define an image map (a clickable link area).
Question 44
Which of the following statements regarding XML is/are TRUE? (A) XML is a set of tags designed to tell browsers how to display text and images in a web page. (B) XML defines a syntax for representing data, but the meaning of data varies from application to application. (C) < Letter >, < LETTER > and < letter > are three different tags in XML Choose the correct answer from the options given below:
A
(A) and (B) only
B
(A) and (C) only
C
(B) and (C) only
D
(A), (B) and (C)
       Web-Technologies       XML       UGC NET JRF November 2020 Paper-2
Question 44 Explanation: 
-XML was designed to carry data – with focus on what data is
-HTML was designed to display data – with focus on how data looks
→ FALSE: HTML is a set of tags designed to tell browsers how to display text and images in a web page.
→ TRUE: XML defines a syntax for representing data, but the meaning of data varies from application to application.
→ TRUE: XML is case sensitive.
Question 45
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 45 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 46
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 46 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 47
<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 47 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 48
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 48 Explanation: 
Three types of Cascading Style Sheets(CSS) are Inline,Internal and External
Question 49
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 49 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 50
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 50 Explanation: 
The Trim function removes spaces on both sides of a string.
Trim(string)
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