0% found this document useful (0 votes)
16 views17 pages

Unit-1 MCQ

The document contains multiple-choice questions (MCQs) related to E-Commerce, specifically focusing on various protocols, HTML, XHTML, CSS, and JavaScript. Each question is followed by the correct answer, covering topics such as network protocols, HTML elements, CSS properties, and JavaScript features. The content is structured to assess knowledge in web technologies and programming languages commonly used in e-commerce applications.

Uploaded by

javidinaug77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views17 pages

Unit-1 MCQ

The document contains multiple-choice questions (MCQs) related to E-Commerce, specifically focusing on various protocols, HTML, XHTML, CSS, and JavaScript. Each question is followed by the correct answer, covering topics such as network protocols, HTML elements, CSS properties, and JavaScript features. The content is structured to assess knowledge in web technologies and programming languages commonly used in e-commerce applications.

Uploaded by

javidinaug77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

IT 8005 – E-Commerce

MCQ – Unit – 1

1. Which of the following items are not necessary for client/server?


a) Assure that tools will connect with middleware
b) Understand the requirements.
c) Determine network bandwidth capabilities.
d) Include the use of a file server.
Answer: d

2. Which of the following protocols is used in the internet?


a) HTTP
b) DHCP
c) DNS
d) DNS, HTTP and DNS
Answer: d

3. Which protocol assigns IP address to the client connected in the internet?


a) DHCP
b) IP
c) RPC
d) RSVP
Answer: a

4. The term IANA stands for?


a. Internet Assigned Numbers Authority
b. Internal Assigned Numbers Authority
c. Internet Associative Numbers Authoritative
d. Internal Associative Numbers Authority
Answer: a

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

8. The domain name system is maintained by _______


a) distributed database system
b) a single server
c) a single computer
d) none of the mentioned
Answer: a

9. Secure shell (SSH) network protocol is used for __________


a) secure data communication
b) remote command-line login
c) remote command execution
d) all of the mentioned
Answer: d

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

11. IPSec is designed to provide security at the _________


a) Transport layer
b) Network layer
c) Application layer
d) Session layer
Answer: b

12. The application layer protocol used by a Telnet application is ________


a) Telnet
b) FTP
c) HTTP
d) SMTP
Answer: a
13. The server program tells its TCP that it is ready to accept a connection. This process is
called ___________
a) Active open
b) Active close
c) Passive close
d) Passive open
Answer: d

14. Which of the following is false with respect to UDP?


a) Connection-oriented
b) Unreliable
c) Transport layer protocol
d) Low overhead
Answer: a

15. The default connection type used by HTTP is _________


a) Persistent
b) Non-persistent
c) Can be either persistent or non-persistent depending on connection request
d) None of the mentioned
Answer: a

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

18. The first line of HTTP request message is called _____________


a) Request line
b) Header line
c) Status line
d) Entity line
Answer: a
19. The values GET, POST, HEAD etc are specified in ____________ of HTTP message
a) Request line
b) Header line
c) Status line
d) Entity body
Answer: a

20. The __________ method when used in the method field, leaves entity body empty.
a) POST
b) SEND
c) GET
d) PUT
Answer: c

21. Find the oddly matched HTTP status codes


a) 200 OK
b) 400 Bad Request
c) 301 Moved permanently
d) 304 Not Found
Answer: d

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

23. HTTP is ________ protocol.


a) application layer
b) transport layer
c) network layer
d) data link layer
Answer: a

24. HTTP client requests by establishing a __________ connection to a particular port on


the server.
a) user datagram protocol
b) transmission control protocol
c) border gateway protocol
d) domain host control protocol
Answer: b
25. If 5 files are transferred from server A to client B in the same session. The number of
TCP connections between A and B is _______
a) 5
b) 10
c) 2
d) 6
Answer: d

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

28. How do we write comments in HTML5?


a) <!……>
b) <…….!>
c) </…….>
d) </……/>
Answer: a

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

33. The HTML and HTTP standard are defined by ____


(A) Web client
(B) Internet association
(C) WWW consortium
(D) WWW
Answer: C

34. HTML invented by


a. Conway Berners-Lee
b. James Gosling
c. Tim Berners-Lee
d. Stroustrup
Answer: c

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

41. Which of the following element is removed by HTML5


a. vlink
b. dir
c. marginwidth
d. compact
Answer: b

42. The Correct HTML Tag To Make A Text Italic


a. &lt;italic>
b. &lt;it>
c. &lt;i>
d. &lt;il>
Answer: c
43. What are the types of unordered or bulleted list in HTML?
a. disc, square, triangle
b. polygon, triangle, circle
c. disc, circle, square
d. All of the above
Answer: c

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

47._____________is the replacement for cookies in HTML5.


a. Java scripts
b. Web beacons
c. Local Storage
d. All of the above
Answer: c

48. ________ Is The XML Equivalent To Strict HTML 4.01.


