HTML

Question 1
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
<a.href: “http://www.yourname.com/”, href: “...var.html”>
B
<base href: “http://www.yourname.com/”>
C
<a.href: “http://www.yourname.com/”>
D
<base href: “http://www.yourname.com/”, range: “...var.html”>
Question 2

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
Question 2 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 3

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

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

Consider the three commands : PROMPT, HEAD and RCPT.
Which of the following options indicate a correct association of these commands with protocols where these are used?

A
HTTP, SMTP, FTP
B
FTP, HTTP, SMTP
C
HTTP, FTP, SMTP
D
SMTP, HTTP, FTP
Question 5 Explanation: 
Note: Out of syllabus.
Question 6

The diagram that helps in understanding and representing user requirements for a software project using UML (Unified Modeling Language) is:

A
Entity Relationship Diagram
B
Deployment Diagram
C
Data Flow Diagram
D
Use Case Diagram
Question 6 Explanation: 
Note: Out of syllabus.
Question 7

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
Question 7 Explanation: 
Note: Out of syllabus.
Question 8
Choose the most appropriate HTML tag in the following to create a numbered lists.
A
< dl >
B
< ul >
C
< li >
D
< ol >
Question 8 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 9
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
Question 9 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 10
In HTML, which of the following can be considered a container?
A
SELECT
B
Value
C
INPUT
D
BODY
Question 10 Explanation: 
→ A container tag in HTML is one which has both opening and closing tags.
→ There are some tags in HTML which don't have a closing tag.
→ They end within the same tag.
Examples:
→ is a container tag, it has it's closing tag as .
→Other examples are , ,

etc.
→These are called container tags because they contain something, within the two tags.

Question 11

Which of the following HTML5 codes will affect the horizontal as well as vertical alignment of the table content?

A
BASH
B
BASH
C
BASH
D
BASH
Question 11 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 12
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
Question 12 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 13
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)
Question 13 Explanation: 
If you create HTML page with the above code,we will get table structure as below
There are 13 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access