HTML
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)?
Q needs to send at least 2 HTTP requests to S, each necessarily in a separate TCP connection to server S | |
Q needs to send at least 2 HTTP requests to S, but a single TCP connection to server S is sufficient | |
A single HTTP request from Q to S is sufficient, and a single TCP connection between Q and S is necessary for this | |
A single HTTP request from Q to S is sufficient, and this is possible without any TCP connection between Q and S |
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 |
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?
HTTP, SMTP, FTP | |
FTP, HTTP, SMTP | |
HTTP, FTP, SMTP | |
SMTP, HTTP, FTP |
Question 3 |
The diagram that helps in understanding and representing user requirements for a software project using UML (Unified Modeling Language) is:
Entity Relationship Diagram | |
Deployment Diagram | |
Data Flow Diagram | |
Use Case Diagram |
Question 4 |
< dl > | |
< ul > | |
< li > | |
< ol > |
- tag defines an ordered list. An ordered list can be numerical or alphabetical.
- tag to create unordered lists.
→ The
- tag defines an unordered (bulleted) list. Use the
- tag together with the
Question 5 |
SELECT | |
Value | |
INPUT | |
BODY |
→ 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 6 |
Which of the following HTML5 codes will affect the horizontal as well as vertical alignment of the table content?
BASH | | |
BASH | | |
BASH | | |
BASH | |
• The vertical-align property sets the vertical alignment (like top, bottom, or middle) of the content in
Question 7 |
Embed web objects from different sites into the same page | |
Refresh the page automatically after a specified interval | |
Automatically redirect to another page upon download | |
Display the client time as part of the page |
Question 8 |

The number of rows in each column and the number of columns in each row are:
(2,2,3) and (2,3,2) | |
(2,2,3) and (2,2,3) | |
(2,3,2) and (2,3,2) | |
(2,3,2) and (2,2,3) |

Question 9 |
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
2 only | |
1 only | |
2 and 4 only | |
3 and 4 only |
● Both XML and HTML consists of Tags. Every open tag should consists of close tag in both languages.
Question 10 |
h1 { background-color :#FFFFFF} | |
{ background-color :#FFFFFF} . h1 | |
h1 { background-color :#FFFFFF} . h1(all) | |
h1. all{bgcolor= #FFFFFF} |
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 11 |
< ?xml version='1.0'/ > | |
< *xml version='1.0'/ > | |
< ?xml version="1.0"/ > | |
< /xml version='1.0'/ > |
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 12 |
Hypertext | |
hypermedia | |
Both (A) and (B) | |
Anchoring |
Question 13 |
Which of the following is the correct syntax to insert an image in HTML documents?
< a href=”flower.jpg”? >
| |
< image href=”flower.jpg” width=”500” height=”600” > | |
< img src=”flower.jpg” >
| |
< img href=”flower.jpg” >
|
→ The < img > 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: < img src="url" >
Question 14 |
How many different headings tags are available in HTML?
6 | |
8 | |
3 | |
5 |
→ 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 15 |
(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) and (b) only
| |
(a),(b) and (c) only | |
(b),(c) and (d) only | |
(a),(b),(c) and(d) |
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 16 |
Hypertext | |
hypermedia | |
Both (A) and (B) | |
Anchoring |
Question 17 |
ALTERNATE | |
ALTLINK | |
ALT_TEXT | |
ALT |
● The syntax is
< img src=”file.jpg” alt=”Image can’t be loaded” >
Question 18 |
Linking one part of the document on one computer, to another part of the document on some other computer with the same file name | |
Linking one part of the document on one computer, to another part of the document on some other computer in the same LAN | |
Linking one part of the document to another part of the same document | |
Linking one part of the document to another document on the same computer |
Question 19 |
HTML | |
BMP | |
TIFF | |
GIF |
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 20 |
Document to Definition | |
Document Type Definition | |
Document Towards Definition | |
Document Text Definition |
→ 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 21 |
< H1 > | |
< HEAD > =large | |
< HEADING >=large | |
< H6 > |
→ < h1 > defines largest heading
→ < h6 > defines smallest heading.
Question 22 |
a mix of ASP.NET and HTML code | |
all ASP.NET code | |
all HTML code | |
as much ASP.NET code as is in the ASP.NET file. |
Question 23 |
____ element is used to create destination anchors in HTML?
< d > | |
< a > | |
< da > | |
< ad > |
• 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 24 |
Secure | |
hypertext | |
linear | |
non linear |
Question 25 |
A character | |
A word | |
A line of text | |
Full paragraph |
→The
- (defines a description list) and
- (defines terms/names).
→Inside a - tag you can put paragraphs, line breaks, images, links, lists, etc.
Question 26 |
< a href=”url” target=”_blank” > | |
< a href=”url” target=”_new” > | |
< a href=”url” target=”_top” > | |
< a href=”url” target=”_self” > |
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 27 |
machine language program | |
high level program | |
web page | |
web server |
Question 28 |
< t d halign = " middle" valign = " center" > BASH < / td > | |
< t d style = " text − a lign : center; vertical − a lign : middle; " > BASH < / td > | |
< t d align = "middle" valign = " center" > B ASH < / td > | |
< t d style = " horizontal − a lign : c enter; vertical − a lign : m iddle; " > B ASH < / td > |
● The vertical-align property sets the vertical alignment (like top, bottom, or middle) of the content in
Question 29 |
the symbols used have well-defined | |
they are unnecessary, in reality | |
only the form of the string of symbols is significant | |
none of the above |
Question 30 |
<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:
![]() | |
![]() | |
![]() | |
![]() |

Question 31 |
(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.
Only (a) is TRUE. | |
Only (b) is TRUE. | |
Both (a) and (b) are TRUE. | |
Neither (a) nor (b) is TRUE. |
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 32 |
![]() | |
![]() | |
![]() | |
![]() |

Question 33 |
HTML is not screen precise formatting language. | |
HTML does not specify a logic. | |
DHTML is used for developing highly interactive web pages. | |
HTML is a programming language. |
Question 34 |
< body > < / body > | |
< address > < / address > | |
< strong > < / strong > | |
< em > < / em > |
The format is:
< ADDRESS > text ... < / ADDRESS >
Question 35 |
< SCRIPT > | |
< BODY > | |
< HEAD >
| |
< TITLE > |

Question 36 |
< code > | |
< script > | |
< title > | |
< body > |
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 37 |

(a).(i), (b).(ii), (c).(iii), (d).(iv) | |
(a).(ii), (b).(i), (c).(iii), (d).(iv) | |
(a).(iv), (b).(iii), (c).(ii), (d).(i) | |
(a).(iii), (b).(iv), (c).(ii), (d).(i) |
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
Valign attribute → for vertical alignment of content in cell
< a > tag → To create link in HTML
Question 38 |
What are tags used for?
To replace paragraph i.e., p tags
| |
To logically divide the paragraphs | |
To logically divide the document
| |
To provide space between tables
|
Question 39 |
What are meta tags used for?
To store information usually relevant to browsers and search engines
| |
To only store information usually relevant to browsers
| |
To only store information about search engines
| |
To store information about external links
|
Question 40 |
Which is true to change the text colour to red?
< BODY BGCOLOUR=RED > | |
< BODY TEXT=RED > | |
< BODY COLOUR=RED > | |
None of the given options
|
Question 41 |
Which tag is used to display the numbered list?
< OL > < /OL > | |
< DL > < /DL >
| |
< UL > < /UL > | |
< LI > < /LI > |