Unit-1 MCQ
Unit-1 MCQ
MCQ – Unit – 1
5. Which of the following map back and forth between host names and IP addresses?
a) TCP
b) UDP
c) DNS
d) IP
Answer: c
6. Which among the four layers of TCP/IP is analogous to the physical and the data link
layers of an OSI model?
a. Application Layer
b. Transport Layer
c. Internet Layer
d. Host to network Layer
Answer: d
7. Which one of the following allows client to update their DNS entry as their IP address
change?
a) dynamic DNS
b) mail transfer agent
c) authoritative name server
d) none of the mentioned
Answer: a
10. Which one of the following protocols can be used for login to a shell on a remote host
except SSH?
a) telnet
b) rlogin
c) both telnet and rlogin
d) none of the mentioned
Answer: c
16. The time taken by a packet to travel from client to server and then back to the client is
called __________
a) STT
b) RTT
c) PTT
d) JTT
Answer: b
17. In the process of fetching a web page from a server the HTTP request/response takes
__________ RTTs.
a) 2
b) 1
c) 4
d) 3
Answer: b
20. The __________ method when used in the method field, leaves entity body empty.
a) POST
b) SEND
c) GET
d) PUT
Answer: c
22. Which of the following is present in both an HTTP request line and a status line?
a) HTTP version number
b) URL
c) Method
d) None of the mentioned
Answer: a
26. ………….. is the additional attribute required by XHTML at the declaration of<!DOCTYPE>
statement.
A) xmlns
B) xml
C) xmln
D) xhtml
Answer: A
27. In HTML markup, a comment is specified by ………………., which allows page authors to
provide notes for future reference.
A) //-–
B) <––>
C) <!––>
D) !<– –>
Answer: C
29. Which of the following tag is used to add rows in the table?
a. <td> and </td>
b. <th> and </th>
c. <tr> and </tr>
d. None of the above
Answer: c
30. The …………….. statement indicates the particular version of HTML or XHTML being used
in the document.
A) <meta>
B) <!DOCTYPE>
C) <base>
D) <link>
Answer: B
31. In the case of ………………., self-close identification schema are used for empty elements.
A) XHTML
B) HTML
C) DHTML
D) XML
Answer: A
32. ____ is used to store the data within the documents on the server.
(A) XML
(B) HTML
(C) DHTML
(D) CGI
Answer: A
35. State whether the following statements about HTML and XHTML are True or False.
i) The markups in HTML are case sensitive but XHTML is not.
ii) In some web servers the attribute values may be case sensitive
iii) XHTML is sensitive to a single white space character for <pre> element.
A) i-True, ii-True, iii-False
B) i-False, ii-True, iii-True
C) i-True, ii-False, iii-True
D) i-False, ii-True, iii-False
Answer: B
36. The ……………………. declaration allows validation software to identify the HTML/DTD
being followed in a document, and verify the document is syntactically correct.
A) <meta>
B) <!DOCTYPE>
C) <base>
D) <link>
Answer: B
37. Which of the following is the correct way of linking external style sheet in a HTML document.
A) <link rel=”stylesheet” href=”universal.css” type=”text/css”>
B) <link rel=”sheet” href=”universal.css” type=”text/css”>
C) <link rel=”externalsheet” href=”universal.css” type=”text/css”>
D) <link rel=”css” href=”universal.css” type=”text/css”>
Answer: A
38. A ……………… tag allows scripting language code to be either directly embedded within or
more appropriately, linked to form a web page.
A) <base>
B) <link>
C) <style>
D) <script>
Answer: D
39. A/An …………………… tag allows programs and other binary objects to be directly
embedded in a web page.
A) <base>
B) <link>
C) <object>
D) <script>
Answer: B
40. A/An ……………. tag specifies an absolute URL address that is used to provide server and
directory information for particularly specified URL address called relative links, used with in
the document.
A) <base>
B) <link>
C) <object>
D) <script>
Answer: B
44. In HTML5, which of the following tag is used to initialize the document type?
a. <Doctype HTML>
b. <\Doctype html>
c. <Doctype>
d. <!DOCTYPE html>
Answer: d
45. Which of the following is the correct way to start an ordered list with the count of
numeric value 4?
a. <ol type = "1" initial = "4">
b. <ol type = "1" begin = "4">
c. <ol type = "1" num = "4">
d. <ol type = "1" start = "4">
Answer: d
51. If we want define style for an unique element, then which CSS selector will we use ?
A.Id
B.text
C.class
D.name
Answer : A
52. If we don't want to allow a floating div to the left side of an element, which CSS property
will we use ?
A.margin
B.clear
C.float
D.padding
Answer : B
53. Suppose we want to arrange five nos. of DIVs so that DIV4 is placed above DIV1. Now,
which CSS property will we use to control the order of stack?
A.d-index
B.s-index
C.x-index
D.z-index
Answer : D
54. Can we align a Block element by setting the left and right margins ?
A.Yes, we can
B.Not Possible
Answer : B
55. If we want to wrap a block of text around an image, which CSS property will we use ?
A.wrap
B.push
C.float
D.align
Answer : C
58. If we want to show an Arrow as cursor, then which value we will use ?
A.pointer
B.default
C.arrow
D.arr
Answer : B
59. If we want to use a nice looking green dotted border around an image, which CSS
property will we use?
A.border-color
B.border-decoration
C.border-style
D.border-line
Answer : C
60. Which of the following properties will we use to display border around a cell without any
content ?
A.empty-cell
B.blank-cell
C.noncontent-cell
D.void-cell
Answer : A
61. What should be the table width, so that the width of a table adjust to the current width of
the browser window?
A.640 pixels
B.100%
C.full-screen
D.1024 px
Answer : B
62. Which element is used in the <HEAD> section on an HTML / XHTMLpage, if we want to
use an external style sheet file to decorate the page ?
A.<src>
B.<link>
C.<style>
D.<css>
Answer : B
63. Which attribute can be added to many HTML / XHTML elements to identify them as a
member of a specific group ?
A.Id
B.div
C.class
D.span
Answer : C
64. When we write <imgsrc="img.png">, what "img.png" inside double quote implies?
A.element
B.attribute
C.value
D.operator
Answer : C
66. Which CSS property you will use if you want to add some margin between a DIV's border
and its inner text ?
A.spacing
B.margin
C.padding
D.inner-margin
Answer : C
67. Which CSS property is used to control the text size of an element ?
A.font-style
B.text-size
C.font-size
D.text-style
Answer : C
70. By default Hyperlinks are displayed with an underline. How do you remove the underline
from all hyperlinks by using CSS code ?
a. a {text: no-underline;}
b. a {text-decoration:none;}
c. a {text-style: no-underline;}
d. a {text-decoration: no-underline;}
Answer : B
74. Choose the correct JavaScript syntax to change the content of the following HTML code.
A. document.getElement (“letsfindcourse").innerHTML = "I am a
letsfindcourse";
B. document.getElementById (“letsfindcourse").innerHTML = "I am a
letsfindcourse";
C. document.getId (“letsfindcourse") = "I am a letsfindcourse";
D. document.getElementById (“letsfindcourse").innerHTML = I am a
letsfindcourse;
Answer : B
75. Which of the following is the correct syntax to display "Letsfindcourse" in an alert box
using JavaScript?
a. alert-box("Letsfindcourse");
b. confirm("Letsfindcourse");
c. msgbox("Letsfindcourse");
d. alert("Letsfindcourse");
Answer : D
76. What is the correct syntax for referring to an external script called "LFC.js"?
a. <script src="LFC.js">
b. <script source="LFC.js">
c. <script ref="LFC.js">
d. <script type="LFC.js">
Answer : A
83. What are the three important manipulations done in a for loop on a loop variable in
javascript?
a. the initialization, the Incrementation, and update
b. the initialization, the test, and the update
c. the initialization, the test, and Incrementation
d. All of the above
Answer : B
96. Which of the following is not the properties of screen objects in JavaScript?
a. AvailHeight
b. ColorsDepth
c. AvailWidth
d. ColorDepth
Answer : B
97. Javascript string using double quotes is exactly the same as a string using single quotes?
a. True
b. False
Answer : A
100. What will be printed in the console on execution of the below code?
var materials = [
'Hydrogen',
'Helium',
'Lithium',
'Beryllium'
];
console.log(materials.map (material =>material.length));
a. [8, 6, 7, 9]
b. 4
c. [4]
d. 8, 6, 7, 9
Answer : A