a. XHTML 1.0 Frameset
b. XHTML 1.0 Transitional
c. XHTML 1.0 Strict
d. None Of The Mentioned
Answer: c
49. Which of following is not an attribute of <form> tag
a. Action
b. Method
c. Name
d. url
Answer: d

50.The default character encoding in HTML5 is.


A) UTF-16
B) UTF-32
C) UTF-8
D) ISO-8859-1
Answer: C

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

56. Can we define the text direction via CSS property ?


A.Yes, we can
B.No, we can't
Answer : A
57. Is it possible to declare font-weight, font-face & font-size by using ONLY ONE CSS
propery ?
A.Yes, it's possible
B.No, not possible
Answer : A

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

65. How can we write comment along with CSS code ?


A./* a comment */
B.// a comment //
C./ a comment /
D.<' a comment'>
Answer : A

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

68. The default value of "position" attribute is _________.


A.fixed
B.absolute
C.inherit
D.relative
Answer : D
69. How will you make all paragraph elements 'RED' in color ?
a. p.all {color: red;}
b. p.all {color: #990000;}
c. all.p {color: #998877;}
d. p {color: red;}
Answer : D

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

71. Which of the following is not JavaScript Data Types?


a. Undefined
b. Number
c. Boolean
d. Float
Answer : D

72. Inside which HTML element do we put the JavaScript?


A. <script>
B. <head>
C. <meta>
D. <style>
Answer : A

73. Which of the following is correct about features of JavaScript?


A. It can not Handling dates and time.
B. JavaScript is a object-based scripting language.
C. JavaScript is not interpreter based scripting language.
D. All of the above
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

77. Which of the following is not Javascript frameworks or libraries?


a. Polymer
b. Meteor
c. Cassandra
d. jQuery
Answer : C

78. Why so JavaScript and Java have similar name?


a. JavaScript is a stripped-down version of Java
b. JavaScript's syntax is loosely based on Java's
c. They both originated on the island of Java
d. None of the above
Answer : B

79. What is the original name of JavaScript?


a. LiveScript
b. EScript
c. Mocha
d. JavaScript
Answer : C

80. JavaScript is designed for following purpose -


a. to style HTML pages
b. to execute Queries related to databases on a server
c. to add interactivity to html pages
d. All of the above
Answer : D
81. What will be the output of the following Javascript code?
var string1 = "Letsfindcourse";
varintvalue = 30;
alert( string1 + intvalue );
a. Letsfindcourse 30
b. 30
c. Letsfindcourse30
d. Exception
Answer : C

82. Among the following, which one is a ternary operator in JavaScript?


a. #
b. ::
c. &:
d. ?:
Answer : D

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

84. What does javascript use instead of == and !=?


a. It uses bitwise checking
b. It uses === and !== instead
c. It uses equals() and notequals() instead
d. It uses equalto()
Answer : B

85. What should appear at the very end of your JavaScript?


The <script language="javascript"> tag
a. <script>
b. <script>
c. </script language="javascript">
d. All of the above
Answer : B

86. Among the keywords below, which one is not a statement?


a. If
b. With
c. Debugger
d. use strict
Answer : D

87. How do we define the term Thread?


a. Device that controls input
b. Variable that controls movement
c. Controlled execution of applications
d. None of the above
Answer : C

88. Which symbol is used for comments in Javascript?


a. \\
b. //
c. \* *\
d. \* */
Answer : B

89. Which of them is not the looping structures in JavaScript?


a. For
b. While
c. Forwhich
d. Dowhile
Answer : B

90. What is defination of an undefined value in JavaScript?


a. Variable used in the code doesn't exist
B. Variable is not assigned to any value
C. Property doesn't exist
D. All of the above
Answer : D

91. What are the types of Pop up boxes available in JavaScript?


a. Alert
b. Prompt
c. Confirm
d. All of the above
Answer : D

92. what is the disadvantage of using inner HTML in JavaScript?


a. Content can not be replaced everywhere
b. We can use like "appending to innerHTML"
c. Even if you use +=like "innerHTML = innerHTML + 'html'" still the old content
is replaced by html
d. The entire innerHTML content is not re-parsed and build into elements, therefore
its not slower
Answer : C
93. What are the two basic groups of dataypes in JavaScript?
A.Primitive
B. Reference types.
C. All of the above
D. None of the above
Answer : C

94. Which of the following are the errors in JavaScript?


a. Load time errors
b. Run time errors:
c. Logical Errors:
d. All of the above
Answer : B

95. Which of the following are the functional components in JavaScript?


a. First-class functions
b. Encapsulated-class functions
c. Fixed-class functions
d. All of the above
Answer : A

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

98. Find output of below code


var a = '20';
var b = a = 30;
document.write(a+b);
a. Error in Script
b. '20'30
c. 2030
d. 50
Answer : D
99. What will be printed in the console on execution of the following JS code:
var array = [2, 4, 6, 7, 8, 10];
varmyArr= array.filter(v => v / 2 === 0);
console.log(myArr);
a. myArr
b. [2, 4, 6, 7, 8, 10]
c. [2, 4, 6, 8, 10]
d. [7]
Answer : C

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

You might also like