148
COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No: 1___( Marks: 1 ) - Please choose one Which of the following is Default subnet mask of class C? 255.0.0.0 255.255.0.0 255.255.255.0 (page 11) None of above Question No: 2 ( Marks: 1 ) - Please choose one Which one of the following ,divides large network in small logical segments called subnets on basis of IP addresses Routers (page 16) Bridge None of these Switches Question No: 3 __ ( Marks: 1 ) - Please choose one Which one is not included in the networking topologies? Star Topology Bus Topology Media Topology Ring Topology Question No: 4 __ ( Marks: 1 ) - Please choose one CSS is a breakthrough in Web design because it allows developers to control the ----------- Processing speed on client side Style and layout of multiple Web pages Data grid view on client side Style and layout of home page. Ref http://www.w3schools.com/web/web_css.asp Question No: 5 ( Marks: 1 ) - Please choose one Border-width: specifies the width of all borders in the order

COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

MIDTERM EXAMINATION Spring 2009

IT430- E-Commerce (Session - 1)

Question No: 1___( Marks: 1 ) - Please choose one Which of the following is Default subnet mask of class C?

255.0.0.0 255.255.0.0

255.255.255.0 (page 11)

None of above Question No: 2 ( Marks: 1 ) - Please choose one Which one of the following ,divides large network in small logical segments called subnets on basis of IP addresses

Routers (page 16)

Bridge None of these Switches

Question No: 3 __ ( Marks: 1 ) - Please choose one Which one is not included in the networking topologies? Star Topology Bus Topology

Media Topology Ring Topology

Question No: 4 __ ( Marks: 1 ) - Please choose one CSS is a breakthrough in Web design because it allows developers to control the ----------- Processing speed on client side

Style and layout of multiple Web pages Data grid view on client side Style and layout of home page.

Ref http://www.w3schools.com/web/web_css.asp Question No: 5 ( Marks: 1 ) - Please choose one Border-width: specifies the width of all borders in the order

Page 2: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

„border-right-width, border-bottom-width, border-left-width, border-top-width‟ „border-bottom-width, border-left-width, border-top-width, border-right-width‟

„border-top-width, border-right-width, border-bottom-width, border-left-width‟ (page 49) None of these

Question No: 6 __ ( Marks: 1 ) - Please choose one document.write(str.replace(/Microsoft/,"W3Schools")) This string object is deleting Microsoft word This string object is concatenating the Microsoft with W3schools

This string object is replacing Microsoft with W3schools None of these

Ref http://iswww.w3schools.com/jsref/jsref_replace.asp Question No: 7 ( Marks: 1 ) - Please choose one How do you define a function in Javascript? function:myFunction()

function myFunction() (page 58) declare myFunction() new myFunction Question No: 8___( Marks: 1 ) - Please choose one The first control statement in a for loop usually sets the termination condition increments a counter creates a control variable

none of the above Question No: 9 ( Marks: 1 ) - Please choose one The second control statement in a for loop usually sets the termination condition increments a counter creates a control variable none of the above Question No: 10 ( Marks: 1 ) - Please choose one Choose the correct HTML tag to make a text italic <it>

<i> (page 19) <italics> <italic>

Question No: 11 __ ( Marks: 1 ) - Please choose one

Page 3: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

The 'shape' attribute of <AREA> tag accepts the following values, EXCEPT Rect Circle poly

square (page 36) Question No: 12 ( Marks: 1 ) - Please choose one <AREA> tag is used within the

<MAP> tag (page 35) <FRAME> tag <FRAMESET> tag <IMG> tag

Question No: 13 __ ( Marks: 1 ) - Please choose one Where in an HTML document is the correct place to refer to an external style sheet? In the <body> section At the top of the document In

the <head> section (page 42) Between head and body

Question No: 14 __ ( Marks: 1 ) - Please choose one In CSS, How do you make the text italic? font:i style:italic

font-style: italic (page 44) font:italic

ref http://tom.me.uk/html-to-css/bold-italic.html Question No: 15 __ ( Marks: 1 ) - Please choose one What is identified by the tag <FRAMESET COLS="20%,60%,20%">? Horizontal frame

Vertical Frame (page 31) Top Frame Bottom Frame

Question No: 16 __ ( Marks: 1 ) - Please choose one Creating your own tags is not possible in HTML but in XML it is possible to create Your own tags.

Page 4: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

True

False Question No: 17 __ ( Marks: 1 ) What is the function of UDP protocol at TCP/IP stack?Give precise answer.

Connectionless transport protocol Question No: 18 ( Marks: 1 ) What tag is used for displaying a border between the frames? - BORDER or FRAMEBORDER – Set this attribute to 0 for not displaying a border between the frames

Question No: 19 ( Marks: 2 ) Suppose, there is an applet at "http://www.vu.edu.pk/demo.class". Write the code to include this applet in your web page. <HTML> <BODY> <APPLET CODE= "http://www.vu.edu.pk/demo.class". width=100 height=200>DEMO</APPLET> </BODY> </HTML> Question No: 20 __ ( Marks: 3 ) Identify the object, property and method in the following: Math.sin(45) Math.PI document.write("Math.sin(45) :"+Math.sin(45)+"<P>"); document.write("Math.PI :" +Math.PI +"<P>"); Question No: 21 __ ( Marks: 5 ) What is a web form? What is its usage in reference to client-server communication? 2+3

A webform on a web page allows a user to enter data that is sent to a server for processing. Webforms

resemble paper forms because internet users fill out the forms using checkboxes, radio buttons, or text

fields.

You are now familiar with the fact that internet presents a two-way communication model, also called theClient-Server Model. In the client server model some data is processed on the client side and certain data is processed by the server on the server side.

Question No: 22 ( Marks: 10 ) Explain the following frame tags? Discuss the usage of these a) <frameset> b) <frame> c) <Noframes> d) <Iframe>

Page 5: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 3)

Question No: 1 __ ( Marks: 1 ) - Please choose one In which protocol, the messages are not deleted from email server. SMTP POP3

IMAP (page 18) ICMP

Question No: 2 ( Marks: 1 ) - Please choose one Which HTML tag is used to define the internal style sheet ? <css> <script > <sheet>

<style> ref http://www.ex-designz.net/test_grade.asp?tid=37

Question No: 3 ( Marks: 1 ) - Please choose one For which one of the following,<MARQUEE ...> tag can work better News headlines

Announcements Sound pulgin Movie controls Ref http://www.htmlcodetutorial.com/_MARQUEE.html

Question No: 4 __ ( Marks: 1 ) - Please choose one Choose the correct HTML code line which left-align the content inside a tablecell. <td leftalign> <td valign="left">

<td align="left"> (page 26) <tdleft>

Question No: 5 __ ( Marks: 1 ) - Please choose one How do you write a conditional statement for executing some statements only if "i" is NOT equal to 5?

Page 6: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

if =! 5 then

if (i != 5) (page 58) if <>5 if (i <> 5)

Question No: 6 ( Marks: 1 ) - Please choose one What is the correct JavaScript syntax to write "Virtual University of Paistan"?

document.write("Virtual University of Paistan ") ("Virtual University of Paistan ") " Virtual University of Paistan " response .write("Vi rtual University of Paistan ")

Question No: 7 __ ( Marks: 1 ) - Please choose one We can divide the Client Server architecture up to:

3 Tier

N -Tier 1 Tier 2 Tier

ref [PPT]

CLIENT SERVER ARCHITECTURE Question No: 8 ( Marks: 1 ) - Please choose one Choose which one is the not the columns of Log files. IP addresses Request (url) Date

Contents (page 136 and 3) Question No: 9 __ ( Marks: 1 ) - Please choose one An address represented by four decimal numbers separated by a period is the

IP (PAGE 7) RIP MAC NON OF THE GIVEN Question No: 10 ( Marks: 1 ) - Please choose one Which operator is used to concatenate two strings?

+ (PAGE 61)

* && & Question No: 11 __ ( Marks: 1 ) - Please choose one Which SQL statement is used to extract data from a database?

Page 7: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

GET (page 83) OPEN SELECT EXTRACT Question No: 12 __ ( Marks: 1 ) - Please choose one Which firewall uses strong user authentication to verify identity of a host attempting to connect to the network? Packet filter firewall Circuit

level firewall Application (PAGE 96) gateway firewall Hybrid firewall

Question No: 13 __ ( Marks: 1 ) - Please choose one In CSS, How do you make each word in a text start with a capital letter? text-transform :capitalize

text-transform: uppercase text:capitalize You can't do that with CSS

REF http://www.ex-designz.net/test_page.asp?tid=37

Question No: 14 __ ( Marks: 1 ) - Please choose one Why we use reset tag in HTML? To remove the text written in Notepad. To remove the text written in between <body> and </body>tag. To remove the text written in between <head> and </head> tag.

To remove the text written in between <form> and </form> tag. Question No: 15 ( Marks: 1 ) - Please choose one http://cs.vu.edu is an example of Two zone domain name

Three zone domain name (page 12) Four zone domain name Five zone domain name

Question No: 16 __( Marks: 1 ) - Please choose one In data link layer, data packets are placed inside

Data frames (page 6) Data boxes Data streams

Page 8: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

None of these

Question No: 17 __ ( Marks: 1 ) What are the two types of twisted pair cables for networking ? Question No: 18 ( Marks: 1 ) What it stands for IIS? Question No: 19 __ ( Marks: 2 ) When does we use the parseFloat() function?

Question No: 20 ( Marks: 3 ) Name the JavaScript function that convert strings to float numbers. How do you give the function a string value to convert to a number?

Question No: 21 __ ( Marks: 5 ) Write your personal profile in a file saving it with the extension of e.g. “abc.js”and then call it in a JavaScript code.

Question No: 22 ( Marks: 10 ) Explain any three of the outside attacks briefly.

MIDTERM EXAMINATION Spring 2009

IT430- E-Commerce (Session - 3)

Question No: 1 __ ( Marks: 1 ) - Please choose one Which one of the following ,divides large network in small logical segments called subnets on basis of IP addresses

Routers (page 16) Bridge None of these Switches

Question No: 2 ( Marks: 1 ) - Please choose one Which one is not included in the networking topologies? Star Topology Bus Topology

Media Topology Ring Topology

Question No: 3 __ ( Marks: 1 ) - Please choose one At line code 5 which of the following Css methods has been applied?

Page 9: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

<html> <head> 1. <style type="text/css"> 2. h3 {font-family: times} 3. p {font-family: courier}

4. p.sansserif {font-family: sans-serif} </style> 5. <Link rel=”stylesheet” type=”text/css” herf=”mystyle.css”> </head> <body> 6. <h3 style=”font-size:40pt”>This is header 3</h3> </body> </html> mystyle.css: h3{ color: red}

Browser default

External style sheet Inline style Internal style sheet Question No: 4 ( Marks: 1 ) - Please choose one Which attribute is used in a tag to control the layout of element? view

css Style Layout

Ref http://www.yourhtmlsource.com/stylesheets/csslayout.html Question No: 5___( Marks: 1 ) - Please choose one What is the correct HTML for making a hyperlink? <a url="http://www.w3schools.com">W3Schools.com</a> <a>http://www.w3schools.com</a>

<a h ref="http ://www.w3schools.com">W3Schools</a> (page 23) <a name="http://www.w3schools.com">W3Schools.com</a>

Page 10: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 6 ( Marks: 1 ) - Please choose one How do you write a conditional statement for executing some statements only if "i" is NOT equal to 5? if =! 5 then

if (i != 5) (repeated) if <>5 if (i <> 5)

Question No: 7 __ ( Marks: 1 ) - Please choose one How many different kind of loops are there in JavaScript? One. The "for" loop only

Two. The "for" loop and the "while" loop Four. The "for" loop, the "while" loop, the "do...while" loop, and the "loop.. .until" loop None of the above

REF http://www.ex-designz.net/test_grade.asp?tid=65

Question No: 8___( Marks: 1 ) - Please choose one What does DTD stand for? Do The Dance. Dynamic Type Definition.

Data Type Definition. (page 76) Direct Type Définition. Question No: 9 ( Marks: 1 ) - Please choose one Which of the following needs human action to execute?

Virus (page 94) Worm Trojan Horse All of these

Question No: 10 __ ( Marks: 1 ) - Please choose one For showing image on web page, save your image at any drive or folder like C:\abc.jpeg is an example of Relative Address

Absolute address None of the given Ref Absolute paths are called that because they refer to the very specific location, including the domain name. The absolute path to a Web element is also often referred to as the UR Question No: 11 __ ( Marks: 1 ) - Please choose one ASP server scripts are surrounded by delimiters, which? <script>.. .</script>

<%...%> <%>...</%> <&>...</&>

ref

Page 11: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

http://www.w3schools.com/asp/asp_syntax.asp Question No: 12 ( Marks: 1 ) - Please choose one This is an example of

Page 12: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

0-tier architecture 1-tier architecture

2-tier architecture n-tier architecture

Question No: 13 __ ( Marks: 1 ) - Please choose one Which protocol is used to set up the dial up connection between RAC and RAS for exchange of data packets?

PPP (page 98) POP3

SMTP FTP Question No: 14 ( Marks: 1 ) - Please choose one Pretty Good Privacy (PGP) is the name of a popular _________system which is available for general public use. Filtering

Cryptographic (page 100) Server Security Question No: 15 ( Marks: 1 ) - Please choose one Intra Business involves only selling of corporate products to consumer.

True (page 2) False Question No: 16 __ ( Marks: 1 ) - Please choose one #00ff00 in HTML indicates

Pure green color (page 23) Pure blue color Pure red color Pure yellow color

Question No: 17 ( Marks: 1 ) What is the function of TCP protocol at TCP/IP stack?Give precise answer. Question No: 18 __ ( Marks: 1 ) What do you say that Cookies can also be used to maintain state between two broken sessions. Justify with solid argument Question No: 19 __ ( Marks: 2 ) What is bandwidth of a network?

Question No: 20 ( Marks: 3 ) What is the purpose of padding? How many types of padding are: Name of these?

Question No: 21 __ ( Marks: 5 ) Write any four essential features and two extra features which should exist in E-Commerce soft wares.

Question No: 22 ( Marks: 10 ) Differentiate the one tier, two tiers, three tiers and four tiers separately with respect to client server architecture.

Page 13: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 2)

Question No: 1 __ ( Marks: 1 ) - Please choose one For which of the following we need to know the classification of E-commerce? Market planning strategy Build Mission statement Management strategy

none Question No: 2 ( Marks: 1 ) - Please choose one Who is making the Web standards? Netscape Internet service providers

The World Wide Web Consortium Microsoft Question No: 3 __ ( Marks: 1 ) - Please choose one When you declare a variable within a function, the variable can only be accessed within that function. When you exit the function, the variable is destroyed. These variables are called

Local Variables Global Variables Local and Global None of the above

Ref http://www.authorpick.net/what-is-variables-in-programming-language/ Question No: 4___( Marks: 1 ) - Please choose one There is a way of describing XML data, how? XML uses a description node to describe data

XML uses a DTD to describe the data (page 75) XML uses XSL to describe data None of these

Page 14: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Ref http://www.dotnetspider.com/questions/ViewQuestion.aspx?QuestionId=6754& Question No: 5 ( Marks: 1 ) - Please choose One which of the following property falls in HTTP?

Stateless (repeated) State full Temporary All of these Question No: 6 ( Marks: 1 ) - Please choose one Choose the correct HTML tag to make a text bold <tbold>

<b> <bld> <bold> Question No: 7 ( Marks: 1 ) - Please choose one What is the default scripting language in ASP? EcmaScri pt JavaScri pt Java

VBScript (page 85) Question No: 8 __ ( Marks: 1 ) - Please choose one Which one of them is not a feature of e-commerce software? catalog display

web hosting (page 92) web services transaction processing Question No: 9 ( Marks: 1 ) - Please choose one When two or more intranets are connected to each other they form a/an ---------- VPN Intranet Internet

Extranet (page 2) Question No: 10 ( Marks: 1 ) - Please choose one Pretty Good Privacy (PGP) is the name of a popular _________system which is available for general public use. Filtering

Cryptographic (page 100) Server Security

Page 15: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 11 __ ( Marks: 1 ) - Please choose one Which one is NOT a valid frame attribute? NORESIZE

ROWS (page 33) FRAMEBORDER BORDER

Question No: 12 ( Marks: 1 ) - Please choose one IP version 6 provides ---------------bits and also contains ----------------------

128, hexadecimal (page 11) 64, hexadecimal 32, binary None of the Above Question No: 13 ___( Marks: 1 ) - Please choose one A JavaScript event is generated when a user -------- . clicks a hyperlink clicks a button enters data in a form

all of the above (page 54) Question No: 14 __ ( Marks: 1 ) - Please choose one Creating your own tags is not possible in HTML but in XML it is possible to create your own tags. True

False Question No: 15 __ ( Marks: 1 ) - Please choose one IP, RIP, and ARP protocols work on Application layer Session layer

Network layer (page 6) Data link layer

Question No: 16 __ ( Marks: 1 ) - Please choose one In the communication between two computers on a network, CRC is calculated at Sender‟s side Receiver‟s side

Both sender and receiver sides Neither on sender nor on receiver side

Ref

Page 16: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

[PPT]

Business Data Communications and Networking

Question No: 17 ( Marks: 1 ) What is the function of ARP protocol at TCP/IP stack?Give precise answer. Question No: 18 __ ( Marks: 1 ) Do you agree or not that in In Java Script we are not provided with certain already defined objects which are ready to use? justify Question No: 19 ( Marks: 2 ) What are the three position style properties? Question No: 20 ( Marks: 3 ) Write at least three rules for writing an XML code. Question No: 21 ( Marks: 5 ) What is the difference between an interpreted and a compiled language? Give one example of each. Question No: 22 __ ( Marks: 10 ) Consider the following code of an XML document and identify where its standard code rules are being applied. You are required to write the identified tag along with its related rule side by side.

<?xml version=“1.0”?> <PlanetsList> <Planet Name=“Mercury”> <Distance>36 million miles</Distance> <Moons>None</Moons> <DayLength> 176 days</DayLength> </Planet> <Planet Name=“Venus”> <Distance>67 million miles</Distance> <Moons>None</Moons> <DayLength>1 17 days</DayLength> </Planet> <Planet Name=“Earth”> <Distance>93 million miles</Distance> <Moons>One</Moons> <DayLength>24 Hours</DayLength> </Planet> </PlanetsList> <BR/>

MIDTERM EXAMINATION

Spring 2009

IT430- E-Commerce (Session - 1)

Question No: 1 ( Marks: 1 ) - Please choose one

<MARQUEE ...> tag creates a ----------

Scrolling display (page 37) Static display

Page 17: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Frame display

Panel Display

Question No: 2 ( Marks: 1 ) - Please choose one

Which of the following is correct syntax to define color in CSS?

body {color: black} body:color=black

{body:color=black(body}

{body;color:black}

http://www.ex-designz.net/test_grade.asp?tid=37

Question No: 3 ( Marks: 1 ) - Please choose one

What does mean by != comparison operator?

Equal to

Not

Equal

Not Equal (page 57)

Question No: 4 ( Marks: 1 ) - Please choose one

How do you write a conditional statement for executing some statements only if "i" is

equal to 5?

if i=5

if i=5 then

if i==5 then

if (i==5) http://www.ex-designz.net/test_grade.asp?tid=65

Question No: 5 ( Marks: 1 ) - Please choose one

Date () is the -------------------- of the date object which provides current date of the system.

method

property

constructor (page 68) Destructor

Question No: 6 ( Marks: 1 ) - Please choose one

What does XML stand for? eXtra Modern Link

X-Markup Language

Page 18: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Extensible Markup Language (page 73) Example Markup Language

http://acronyms.thefreedictionary.com/W3C+XML

Question No: 7 ( Marks: 1 ) - Please choose one

SQL stands for:

Structured Query Language (page 82) System Query Language

Style Query Language

All of these

Question No: 8 ( Marks: 1 ) - Please choose one

IIS stands for:

International Information Service

Internet Information Server (page 84) Internet Information standards

All of these

Question No: 9 ( Marks: 1 ) - Please choose one

The most common way to assign a value to a variable is by using what?

Equals sign (page 53) Name it

CSS

HTML

http://en.wikipedia.org/wiki/Environment_variable

Question No: 10 ( Marks: 1 ) - Please choose one

What is the default scripting language in ASP?

EcmaScript

JavaScript

Java

VBScript (page 84)

Question No: 11 ( Marks: 1 ) - Please choose one

Following are the names of some well known e-commerce software, EXCEPT ----

------- .

Intershop

IBM's Web Sphere Commerce Professional Edition

Microsoft Commerce Server 2002

Microsoft SQL Server 2005 (page 93)

Question No: 12 ( Marks: 1 ) - Please choose one

Which one is NOT a valid frame attribute?

Page 19: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

NORESIZE

ROWS (page 32) FRAMEBORDER

BORDER

Question No: 13 ( Marks: 1 ) - Please choose one

'target' is an attribute of

<INPUT> tag

<A> tag <FRAME> tag

<FRAMESET> tag

http://www.w3schools.com/tags/att_a_target.asp

Question No: 14 ( Marks: 1 ) - Please choose one

Intra Business involves only selling of corporate products to consumer.

True

False (page 1)

Question No: 15 ( Marks: 1 ) - Please choose one

Due to which characteristics, ATM network are covered under E-commerce ?

Exchange of information through computer networks

Internet.

Exchanging of products, services.

None of the above.

Question No: 16 ( Marks: 1 ) - Please choose one

http://cs.vu.edu is an example of

Two zone domain name

Three zone domain name (page 11) Four zone domain name

Five zone domain name

Question No: 17 ( Marks: 1 )

Shortly Explain RIP?

Question No: 18 ( Marks: 1 )

In which layer of OSI model, the data is converted into binary digits or electric pulses?

Page 20: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 19 ( Marks: 2 )

What is common between proxy server and firewall?

Question No: 20 ( Marks: 3 )

What does RAS and RAC stand for in context of virtual private network?

Question No: 21 ( Marks: 5 )

Identify protocol stack used in each layer of OSI model?

Question No: 22 ( Marks: 10 )

Write HTML/JavaScript code to display weekday in a web page. Use getDay()

and an array to write a weekday, and not just a number. Suppose today is

Wednesday, then the page should look like: MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 6)

Solved

Question No: 1 ( Marks: 1 ) - Please choose one

Academic institutions, religious organizations and government using --------------------- e-commerce

classification

► Business-to-Business(B2B)

► Intra Business

► Non Business EC (page 2) ► Business-to-consumer(B2C)

Question No: 2 ( Marks: 1 ) - Please choose one

In which protocol, the messages are not deleted from email server.

► SMTP

► POP3

► IMAP (page 18) ► ICMP

in case of IMAP the message is not deleted in the email server and thus can be reopened from

another location/machine.

Question No: 3 ( Marks: 1 ) - Please choose one

What is the correct HTML tag for adding a background color?

► <background>yellow</background>

► <body bgcolor="yellow"> (page 47) ► <body color="yellow">

► None

Question No: 4 ( Marks: 1 ) - Please choose one

Page 21: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Which HTML tag is used to define an internal style sheet?

► <css>

► <script>

► <style> (Ans) ► <sheet>

reference

http://www.ex-designz.net/test_grade.asp?tid=37 (question no 3)

Question No: 5 ( Marks: 1 ) - Please choose one

What is the correct HTML for making a hyperlink?

► <a href="http://www.w3schools.com">W3Schools</a> ► <a name="http://www.w3schools.com">W3Schools.com</a>

► <a url="http://www.w3schools.com">W3Schools.com</a>

► <a>http://www.w3schools.com</a>

REFERENCE

http://www.w3schools.com/html/html_links.asp

Question No: 6 ( Marks: 1 ) - Please choose one

If we leave out the target attribute in frame tag and link was clicked ,the document loads into the window

► In Same page (repeated ) ► In other blank page.

► To display browser error.

► All of the options.

Question No: 7 ( Marks: 1 ) - Please choose one

What does mean by != comparison operator?

► Equal to

► Not

► Equal

► Not Equal (page 58)

Question No: 8 ( Marks: 1 ) - Please choose one

What does the string. match (“abc”) object do?

► Concatenates the “abc” word to other “abc” words

► Matches the “abc” words with other “abc” words ► It does replacement of abc word with other words

► All of the above

Page 22: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

ref

http://www.regular-expressions.info/reference.html

Question No: 9 ( Marks: 1 ) - Please choose one

var txt="Hello World!" Document. Write (txt.length), it would return the length as.

► 10

► 11

► 12 ► 13

REFERENCE

http://www.w3schools.com/js/js_obj_string.asp

Question No: 10 ( Marks: 1 ) - Please choose one

Which of the following property falls in HTTP?

►Stateless (Ans) ► Stateful

► Temporary

► All of these

Question No: 11 ( Marks: 1 ) - Please choose one

Which one of the following certifies the binding between public key and its owner.

►CA (page101) ► KDC

► TLS

► Firewall

Question No: 12 ( Marks: 1 ) - Please choose one

Cyclical Redundancy Check (CRC), takes place in which layer of OSI Model.

► Session Layer

► Transport Layer

► Network Layer

► Data link layer (page 6)

Question No: 13 ( Marks: 1 ) - Please choose one

How can you convert information consisting of comma separated values into an array?

► txtArray = txt.indexOf(',');

► txtArray = txt.split(','); page 70 ► txtArray = txt.trim(',');

► txtArray = txt.substring(',');

Question No: 14 ( Marks: 1 ) - Please choose one

Page 23: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

The control statement on a while loop is tested

► before each time through the loop ► after each time through the loop

► once at the start

► once at the end

Ref

http://en.wikipedia.org/wiki/While_loop

Question No: 15 ( Marks: 1 ) - Please choose one

Which SQL statement is used to delete data from a database?

► DELETE (page 83) ► COLLAPSE

► REMOVE

► DISCARD

Question No: 16 ( Marks: 1 ) - Please choose one

A program that performs a specific function such as creating invoices/bills or processing payment received

from customers is called a/an ---------------.

► Middleware

► Web Service

► CRM Software

► Appplication Program (page 92)

Question No: 17 ( Marks: 1 ) - Please choose one

Which firewall uses strong user authentication to verify identity of a host attempting to connect to the

network?

► Packet filter firewall

► Circuit level firewall

► Application gateway firewall (page 96) ► Hybrid firewall

Question No: 18 ( Marks: 1 ) - Please choose one

In what form are style rules presented?

► Selector { property: value } ► selector { property= value }

► selector ( property: value )

► selector ( property= value )

Question No: 19 ( Marks: 1 ) - Please choose one

Why we use reset tag in HTML?

► To remove the text written in Notepad.

► To remove the text written in between <body> and </body>tag.

Page 24: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► To remove the text written in between <head> and </head> tag.

► To remove the text written in between <form> and </form> tag.

Reference

http://www.echoecho.com/htmlforms13.htm

Question No: 20 ( Marks: 1 ) - Please choose one

When data moves upward in the OSI stack it is called

► Encapsulation

► De-encapsulation (page 5) ► Synchronization

► None of these

Question No: 21 ( Marks: 2 )

What does PPTP stand for?

Ans (page98) PPTP stands for point to point transfer protocol.

Question No: 22 ( Marks: 2 )

What are the keywords to define a variable and a function in JavaScript?

“var” is the keyword used to define a variable in Javascript

e.g var a; “function” is the keyword to define a function in javascript

e.g function myfunction(){ // some code }

Question No: 23 ( Marks: 3 )

Identify the object, property and method in the following:

Math.sin(45)

Math.PI

Ans: Math is the object in above case

PI is the property of Math object

Sin() is the method of Math object

Question No: 24 ( Marks: 3 )

Performance of web servers can be evaluated mainly on the basis of two factors. What are they?

Ans:

Performance of web sever Performance of web servers can be evaluated mainly on the basis of two factors: Throughput, which is the number of http requests that a particular server hardware and software can handle in the unit time; and Response time, which is the amount of time a web server requires to process one request. Web server hardware architectures Question No: 25 ( Marks: 5 )

Write the code for a web page displaying a button named "Testing". After clicking that button an alert

should be displayed saying "The test is successful".

<html>

<head>

<script type="text/javascript">

Page 25: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

function sndAlert() { window.alert("The test is successful!!!"); } </script>

</head>

<body>

<FORM

NAME="form1">

<INPUT TYPE="Button" name="showAlert" VALUE="Show Alert" onclick="sndAlert()">

</FORM>

</body>

</html>

Question No: 26 ( Marks: 5 )

What is the difference between an interpreted and a compiled language? Give one example of each.

Ans:

In a compiled language we compile to code or convert into machine language using a software called

compiler as we can case C++

Example C++

with interpret language we interpret the code (line by line) at run time using a program called

interpreter browser is an interpreter.

Example Browser…

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 6)

Solved

Question No: 1 ( Marks: 1 ) - Please choose one

MAC stand for

► Media Access Control ( page 13) ► Media Access Consortium

► Member of Asian Community

Page 26: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► None of these

Question No: 2 ( Marks: 1 ) - Please choose one

Choose the correct HTML tag for the largest heading

► <head>

► <h1> (page 20) ► <Heading>

► <h6>

Question No: 3 ( Marks: 1 ) - Please choose one

Which of the following tags are used for embedding sound files into HTML code?

► <A href=“song.wav”>

► <EMBED SRC="Skylar.MP3">

► <A href=“song.wav”> and <EMBED SRC="Skylar.MP3"> (page 37) ► None of these

Do correction in all midterm file J

Question No:44 answer is 3rd

Question No: 4 ( Marks: 1 ) - Please choose one

Which of the following is NOT an advantage of CSS ?

► Works on version 4 browsers or newer ► Define the look of your pages in one place

► Easily change the look

► Implement same formatting each time tag is used.

Advantages

1) Improved Search Engine Results

2) Sites Load Faster

3) Design Separated from Content:

4) Displayed on Various Media

5) Compatibility with Browsers

Browser inserts a line break before the <DIV> tag and after the </DIV> end tag.

They are used when you want to apply a specific style to a number of different tags and sections

throughout the document

Question No: 5 ( Marks: 1 ) - Please choose one

Which of the following is correct line to add separated css file with name xxxx.css?

► <link scr=stylesheet href="/xxxx.css" type="text/css">

► <link rel=stylesheet href="/xxxx.css" type="text/css"> (page 77)

► <style rel=stylesheet href="/xxxx.css" type="text/css">

► <link rel=stylesheet scr="xxxx.css" type="text/css">

Question No: 6 ( Marks: 1 ) - Please choose one

Which of the following is correct syntax to define color in CSS?

► body {color: black} (page 77)

► body:color=black

► {body:color=black(body}

Page 27: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► {body;color:black}

Question No: 7 ( Marks: 1 ) - Please choose one

Inside which of the following HTML element do we put the JavaScript?

► <script> (page 58)

► <js>

► <javascript>

► <scripting>

Question No: 8 ( Marks: 1 ) - Please choose one

JavaScript is mainly a ___________ language.

► Server Side Scripting

► Cross Side Scripting

► Client Side Scripting (page79)

► both Cross and Server Side Scripting

Question No: 9 ( Marks: 1 ) - Please choose one

Which one is the responsible to manage “Internal processes”?

► E-business

► E-commerce

► E-marketing

► All of the given

Question No: 10 ( Marks: 1 ) - Please choose one

The first control statement in a for loop usually

► sets the termination condition

► increments a counter

► creates a control variable

► none of the above

Question No: 11 ( Marks: 1 ) - Please choose one

You define a method using

► obj.method

► obj.method[]

► obj.method() (PAGE 58)

► obj-method

Question No: 12 ( Marks: 1 ) - Please choose one

What is the default scripting language in ASP?

► EcmaScript

► JavaScript

► Java

► VBScript (PAGE 85)

Question No: 13 ( Marks: 1 ) - Please choose one

Following are malicious programs EXCEPT ----------------- .

Page 28: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► Back doors

► Trojan Horses

► Firewalls (PAGE 94)

► Worms

Question No: 14 ( Marks: 1 ) - Please choose one

Outside attacks on a network include the following, EXCEPT --------------- .

► Password attack

► DoS

► Back doors ( PAGE 95)

► IP spoofing

Question No: 15 ( Marks: 1 ) - Please choose one

At which layer of the OSI model the circuit level firewall operates?

► Application layer

► Presentation layer

► Network layer

► Transport layer (PAGE 96)

Question No: 16 ( Marks: 1 ) - Please choose one

The process of scrambling a message with the help of a key is called -------------- .

► Cryptography

► Filtering

► Transposition

► Encryption (PAGE 100)

The process of scrambling a message with the help of a key is called Encryption.

Question No: 17 ( Marks: 1 ) - Please choose one

In a ring network, every device has exactly ______ neighbors for communication purpose.

► more than two

► Two (PAGE 14)

► Four

► None of these

Question No: 18 ( Marks: 1 ) - Please choose one

What is identified by the tag <FRAMESET COLS="20%,60%,20%">?

► Horizontal frame ► Vertical Frame (PAGE 31) ► Top Frame

► Bottom Frame

Question No: 19 ( Marks: 1 ) - Please choose one

Why we use reset tag in HTML?

► To remove the text written in Notepad.

► To remove the text written in between <body> and </body>tag.

► To remove the text written in between <head> and </head> tag.

► To remove the text written in between <form> and </form> tag. (PAGE 27)

Question No: 20 ( Marks: 1 ) - Please choose one

Page 29: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Network Interface Card is operated at

► Application layer

► Session layer

► Network layer

► Datalink layer (PAGE 6)

Question No: 21 ( Marks: 2 )

What value will be printed after executing the following statement in JavaScript:

document.write( Math.pow(3, 2) ); document.write("Math.pow(2,3) :"+Math.pow(2,3)+"<P>"); Question No: 22 ( Marks: 2 )

What is a web server?

ANSWER:

Web server web server is a machine that serves up the web page requests of a client on the internet. It is a combination of hardware and software. Decision as regards the type of a web server is largely dependent on the volume and type of web activities. So, transaction processing sites generating dynamic pages with high traffic volumes would need web server software that is more efficient and can easily be upgraded.

Question No: 23 ( Marks: 3 )

To calculate the area of a circle the formula pi r squared is used. How would you code it in JavaScript?

<html>

<script type="text/javascript">

var radius,area;

radius = 10;

area = Math.PI*Math.pow(radius,2);

document.write("Area of circle with radius 10 is " + area );

</script>

</html>

Question No: 24 ( Marks: 3 )

Name four commonly used web server operating systems. (PAGE 91)

Commonly used web server operating systems are Microsoft Windows NT Server, Microsoft

Windows 2000 Advanced Server, Microsoft.NET Server, Linux or Unix based operating systems

such as Solaris.

Question No: 25 ( Marks: 5 )

Write the types of firewalls. Only names? Explain these briefly

Packet filter firewall

It uses a set of rules to determine whether outgoing or incoming data packets are allowed to pass through

the firewall.

Page 30: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Circuit level firewall

It is quite similar to the packet filter firewall. It also works on the basis of a set of rules for filtering packets

but operates at the transport layer of the OSI Model so has greater functionality.

Application gateway firewall

It operates at application layer of the OSI Model. It uses strong user authentication to verify identity of a

host attempting to connect to the network using application layer protocols such us FTP. In contrast to

packet filter firewall, it filters the requests rather than packets entering/leaving the network. It can block

any outgoing HTTP or FTP requests.

Question No: 26 ( Marks: 5 )

Write the JavaScript code which will display the following in a web page using a FOR loop:

The number is 0

The number is 1

The number is 2

The number is 3

The number is 4

The number is 5

<html>

<script type="text/javascript">

var no;

for (no=0; no<6 ; no++)

{

document.write("The number is " + no + "<br>" );

}

</script>

</html>

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 6)

Solved

Question No: 1 (Marks: 1) - Please choose one

For which of the following we need to know the classification of E-commerce?

► Market planning strategy

► Build Mission statement

► Management strategy

► none (not sure )

Page 31: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 2 ( Marks: 1 ) - Please choose one

Switch is a device that joins multiple computers together within one local area network (LAN).

► True (page 4)

► False

Question No: 3 ( Marks: 1 ) - Please choose one

In which protocol, the messages are not deleted from email server.

► SMTP

► POP3

► IMAP (page 18)

► ICMP

Question No: 4 ( Marks: 1 ) - Please choose one

How can you open a link in a new browser window?

► <a href="/url" target="new">

► <a href="/url" target="_blank"> (page 33)

► <a href="/url" new>

► None of these

Question No: 5 ( Marks: 1 ) - Please choose one

What does the Target= “_top” tag perform?

► Loads the new page into the same frame

► Loads the new page into the entire window (page 33)

► Loads the new page into a new browser window

► All of the above

Page 32: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 6 ( Marks: 1 ) - Please choose one

Which attribute is used in a tag to control the layout of element?

► view

► css (PAGE 39)

► Style

► Layout

Question No: 7 ( Marks: 1 ) - Please choose one

Choose the correct HTML code line which left-align the content inside a tablecell.

► <td leftalign>

► <td valign="left">

► <td align="left">(PAGE 26)

► <tdleft>

Question No: 8 ( Marks: 1 ) - Please choose one

Where in an HTML document is the correct place to refer to an external style sheet?

► In the <body> section

► At the end of the document

► In the <head> section (PAGE 39)

► At the top of the document

Question No: 9 ( Marks: 1 ) - Please choose one

When you declare a variable within a function, the variable can only be accessed within that function.

When you exit the function, the variable is destroyed. These variables are called

► Local Variables

► Global Variables

► Local and Global

► None of the above

ref

Page 33: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

http://en.wikipedia.org/wiki/Local_variable

Question No: 10 ( Marks: 1 ) - Please choose one

Constructor is defined as the initializing function used to create…........

► Instance of object

► Copy of object

► Instance / copy of object (page 69)

► Shallow copy of object

Question No: 11 ( Marks: 1 ) - Please choose one

What does XML stand for?

► eXtra Modern Link

► X-Markup Language

► eXtensible Markup Language (page 74)

► Example Markup Language

Question No: 12 ( Marks: 1 ) - Please choose one

For which of following purpose the Firewall is used ?

► Efficient working

► Protection against security attacks (page 95)

► Networking purpose

► None of these

Question No: 13 ( Marks: 1 ) - Please choose one

PPP stands for

► Point to Point Protocol (page 98)

► Post to Post Protocol

Page 34: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► Point to Post Protocol

► None of these

Question No: 14 ( Marks: 1 ) - Please choose one

Which of the following is NOT processed on the client side?

► Cookies

► JavaScript

► CGI scripts (page 79)

► Applets

Question No: 15 ( Marks: 1 ) - Please choose one

Firewall is used to

I - examine the data entering the network

II - examine the data leaving the network

III - filter the data according to certain rules

► I, II and III (page 96)

► I only

► I and III only

► I and II only

Question No: 16 ( Marks: 1 ) - Please choose one

Which firewall uses strong user authentication to verify identity of a host attempting to connect to the

network?

► Packet filter firewall

► Circuit level firewall

► Application gateway firewall (page 96)

► Hybrid firewall

Question No: 17 ( Marks: 1 ) - Please choose one

Page 35: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Bus networks is same as the system bus of a computer.

► True

► False (page 14)

Question No: 18 ( Marks: 1 ) - Please choose one

In Style Sheets, How do you add a background color for all "<h1>" elements?

► all.h1 {background-color:#FFFFFF}

► h1.all {background-color:#FFFFFF}

► h1 {background-color:#FFFFFF}(page 47)

► h1 {bgcolor:#FFFFFF}

Question No: 19 ( Marks: 1 ) - Please choose one

How do you make each word in a text start with a capital letter?

► text-transform:capitalize

► text-transform:first_capitalize.

► Cann‟t be possible with CSS

► text-transform:uppercase

http://www.ex-designz.net/test_grade.asp?tid=37 (question 24)

Question No: 20 ( Marks: 1 ) - Please choose one

MAC address is written in

Binary form 0-1►

Decimal form 0-9►

Hexadecimal form 0-f► (page 13)

None of these►

Page 36: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 21 ( Marks: 2 )

What is a web server?

Answer : Web server – machine that services internet request.

Web server – machine that services internet request

web server is a machine that serves up the web page requests of a client on the internet. It is a combination

of hardware and software. Decision as regards the type of a web server is largely dependent on the volume

and type of web activities. So, transaction processing sites generating dynamic pages with high traffic

volumes would need web server software that is more efficient and can easily be upgraded.

Question No: 22 ( Marks: 2 )

What does „parseFloat(string)‟ And NaN mean?

The parseFloat() function parses a string and returns a floating point number. This function

determines if the first character in the specified string is a number. If it is, it parses the string until it

reaches the end of the number, and returns the number as a number, not as a string.

The NaN property represents "Not-a-Number" value. This property indicates that a value is not a

legal number.

Question No: 23 ( Marks: 3 )

Write at least three rules for writing an XML code.

Rules for writing an XML code

-All elements must be properly nested <outer><inner>content</inner></outer>

-All attribute values must be quoted <FRIES SIZE=“LARGE”>

-All elements with empty content must be identified by ending in />

Question No: 24 ( Marks: 3 )

How „Man in The middle Attacks‟ operates?

Man in the middle attacks

In it the attacker is able to monitor, capture and control data between sending and receiving

machines. He may apply IP address spoofing technique to divert the packets to its machine, then

modify the packets and resend the misleading information to the actual client. Another form of man-

in-the-middle attack is where the hacker is able to substitute the IP address of a genuine web site

with the IP address of his own web site due to some security hole in the software that runs on a

domain name server. A client would think that he is communicating or receiving the information

form a genuine web site, though it would not be the case actually.

Page 37: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 25 ( Marks: 5 )

Write the code for a web page displaying a button named "Testing". After clicking that button an alert

should be displayed saying "The test is successful".

<html>

<head>

<script type="text/javascript">

function sndAlert()

{

window.alert("The test is successful!!!");

}

</script>

</head>

<body>

<FORM

NAME="form1">

<INPUT TYPE="Button" name="showAlert" VALUE="Show Alert"

onclick="sndAlert()">

</FORM>

</body>

</html>

Question No: 26 ( Marks: 5 )

Differentiate between front end and back end.

Answer: Front end consists of that information which is visible to the user and he can interact with

the same through some interface. The back end comprises that information which resides on the

Page 38: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

server side and is used to create certain dynamic results for the user. It would include different

programs or scripts that may be developed in different languages/tools. Backend is mainly used for

two purposes – for querying with the databases and for the maintenance of state. We can use

different tools (ASP, JSP etc.) for that purpose depending upon their respective

advantages/disadvantages.

MIDTERM EXAMINATION

Spring 2009

IT430- E-Commerce (Session - 4)

Question No: 1 ( Marks: 1 ) - Please choose one

In datalink

layer, data packets are placed inside

► Data frames (page 6)

► Data boxes

► Data streams

► None of these

Question No: 2 ( Marks: 1 ) - Please choose one

Which of

these is the correct HTML code for creating a reset button?

► <input type =”button” name=”reset” value=”reset”>

► <input type=”resetButton” value=”Clear”>

► <input type=”reset” value=”reset”> (page 26)

► <input type=”button” name=”reset” value=”clear”>

Question No: 3 ( Marks: 1 ) - Please choose one …..tag is

used into …….tag because a row contains multi cells and to fill up these cells with data.

► TD…… TR

► TR…… TD (page 25)

► TD…… TG

► TG…… TR

Question No: 4 ( Marks: 1 ) - Please choose one

Page 39: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Individuals

who write programs or manipulate technologies to gain unauthorized access to computers and networks are

--------------- .

► administrators

► experts

► hackers (page 54)

► coders

Question No: 5 ( Marks: 1 ) - Please choose one

Which tag is

used for the hidden fields?

► <FIELD>

► <TEXT>

► <INPUT> page 88

► <HIDDEN> <INPUT TYPE= "HIDDEN" NAME= "Shirt1" VALUE="25">

Question No: 6 ( Marks: 1 ) - Please choose one

What is a

correct way of referring to a stylesheet called "mystyle.xsl" ?

► <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

► <link type="text/xsl" href="mystyle.xsl" />

► <stylesheet type="text/xsl" href="mystyle.xsl" />

► <?stylesheet type="text/xsl" href="mystyle.xsl" ?> page 39

<Link Rel="stylesheet" Type="text/css" href="mystyles.css">

Question No: 7 ( Marks: 1 ) - Please choose one

Which of them

is NOT a predefined object?

► Document

► Date (repeated)

► Loop

► Array

Question No: 8 ( Marks: 1 ) - Please choose one

Which of

these is not a comparison operator?

► <

► >

► = (repeated)

Page 40: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► !=

Question No: 9 ( Marks: 1 ) - Please choose one

Var d =

new date() Which of the following is correct about the d variable?

► instance of new

► instance of Date() method

► instance of Date object (repeated)

► Simple Variable

Question No: 10 ( Marks: 1 ) - Please choose one When you

declare a variable within a function, the variable can only be accessed within that function. When you exit the

function, the variable is destroyed. These variables are called

► Local Variables (repeated)

► Global Variables

► Local and Global

► None of the above

Question No: 11 ( Marks: 1 ) - Please choose one Which of the

following , is condition part of given For loop

for (i = 0; i <= 5; i++). ► i=0.

► i++.

► i<=5.

► (i = 0; i <= 5; i++).

Question No: 12 ( Marks: 1 ) - Please choose one

What is the

correct JavaScript syntax to write "Virtual University of Paistan"?

► document.write("Virtual University of Paistan ")

► ("Virtual University of Paistan ")

► " Virtual University of Paistan "

► response.write("Virtual University of Paistan ")

Question No: 13 ( Marks: 1 ) - Please choose one Which of the

following is NOT valid HTML code line?

► <frameset rows="16%,84%">

► <frameset columns="16%,84%">

► <frameset cols="100,150">

► <frameset cols=”50%,50%” rows=”16%,84%”>

Page 41: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Ref

http://www.academictutorials.com/answers.asp?id=1

Question No: 14 ( Marks: 1 ) - Please choose one CSS is a

breakthrough in Web design because it allows developers to control the---------

► Processing speed on client side

► Data grid view on client side

► Style and layout of home page.

► Style and layout of multiple Web pages (repeated)

Question No: 15 ( Marks: 1 ) - Please choose one Which HTML

tag is used to define an internal style sheet?

► <css>

► <script>

► <style> (repeated)

► <sheet>

Question No: 16 ( Marks: 1 ) - Please choose one

What is the

correct HTML tag for adding a background color?

► <background>yellow</background>

► <body bgcolor="yellow"> (repeated)

► <body color="yellow">

► None

Question No: 17 ( Marks: 1 )

What does this

mean?

padding-right

Question No: 18 ( Marks: 1 )

Do you agree

or not that using Cascading Style Sheets one can apply an image to sections of one‟s page or even to

individual words.

Page 42: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 19 ( Marks: 2 )

Suppose, there

is an applet at "http://www.vu.edu.pk/demo.class". Write the code to include this applet in your web page.

<APPLET CODE= “http://www.vu.edu.pk/demo.class” width=100 height=200> DEMO </APPLET>

Question No: 20 ( Marks: 3 ) What do you

think, is there any difference between Static and Dynamic IP Address assignment? Discuss.

Question No: 21 ( Marks: 5 )

What is

cryptography? What techniques are used for cryptography?

Question No: 22 ( Marks: 10 ) Analyze the

following given code showing some Cascading Style Sheets tags and explain its lines one by one.

<html>

<head>

<style type="text/css">

h1 {text-decoration: overline}

h2 {text-decoration: line-through}

h3 {text-decoration: underline}

a {text-decoration: none}

</style>

</head>

<body>

<h1>This is header 1</h1>

<h2>This is header 2</h2>

<h3>This is header 3</h3>

<p><a href="http://www.w3schools.com/default.asp">This is a link</a></p>

</body>

</html>

Page 43: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

MIDTERM EXAMINATION

Spring 2009

IT430- E-Commerce (Session - 4)

Question No: 1 ( Marks: 1 ) - Please choose one

In datalink layer, data packets are placed inside

► Data frames

► Data boxes

► Data streams

► None of these

Question No: 2 ( Marks: 1 ) - Please choose one

Which of these is the correct HTML code for creating a reset button?

► <input type =”button” name=”reset” value=”reset”>

► <input type=”resetButton” value=”Clear”>

► <input type=”reset” value=”reset”>

► <input type=”button” name=”reset” value=”clear”>

Question No: 3 ( Marks: 1 ) - Please choose one

Page 44: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

…..tag is used into …….tag because a row contains multi cells and to fill up these cells with data.

► TD…… TR

► TR…… TD

► TD…… TG

► TG…… TR

Question No: 4 ( Marks: 1 ) - Please choose one

Individuals who write programs or manipulate technologies to gain unauthorized access to computers and

networks are --------------- .

► administrators

► experts

► hackers

► coders

Question No: 5 ( Marks: 1 ) - Please choose one

Which tag is used for the hidden fields?

► <FIELD>

► <TEXT>

► <INPUT>

Page 45: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► <HIDDEN>

Question No: 6 ( Marks: 1 ) - Please choose one

What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

► <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

► <link type="text/xsl" href="mystyle.xsl" />

► <stylesheet type="text/xsl" href="mystyle.xsl" />

► <?stylesheet type="text/xsl" href="mystyle.xsl" ?>

Question No: 7 ( Marks: 1 ) - Please choose one

Which of them is NOT a predefined object?

► Document

► Date

► Loop

► Array

Question No: 8 ( Marks: 1 ) - Please choose one

Which of these is not a comparison operator?

► <

► >

► =

Page 46: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► !=

Question No: 9 ( Marks: 1 ) - Please choose one

Var d = new date()

Which of the following is correct about the d variable?

► instance of new

► instance of Date() method

► instance of Date object

► Simple Variable

Question No: 10 ( Marks: 1 ) - Please choose one

When you declare a variable within a function, the variable can only be accessed within that function. When you

exit the function, the variable is destroyed. These variables are called

► Local Variables

► Global Variables

► Local and Global

► None of the above

Question No: 11 ( Marks: 1 ) - Please choose one

Which of the following , is condition part of given For loop

for (i = 0; i <= 5; i++).

► i=0.

► i++.

► i<=5.

► (i = 0; i <= 5; i++).

Page 47: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 12 ( Marks: 1 ) - Please choose one

What is the correct JavaScript syntax to write "Virtual University of Paistan"?

► document.write("Virtual University of Paistan ")

► ("Virtual University of Paistan ")

► " Virtual University of Paistan "

► response.write("Virtual University of Paistan ")

Question No: 13 ( Marks: 1 ) - Please choose one

Which of the following is NOT valid HTML code line?

► <frameset rows="16%,84%">

► <frameset columns="16%,84%">

► <frameset cols="100,150">

► <frameset cols=”50%,50%” rows=”16%,84%”>

Question No: 14 ( Marks: 1 ) - Please choose one

CSS is a breakthrough in Web design because it allows developers to control the---------

► Processing speed on client side

► Data grid view on client side

► Style and layout of home page.

Page 48: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► Style and layout of multiple Web pages

Question No: 15 ( Marks: 1 ) - Please choose one

Which HTML tag is used to define an internal style sheet?

► <css>

► <script>

► <style>

► <sheet>

Question No: 16 ( Marks: 1 ) - Please choose one

What is the correct HTML tag for adding a background color?

► <background>yellow</background>

► <body bgcolor="yellow">

► <body color="yellow">

► None

Question No: 17 ( Marks: 1 )

What does this mean?

padding-right

adds space to the right of the content

Question No: 18 ( Marks: 1 )

Do you agree or not that using Cascading Style Sheets one can apply an image to sections of one‟s

Page 49: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

page or even to individual words.

YES! I AGREE

Question No: 19 ( Marks: 2 )

Suppose, there is an applet at "http://www.vu.edu.pk/demo.class". Write the code to include this applet in

your web page.

<APPLET CODE= “http://www.vu.edu.pk/demo.class” width=100 height=200> DEMO </APPLET>

Question No: 20 ( Marks: 3 )

What do you think, is there any difference between Static and Dynamic IP Address assignment? Discuss.

A static IP address is an address that does not change over time unless changed manually. It is used when you need the IP address or network location to remain the same consistently. A good example of this is for a web server. If you go to www.google.com you are really going to the IP address of 66.102.7.99. If this were to change suddenly you would not be able to get to Google unless you knew the new IP address or until Google updated their DNS records.

A Dynamic IP address is an address that keeps on changing. It is mostly used when having a consistent IP address is not necessary. An example of this would be the IP address your ISP (internet service provider) assigns you when you log on to the internet. You must have an IP address to surf the web but once you disconnect you loose that address. Then the next time you sign on you are assigned a new one. This is done using DHCP.

Question No: 21 ( Marks: 5 )

What is cryptography? What techniques are used for cryptography?

Page 50: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Cryptography is the technique of converting a message into unintelligible or non-understandable form such

that even if some unauthorized or unwanted person intercepts the message he/she would still not be able to

make any sense out of it. Cryptography is thousands of years old.

Techniques used for cryptography Substitution In substitution we replace each letter in the message with

another to make the message non-understandable. For example, each letter “a” in the message can be

replaced with letter “d” and letter “b” with letter “e” and so on. Transposition It is based on scrambling the

characters in a message. A transposition system may first write a message into a table row by row then the

message can be read and rewritten column by column to make it scrambled.

Question No: 22 ( Marks: 10 )

Analyze the following given code showing some Cascading Style Sheets tags and explain its lines one by one.

<html>

<head>

<style type="text/css"> // Definition of internal style sheet

h1 {text-decoration: overline} // Defines a line above the text

h2 {text-decoration: line-through} // Defines a line through the text

h3 {text-decoration: underline} // Defines a line below the text

a {text-decoration: none} // Defines a normal text. This is default

</style> // end of internal style sheet

</head>

<body>

<h1>This is header 1</h1>

<h2>This is header 2</h2>

<h3>This is header 3</h3>

<p><a href="http://www.w3schools.com/default.asp">This is a link</a></p>

</body>

</html>

Page 51: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 5)

Question No: 1 ( Marks: 1 ) - Please choose one

Network addresses 128--- 191 range belongs to which of the following class networks?

► A

► B (page 10)

► C

► E

Question No: 2 ( Marks: 1 ) - Please choose one

Which of the following is true for Class A:

► Network 01 byte and 03 hosts (page 10)

► Network 02 bytes and 02 hosts

► Network 03 bytes and 01 host

Page 52: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► None of these

Question No: 3 ( Marks: 1 ) - Please choose one

Which one is not included in the networking topologies?

► Star Topology

► Bus Topology

► Media Topology (page 14)

► Ring Topology

Question No: 4 ( Marks: 1 ) - Please choose one

What is the correct HTML for making a hyperlink?

► <a name="http://www.vu.edu.pk”>Virtual university</a>

► <a href=" http://www.vu.edu.pk "> Virtual university </a> (page 23)

► <a>http://www. vu.edu.pk </a>

► <a url="http://www. vu.edu.pk "> Virtual university of pakistan</a>

Question No: 5 ( Marks: 1 ) - Please choose one

What is the correct HTML for making a text input field?

► <textinput type="text">

► <input type="text"> (page 27)

► <input type="textfield">

► <textfield>

Page 53: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 6 ( Marks: 1 ) - Please choose one

If we leave out the target attribute in frame tag and link was clicked ,the document loads into the window

► In Same page (page 37)

► In other blank page.

► To display browser error.

► All of the options.

Question No: 7 ( Marks: 1 ) - Please choose one

Where in an HTML document is the correct place to refer to an external style sheet?

► In the <body> section

► At the end of the document

► In the <head> section (repeated )

► At the top of the document

Question No: 8 ( Marks: 1 ) - Please choose one

How do you write a conditional statement for executing some statements only if "i" is equal to 5?

► if i=5

► if i=5 then

► if i==5 then

► if (i==5)

Page 54: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

ref

http://www.ex-designz.net/test_page.asp?tid=65

Question No: 9 ( Marks: 1 ) - Please choose one

Which of the following is used to get remote access of any computer on a network?

► Trojan Horse

► Backdoor

► Virus

► All of these (page 94)

Question No: 10 ( Marks: 1 ) - Please choose one

PPP stands for

► Point to Point Protocol (repeated )

► Post to Post Protocol

► Point to Post Protocol

► None of these

Question No: 11 ( Marks: 1 ) - Please choose one

JavaScript is mainly a ___________ language.

► Server Side Scripting

► Cross Side Scripting

► Client Side Scripting (page 79)

► both Cross and Server Side Scripting

Question No: 12 ( Marks: 1 ) - Please choose one

Page 55: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Inside which HTML element do we put the JavaScript?

► <scripting>

► <javascript>

► <script> (page 57)

► <js>

Question No: 13 ( Marks: 1 ) - Please choose one

a++; is the same as which of the following?

► a=a*1;

► a=a+2;

► a=1+2;

► a=a+1;

ref

http://www.academictutorials.com/answers.asp?id=6

Question No: 14 ( Marks: 1 ) - Please choose one

If a web server is bombarded with thousands of HTTP requests, that would be an example of ---------------.

► sniffing

► password attack

► man in the middle attack

► denial of service attack (page 95)

Question No: 15 ( Marks: 1 ) - Please choose one

Page 56: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Outside attacks on a network include the following, EXCEPT --------------- .

► Password attack

► DoS

► Back doors (page 95)

► IP spoofing

Question No: 16 ( Marks: 1 ) - Please choose one

Digital signature uses --------- .

► Symmetric cryptography

► Private key cryptography

► Public key cryptography

► Hash function

ref

http://www.digistamp.com/signature.htm

http://ecommerce.hostip.info/pages/271/Cryptography-Public-Private-Key.html

Question No: 17 ( Marks: 1 ) - Please choose one

In star topology, If hub fails, the entire network also fails.

► True

► False

ref

http://www.exforsys.com/tutorials/networking/star-topology.html

Page 57: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 18 ( Marks: 1 ) - Please choose one

Which one is the correct CSS syntax?

► h1 {font-size:72pt}

► h1:font-size=72pt

► {h1:font-size=72pt}

► {h1;font-size:72pt}

ref

http://uk.answers.yahoo.com/question/index?qid=20100308120234AAPKmAf

Question No: 19 ( Marks: 1 ) - Please choose one

In CSS, How do you make each word in a text start with a capital letter?

► text-transform:capitalize

► text-transform:uppercase (correct )

► text:capitalize

► You can't do that with CSS

REFERENCE

http://www.ex-designz.net/test_grade.asp?tid=37 (question 24 in this link )

Question No: 20 ( Marks: 1 ) - Please choose one

Which of the following is the default alignment in HTML?

► Left

► Center

► Right

► None

REFERENCE

Page 58: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

align = left|center|right|justify|char [CI]

This attribute specifies the alignment of data and the justification of text in a cell. Possible values:

left: Left-flush data/Left-justify text. This is the default value for table

data.

center: Center data/Center-justify text. This is the default value for table

headers.

right: Right-flush data/Right-justify text.

justify: Double-justify text.

char: Align text around a specific character. If a user agent doesn't

support character alignment, behavior in the presence of this value is unspecified.

Question No: 21 ( Marks: 2 )

What is Term „Catalog Display‟ means? (page 92)

A Static catalog is a simple list written in HTML. One has to edit the HTML code to

change it. A dynamic catalog stores information about items in a database usually on a

different computer accessible by the web server. It can provide photos, detailed

description and search facility about the availability of items.

Question No: 22 ( Marks: 2 )

What is meant by a constructor? (page 69)

It is initializing function used to create instance of an object. It is after the name of the object whose

constructor it is.

Question No: 23 ( Marks: 3 )

What is meant by „Shopping Cart‟ in context of e commerce? (page 92)

shopping cart was used wherein the user had to remember and type certain information. It is now

replaced by electronic shopping cart/basket that keeps record of the items the customer has selected

and allows customers to view the details of the items selected. The customer can add new items or

remove items. To order an item, a customer simply clicks at that item option. All details of an item,

Page 59: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

including its price, product no. and order identifying information are stored automatically in the

cart.

Question No: 24 ( Marks: 3 )

We have an array named my Array where this sentence is stored. “Welcome to Virtual University!”

If we apply str.split(‟‟) method.

What will be the output of str.split(‟‟)myArray(4) and str.split(‟‟)myArray(2) respectively.

Str.Split split the string based on the blank spaces.

str.split(‟‟)myArray(4) = blank

str.split(‟‟)myArray(2) = virtual

Question No: 25 ( Marks: 5 )

Describe the importance of Cryptography in internet data transfer security in E-Commerce?

It is a collection of mathematical techniques used to ensure confidentiality of information. The

process of scrambling a message with the help of a key is called Encryption.

Now a days as internet is widely used. So danger of data safety and serurity also rose. Compare to its

earlier use.

It provide the Transaction Integrity. Tranasction detail of both the parties can be verified which

help to built the confidence between business community.

It provide Privacy like it provide controls to prevent third parties from geting access to the

information within the transaction

Page 60: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Without cryptography, it is doubtful that banks, businesses and individuals would feel safe doing

business online.

Cryptography provides the confidence to the customer that their data is safe and secure. Otherwise

due to lack of confidence and doubt e-commerce business can not flourish.

Question No: 26 ( Marks: 5 )

Write a list of comparison operators in JavaScript with symbols.

Comparison operators ‘==’ for Equal ‘!=’ for not equal ‘< ‘ for Less than ‘<=’ for less than equal ‘>’ for Greater than

‘>=’ for Greater than equal

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 5)

Question No: 1 ( Marks: 1 ) - Please choose one

Network addresses 128--- 191 range belongs to which of the following class networks?

► A

► B (page 10)

Page 61: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► C

► E

Question No: 2 ( Marks: 1 ) - Please choose one

Which of the following is true for Class A:

► Network 01 byte and 03 hosts (page 10)

► Network 02 bytes and 02 hosts

► Network 03 bytes and 01 host

► None of these

Question No: 3 ( Marks: 1 ) - Please choose one

Which one is not included in the networking topologies?

► Star Topology

► Bus Topology

► Media Topology (page 14)

► Ring Topology

Page 62: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 4 ( Marks: 1 ) - Please choose one

What is the correct HTML for making a hyperlink?

► <a name="http://www.vu.edu.pk”>Virtual university</a>

► <a href=" http://www.vu.edu.pk "> Virtual university </a> (page 23)

► <a>http://www. vu.edu.pk </a>

► <a url="http://www. vu.edu.pk "> Virtual university of pakistan</a>

Question No: 5 ( Marks: 1 ) - Please choose one

What is the correct HTML for making a text input field?

► <textinput type="text">

► <input type="text"> (page 27)

► <input type="textfield">

► <textfield>

Question No: 6 ( Marks: 1 ) - Please choose one

If we leave out the target attribute in frame tag and link was clicked ,the document loads into the window

► In Same page (page 37)

► In other blank page.

► To display browser error.

► All of the options.

Question No: 7 ( Marks: 1 ) - Please choose one

Where in an HTML document is the correct place to refer to an external style sheet?

Page 63: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► In the <body> section

► At the end of the document

► In the <head> section (repeated )

► At the top of the document

Question No: 8 ( Marks: 1 ) - Please choose one

How do you write a conditional statement for executing some statements only if "i" is equal to 5?

► if i=5

► if i=5 then

► if i==5 then

► if (i==5)

ref

http://www.ex-designz.net/test_page.asp?tid=65

Question No: 9 ( Marks: 1 ) - Please choose one

Which of the following is used to get remote access of any computer on a network?

► Trojan Horse

► Backdoor

► Virus

► All of these (page 94)

Page 64: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 10 ( Marks: 1 ) - Please choose one

PPP stands for

► Point to Point Protocol (repeated )

► Post to Post Protocol

► Point to Post Protocol

► None of these

Question No: 11 ( Marks: 1 ) - Please choose one

JavaScript is mainly a ___________ language.

► Server Side Scripting

► Cross Side Scripting

► Client Side Scripting (page 79)

► both Cross and Server Side Scripting

Question No: 12 ( Marks: 1 ) - Please choose one

Inside which HTML element do we put the JavaScript?

► <scripting>

► <javascript>

► <script> (page 57)

► <js>

Question No: 13 ( Marks: 1 ) - Please choose one

a++; is the same as which of the following?

► a=a*1;

► a=a+2;

► a=1+2;

Page 65: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► a=a+1;

ref

http://www.academictutorials.com/answers.asp?id=6

Question No: 14 ( Marks: 1 ) - Please choose one

If a web server is bombarded with thousands of HTTP requests, that would be an example of ---------------.

► sniffing

► password attack

► man in the middle attack

► denial of service attack (page 95)

Question No: 15 ( Marks: 1 ) - Please choose one

Outside attacks on a network include the following, EXCEPT --------------- .

► Password attack

► DoS

► Back doors (page 95)

► IP spoofing

Question No: 16 ( Marks: 1 ) - Please choose one

Digital signature uses --------- .

► Symmetric cryptography

► Private key cryptography

► Public key cryptography

Page 66: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► Hash function

ref

http://www.digistamp.com/signature.htm

http://ecommerce.hostip.info/pages/271/Cryptography-Public-Private-Key.html

Question No: 17 ( Marks: 1 ) - Please choose one

In star topology, If hub fails, the entire network also fails.

► True

► False

ref

http://www.exforsys.com/tutorials/networking/star-topology.html

Question No: 18 ( Marks: 1 ) - Please choose one

Which one is the correct CSS syntax?

► h1 {font-size:72pt}

► h1:font-size=72pt

► {h1:font-size=72pt}

► {h1;font-size:72pt}

ref

http://uk.answers.yahoo.com/question/index?qid=20100308120234AAPKmAf

Question No: 19 ( Marks: 1 ) - Please choose one

In CSS, How do you make each word in a text start with a capital letter?

► text-transform:capitalize

Page 67: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► text-transform:uppercase (correct )

► text:capitalize

► You can't do that with CSS

REFERENCE

http://www.ex-designz.net/test_grade.asp?tid=37 (question 24 in this link )

Question No: 20 ( Marks: 1 ) - Please choose one

Which of the following is the default alignment in HTML?

► Left

► Center

► Right

► None

REFERENCE

align = left|center|right|justify|char [CI]

This attribute specifies the alignment of data and the justification of text in a cell. Possible values:

left: Left-flush data/Left-justify text. This is the default value for table

data.

center: Center data/Center-justify text. This is the default value for table

headers.

right: Right-flush data/Right-justify text.

justify: Double-justify text.

char: Align text around a specific character. If a user agent doesn't

support character alignment, behavior in the presence of this value is unspecified.

Question No: 21 ( Marks: 2 )

Page 68: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

What is Term „Catalog Display‟ means? (page 92)

A Static catalog is a simple list written in HTML. One has to edit the HTML code to

change it. A dynamic catalog stores information about items in a database usually on a

different computer accessible by the web server. It can provide photos, detailed

description and search facility about the availability of items.

Question No: 22 ( Marks: 2 )

What is meant by a constructor? (page 69)

It is initializing function used to create instance of an object. It is after the name of the object whose

constructor it is.

Question No: 23 ( Marks: 3 )

What is meant by „Shopping Cart‟ in context of e commerce? (page 92)

shopping cart was used wherein the user had to remember and type certain information. It is now

replaced by electronic shopping cart/basket that keeps record of the items the customer has selected

and allows customers to view the details of the items selected. The customer can add new items or

remove items. To order an item, a customer simply clicks at that item option. All details of an item,

including its price, product no. and order identifying information are stored automatically in the

cart.

Question No: 24 ( Marks: 3 )

We have an array named my Array where this sentence is stored. “Welcome to Virtual University!”

If we apply str.split(‟‟) method.

What will be the output of str.split(‟‟)myArray(4) and str.split(‟‟)myArray(2) respectively.

Str.Split split the string based on the blank spaces.

str.split(‟‟)myArray(4) = blank

str.split(‟‟)myArray(2) = virtual

Page 69: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 25 ( Marks: 5 )

Describe the importance of Cryptography in internet data transfer security in E-Commerce?

It is a collection of mathematical techniques used to ensure confidentiality of information. The

process of scrambling a message with the help of a key is called Encryption.

Now a days as internet is widely used. So danger of data safety and serurity also rose. Compare to its

earlier use.

It provide the Transaction Integrity. Tranasction detail of both the parties can be verified which

help to built the confidence between business community.

It provide Privacy like it provide controls to prevent third parties from geting access to the

information within the transaction

Without cryptography, it is doubtful that banks, businesses and individuals would feel safe doing

business online.

Cryptography provides the confidence to the customer that their data is safe and secure. Otherwise

due to lack of confidence and doubt e-commerce business can not flourish.

Question No: 26 ( Marks: 5 )

Write a list of comparison operators in JavaScript with symbols.

Comparison operators ‘==’ for Equal ‘!=’ for not equal ‘< ‘ for Less than ‘<=’ for less than equal ‘>’ for Greater than

Page 70: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

‘>=’ for Greater than equal

MIDTERM EXAMINATION

Spring 2009

IT430- E-Commerce (Session - 4) www.vuaskari.com

Question No: 1 ( Marks: 1 ) - Please choose one In datalink layer, data packets are placed inside ► Data frames ► Data boxes ► Data streams ► None of these

Question No: 2 ( Marks: 1 ) - Please choose one Which of these is the correct HTML code for creating a reset button? ► ► ► ► Question No: 3 ( Marks: 1 ) - Please choose one …..tag is used into …….tag because a row contains multi cells and to fill up these cells with data.

► TD…… TR ► TR…… TD ► TD…… TG ► TG…… TR

Question No: 4 ( Marks: 1 ) - Please choose one Individuals who write programs or manipulate technologies to gain unauthorized access to computers and networks are --------------- . ► administrators ► experts ► hackers ► coders Question No: 5 ( Marks: 1 ) - Please choose one Which tag is used for the hidden fields? ► ►

Page 71: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► Question No: 6 ( Marks: 1 ) - Please choose one What is a correct way of referring to a stylesheet called "mystyle.xsl" ? ► <?xml-stylesheet type="text/xsl" href="/mystyle.xsl" ?> ► ► ► <?stylesheet type="text/xsl" href="/mystyle.xsl" ?> Question No: 7 ( Marks: 1 ) - Please choose one Which of them is NOT a predefined object? ► Document ► Date ► Loop ► Array Question No: 8 ( Marks: 1 ) - Please choose one Which of these is not a comparison operator? ► < ► > ► = ► != Question No: 9 ( Marks: 1 ) - Please choose one

Var d = new date() Which of the following is correct about the d variable?

► instance of new ► instance of Date() method ► instance of Date object ► Simple Variable

Question No: 10 ( Marks: 1 ) - Please choose one When you declare a variable within a function, the variable can only be accessed within that function. When you exit the function, the variable is destroyed. These variables are called

http://groups.google.com/group/vu-askari?hl=en

► Local Variables

► Global Variables

► Local and Global

► None of the above

Question No: 11 ( Marks: 1 ) - Please choose one Which of the following , is condition part of given For loop for (i = 0; i <= 5; i++).

► i=0. ► i++.

Page 72: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► i<=5. ► (i = 0; i <= 5; i++).

Question No: 12 ( Marks: 1 ) - Please choose one What is the correct JavaScript syntax to write "Virtual University of Paistan"?

► document.write("Virtual University of Paistan ") ► ("Virtual University of Paistan ") ► " Virtual University of Paistan " ► response.write("Virtual University of Paistan ")

Question No: 13 ( Marks: 1 ) - Please choose one Which of the following is NOT valid HTML code line?

► ,84%"> ► ,84%"> ► ► ,50%” rows=”16%,84%”>

http://groups.google.com/group/vu-askari?hl=en

Question No: 14 ( Marks: 1 ) - Please choose one CSS is a breakthrough in Web design because it allows developers to control the--------- ► Processing speed on client side

► Data grid view on client side ► Style and layout of home page. ► Style and layout of multiple Web pages

Question No: 15 ( Marks: 1 ) - Please choose one Which HTML tag is used to define an internal style sheet?

Question No: 16 ( Marks: 1 ) - Please choose one What is the correct HTML tag for adding a background color? ► yellow ► ► ► None Question No: 17 ( Marks: 1 ) What does this mean? padding-right Question No: 18 ( Marks: 1 ) Do you agree or not that using Cascading Style Sheets one can apply an image to sections of one‟s page or even to individual words. Question No: 19 ( Marks: 2 )

Page 73: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Suppose, there is an applet at "http://www.vu.edu.pk/demo.class". Write the code to include this applet in your web page. Question No: 20 ( Marks: 3 ) What do you think, is there any difference between Static and Dynamic IP Address assignment? Discuss.

http://groups.google.com/group/vu-askari?hl=en

Question No: 21 ( Marks: 5 ) What is cryptography? What techniques are used for cryptography? Question No: 22 ( Marks: 10 ) Analyze the following given code showing some Cascading Style Sheets tags and explain its lines one by one.

<html>

<head>

h1 {text-decoration: overline}

h2 {text-decoration: line-through}

h3 {text-decoration: underline}

a {text-decoration: none}

<body>

MIDTERM EXAMINATION

Spring 2009

IT430- E-Commerce (Session - 4)

Question No: 1 ( Marks: 1 ) - Please choose one

Page 74: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

In datalink

layer, data packets are placed inside

► Data frames ► Data boxes

► Data streams

► None of these

Question No: 2 ( Marks: 1 ) - Please choose one

Which of

these is the correct HTML code for creating a reset button?

► <input type =”button” name=”reset” value=”reset”>

► <input type=”resetButton” value=”Clear”>

► <input type=”reset” value=”reset”> ► <input type=”button” name=”reset” value=”clear”>

Question No: 3 ( Marks: 1 ) - Please choose one …..tag is

used into …….tag because a row contains multi cells and to fill up these cells with data.

► TD…… TR

► TR…… TD

► TD…… TG

► TG…… TR

Question No: 4 ( Marks: 1 ) - Please choose one

Individuals

who write programs or manipulate technologies to gain unauthorized access to computers and networks are

--------------- .

► administrators

► experts

► hackers ► coders

Question No: 5 ( Marks: 1 ) - Please choose one

Which tag is

used for the hidden fields?

► <FIELD>

► <TEXT>

► <INPUT> ► <HIDDEN>

Question No: 6 ( Marks: 1 ) - Please choose one

What is a

correct way of referring to a stylesheet called "mystyle.xsl" ?

► <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

Page 75: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► <link type="text/xsl" href="mystyle.xsl" />

► <stylesheet type="text/xsl" href="mystyle.xsl" />

► <?stylesheet type="text/xsl" href="mystyle.xsl" ?>

Question No: 7 ( Marks: 1 ) - Please choose one

Which of them

is NOT a predefined object?

► Document ► Date

► Loop

► Array

Question No: 8 ( Marks: 1 ) - Please choose one

Which of

these is not a comparison operator?

► <

► >

► =

► !=

Question No: 9 ( Marks: 1 ) - Please choose one

Var d =

new date() Which of the following is correct about the d variable?

► instance of new

► instance of Date() method ► instance of Date object

► Simple Variable

Question No: 10 ( Marks: 1 ) - Please choose one When you

declare a variable within a function, the variable can only be accessed within that function. When you exit the

function, the variable is destroyed. These variables are called

► Local Variables

► Global Variables

► Local and Global

► None of the above

Page 76: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 11 ( Marks: 1 ) - Please choose one Which of the

following , is condition part of given For loop

for (i = 0; i <= 5; i++). ► i=0.

► i++.

► i<=5.

► (i = 0; i <= 5; i++).

Question No: 12 ( Marks: 1 ) - Please choose one

What is the

correct JavaScript syntax to write "Virtual University of Paistan"?

► document.write("Virtual University of Paistan ") ► ("Virtual University of Paistan ")

► " Virtual University of Paistan "

► response.write("Virtual University of Paistan ")

Question No: 13 ( Marks: 1 ) - Please choose one Which of the

following is NOT valid HTML code line? ► <frameset rows="16%,84%">

► <frameset columns="16%,84%">

► <frameset cols="100,150">

► <frameset cols=”50%,50%” rows=”16%,84%”>

Question No: 14 ( Marks: 1 ) - Please choose one CSS is a

breakthrough in Web design because it allows developers to control the---------

► Processing speed on client side

► Data grid view on client side

► Style and layout of home page. ► Style and layout of multiple Web pages

Question No: 15 ( Marks: 1 ) - Please choose one Which HTML

tag is used to define an internal style sheet?

► <css>

► <script>

► <style>

► <sheet>

Question No: 16 ( Marks: 1 ) - Please choose one

What is the

correct HTML tag for adding a background color?

Page 77: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► <background>yellow</background>

► <body bgcolor="yellow"> ► <body color="yellow">

► None

Question No: 17 ( Marks: 1 )

What does this

mean?

padding-right

Question No: 18 ( Marks: 1 )

Do you agree

or not that using Cascading Style Sheets one can apply an image to sections of one‟s

page or even to individual words.

Question No: 19 ( Marks: 2 )

Suppose, there

is an applet at "http://www.vu.edu.pk/demo.class". Write the code to include this applet in your web page.

Question No: 20 ( Marks: 3 ) What do you

think, is there any difference between Static and Dynamic IP Address assignment? Discuss.

Question No: 21 ( Marks: 5 )

What is

cryptography? What techniques are used for cryptography?

Question No: 22 ( Marks: 10 ) Analyze the

following given code showing some Cascading Style Sheets tags and explain its lines one by one.

<html>

<head>

<style type="text/css">

h1 {text-decoration: overline}

h2 {text-decoration: line-through}

Page 78: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

h3 {text-decoration: underline}

a {text-decoration: none}

</style>

</head>

<body>

<h1>This is header 1</h1>

<h2>This is header 2</h2>

<h3>This is header 3</h3>

<p><a href="http://www.w3schools.com/default.asp">This is a link</a></p>

</body>

</html>

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 6)

Question No: 1 ( Marks: 1 ) - Please choose one

Academic institutions, religious organizations and government using --------------------- e-commerce

classification

► Business-to-Business(B2B)

► Intra Business

► Non Business EC 2 ► Business-to-consumer(B2C)

Question No: 2 ( Marks: 1 ) - Please choose one

In which protocol, the messages are not deleted from email server.

► SMTP

► POP3

► IMAP 18

Page 79: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► ICMP

Question No: 3 ( Marks: 1 ) - Please choose one

What is the correct HTML tag for adding a background color?

► <background>yellow</background>

► <body bgcolor="yellow"> ► <body color="yellow">

► None

Question No: 4 ( Marks: 1 ) - Please choose one

Which HTML tag is used to define an internal style sheet?

► <css>

► <script>

► <style> (Ans)

► <sheet>

Question No: 5 ( Marks: 1 ) - Please choose one

What is the correct HTML for making a hyperlink?

► <a href="http://www.w3schools.com">W3Schools</a> (Ans) ► <a name="http://www.w3schools.com">W3Schools.com</a>

► <a url="http://www.w3schools.com">W3Schools.com</a>

► <a>http://www.w3schools.com</a>

Question No: 6 ( Marks: 1 ) - Please choose one

If we leave out the target attribute in frame tag and link was clicked ,the document loads into the window

► In Same page ► In other blank page.

► To display browser error.

► All of the options.

Question No: 7 ( Marks: 1 ) - Please choose one

What does mean by != comparison operator?

► Equal to

► Not

► Equal

► Not Equal 58

Question No: 8 ( Marks: 1 ) - Please choose one

What does the string. match (“abc”) object do?

Page 80: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► Concatenates the “abc” word to other “abc” words

► Matches the “abc” words with other “abc” words

► It does replacement of abc word with other words

► All of the above

Question No: 9 ( Marks: 1 ) - Please choose one

var txt="Hello World!" document.write(txt.length), it would return the length as.

► 10

► 11

► 12

► 13

Question No: 10 ( Marks: 1 ) - Please choose one

Which of the following property falls in HTTP?

►Stateless ► Stateful

► Temporary

► All of these

Question No: 11 ( Marks: 1 ) - Please choose one

Which one of the following certifies the binding between public key and its owner.

► CA ► KDC

► TLS

► Firewall

Question No: 12 ( Marks: 1 ) - Please choose one

Cyclical Redundancy Check (CRC), takes place in which layer of OSI Model.

► Session Layer

► Transport Layer

► Network Layer

► Data link layer

Question No: 13 ( Marks: 1 ) - Please choose one

How can you convert information consisting of comma separated values into an array?

Page 81: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► txtArray = txt.indexOf(',');

► txtArray = txt.split(','); page 70 ► txtArray = txt.trim(',');

► txtArray = txt.substring(',');

Question No: 14 ( Marks: 1 ) - Please choose one

The control statement on a while loop is tested

► before each time through the loop ► after each time through the loop

► once at the start

► once at the end

Question No: 15 ( Marks: 1 ) - Please choose one

Which SQL statement is used to delete data from a database?

► DELETE ► COLLAPSE

► REMOVE

► DISCARD

Question No: 16 ( Marks: 1 ) - Please choose one

A program that performs a specific function such as creating invoices/bills or processing payment received

from customers is called a/an ---------------.

► Middleware

► Web Service

► CRM Software

► Appplication Program page 92

Question No: 17 ( Marks: 1 ) - Please choose one

Which firewall uses strong user authentication to verify identity of a host attempting to connect to the

network?

► Packet filter firewall

► Circuit level firewall

► Application gateway firewall ► Hybrid firewall

Question No: 18 ( Marks: 1 ) - Please choose one

In what form are style rules presented?

► Selector { property: value } ► selector { property= value }

► selector ( property: value )

► selector ( property= value )

Question No: 19 ( Marks: 1 ) - Please choose one

Why we use reset tag in HTML?

Page 82: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► To remove the text written in Notepad.

► To remove the text written in between <body> and </body>tag.

► To remove the text written in between <head> and </head> tag.

► To remove the text written in between <form> and </form> tag.

Question No: 20 ( Marks: 1 ) - Please choose one

When data moves upward in the OSI stack it is called

► Encapsulation

► De-encapsulation ► Synchronization

► None of these

Question No: 21 ( Marks: 2 )

What does PPTP stand for?

Question No: 22 ( Marks: 2 )

What are the keywords to define a variable and a function in JavaScript?

Question No: 23 ( Marks: 3 )

Identify the object, property and method in the following:

Math.sin(45)

Math.PI

Question No: 24 ( Marks: 3 )

Performance of web servers can be evaluated mainly on the basis of two factors. What are they?

Question No: 25 ( Marks: 5 )

Write the code for a web page displaying a button named "Testing". After clicking that button an alert

should be displayed saying "The test is successful".

Question No: 26 ( Marks: 5 )

What is the difference between an interpreted and a compiled language? Give one example of each.

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 6)

Question No: 1 ( Marks: 1 ) - Please choose one

In star network features a central connection point called a "hub" that ought to be only a hub.

► True

► False

Question No: 2 ( Marks: 1 ) - Please choose one

Switch is a device that joins multiple computers together within one local area network (LAN).

► True ► False

Page 83: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 3 ( Marks: 1 ) - Please choose one

Switch generally contains more "intelligence" than a hub.

► True ► False

Question No: 4 ( Marks: 1 ) - Please choose one

In which protocol, the messages are not deleted from email server.

► SMTP

► POP3

► IMAP 18

► ICMP

Question No: 5 ( Marks: 1 ) - Please choose one

Which protocol does Virtual university use to send email to student Accounts?

► SMTP ► POP

► IMAP

► TCP

Question No: 6 ( Marks: 1 ) - Please choose one

For which one of the following,<MARQUEE ...> tag can work better

► News headlines

► Announcements ► Sound pulgin

► Movie controls

Question No: 7 ( Marks: 1 ) - Please choose one

Can you add a style in a single place on a page ?

► Yes, with a style-definition written into the tag ► Yes, with a global style definition that redefines the tag.

► No - CSS can only be defined for entire pages.

Question No: 8 ( Marks: 1 ) - Please choose one

Which CSS tag is used to place an image that would remain when user scrolls down or up the page?

► background-attachment: fixed 48

► background-attachment: scroll

► background-attachment: up

Page 84: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► All of these

Question No: 9 ( Marks: 1 ) - Please choose one

What shall come in blanks for proper result,

Here blanks are numbered with 1,2 and 3

<html>

<head>

<SCRIPT language="JavaScript">

Var num1, var num2

Document.container .result.value=parseFloat(num1)-parseFloat(num2)

</script>

</head>

<body>

<FORM name=”---------1-----------”>

<input type=”----------2-------” name=”-------3---------” maxlength=”5”>

</form>

</body>

</html>

► container, text and result ► result, value and container

► container , button and value

► result, container and text

Question No: 10 ( Marks: 1 ) - Please choose one

Correct syntax of "for" loop is :

► for (i = 0; i <= 5)

► for i = 1 to 5

► for (i <= 5; i++)

►for (i = 0; i <= 5; i++)

Question No: 11 ( Marks: 1 ) - Please choose one

CGI stands for

► Common Gate Information

► Common Gate Interface 82

► Common Goal Interest

► Common Global Interaction

Question No: 12 ( Marks: 1 ) - Please choose one

Which of the following property falls in HTTP?

►Stateless ► Stateful

► Temporary

► All of these

Page 85: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 13 ( Marks: 1 ) - Please choose one

What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

► <?xml-stylesheet type="text/xsl" href="/mystyle.xsl" ?> ► <link type="text/xsl" href="/mystyle.xsl" />

► <stylesheet type="text/xsl" href="/mystyle.xsl" />

► <?stylesheet type="text/xsl" href="/mystyle.xsl" ?>

Question No: 14 ( Marks: 1 ) - Please choose one

Which of the following does not interpret its code?

► ASP

► PHP

► JSP 85 ► Coldfusion

Question No: 15 ( Marks: 1 ) - Please choose one

Asymmetric cryptography is also called -------------- .

► Public key cryptography 100 ► Private key cryptography

► Substitution cryptography

► Transposition

Question No: 16 ( Marks: 1 ) - Please choose one

Digital signature uses --------- .

► Symmetric cryptography

► Private key cryptography

► Public key cryptography ► Hash function

Question No: 17 ( Marks: 1 ) - Please choose one

Which one of the following is NOT a valid JavaScript variable?

► _name1

► $studentScore

► first_name

► 2ndName 54

Question No: 18 ( Marks: 1 ) - Please choose one

Which of these is the correct HTML code for creating a reset button?

► <input type =”button” name=”reset” value=”reset”>

► <input type=”resetButton” value=”Clear”>

► <input type=”reset” value=”reset”> ► <input type=”button” name=”reset” value=”clear”>

Question No: 19 ( Marks: 1 ) - Please choose one

Why we use reset tag in HTML?

Page 86: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► To remove the text written in Notepad.

► To remove the text written in between <body> and </body>tag.

► To remove the text written in between <head> and </head> tag.

► To remove the text written in between <form> and </form> tag.

Question No: 20 ( Marks: 1 ) - Please choose one

http://cs.vu.edu is an example of

► Two zone domain name ► Three zone domain name

► Four zone domain name

► Five zone domain name

Question No: 21 ( Marks: 2 )

How Certification Authority (CA) issues the certificates? Describe briefly

Question No: 22 ( Marks: 2 )

Discuss the role of child element tags while in writing XML code.

Question No: 23 ( Marks: 3 )

Performance of web servers can be evaluated mainly on the basis of two factors. What are they?

Question No: 24 ( Marks: 3 )

Write a function for the addition of two numbers?

Question No: 25 ( Marks: 5 )

Write the JavaScript code which will display the following in a web page using a FOR loop:

The number is 0

The number is 1

The number is 2

The number is 3

The number is 4

The number is 5

Question No: 26 ( Marks: 5 )

What is the difference between an interpreted and a compiled language? Give one example of each.

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce

Time: 60 min

Page 87: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Marks: 40

Question No: 1 ( Marks: 1 ) - Please choose one

RIP(Routing

Information protocol) is used by---------- , to build a ------------ table

► bridges , hash

► routers, matrix

► routers , routing ► All of these

Question No: 2 ( Marks: 1 ) - Please choose one

In which

protocol, the messages are not deleted from email server.

► SMTP

► POP3

► IMAP

► ICMP

Question No: 3 ( Marks: 1 ) - Please choose one

For which one

of the following,<MARQUEE ...> tag can work better

► News headlines ► Announcements

► Sound pulgin

► Movie controls

http://vustudents.ning.com

Question No: 4 ( Marks: 1 ) - Please choose one

At line code 5

which of the following Css methods has been applied?

<html>

<head>

1. <style type="text/css">

2. h3 {font-family: times}

3. p {font-family: courier}

4. p.sansserif {font-family: sans-serif}

</style>

5. <Link rel=”stylesheet” type=”text/css” herf=”mystyle.css”>

Page 88: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

</head>

<body>

6. <h3 style=”font-size:40pt”>This is header 3</h3>

</body>

</html>

àmystyle.css:

h3{ color:red}

► Browser default

► External style sheet

► Inline style

► Internal style sheet

Question No: 5 ( Marks: 1 ) - Please choose one

Which of the

following is NOT valid HTML code line?

► <frameset rows="16%,84%">

► <frameset columns="16%,84%">

► <frameset cols="100,150">

► <frameset cols=”50%,50%” rows=”16%,84%”>

Question No: 6 ( Marks: 1 ) - Please choose one

What shall

come in blanks for proper result,

Here blanks are numbered with 1,2 and 3

<html>

<head>

<SCRIPT language="JavaScript">

Var num1, var num2

Document.container .result.value=parseFloat(num1)-parseFloat(num2)

</script>

</head>

<body>

<FORM name=”---------1-----------”>

<input type=”----------2-------” name=”-------3---------” maxlength=”5”>

</form>

Page 89: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

</body>

</html>

► container, text and result ► result, value and container

► container , button and value

► result, container and text

http://vustudents.ning.com

Question No: 7 ( Marks: 1 ) - Please choose one

Let us assume

in Javascript, Variabales num1 and num2 are assigned values 10 and 30 respectively

The following text was displayed on browser page:

OUTPUT:

The result of addition is (40)

Which one of following code will display the output?

► document.write(“The result of addition is (”+(parseFloat(num1)+parseFloat(num2))+”)”;

► document.write(“The result of addition is (”+(parseFloat(num1)+parseFloat(num2))+”)”.

► document.write(“The result of addition is

(”+(parseFloat(num1)+parseFloat(num2)));. ► document.alert (“The result of addition is (” (parseFloat(num1)+parseFloat(num2)) ”)”;

Question No: 8 ( Marks: 1 ) - Please choose one

Constructor is

defined as the initializing function used to create…........

► Instance of object

► Copy of object

► Instance / copy of object ► Shallow copy of object

Question No: 9 ( Marks: 1 ) - Please choose one

Which

language does not compile its code but interpret it?

► ASP. Net

► ASP

► C++

► None of these

Page 90: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 10 ( Marks: 1 ) - Please choose one

JavaScript is

mainly a ___________ language.

► Server Side Scripting

► Cross Side Scripting

► Client Side Scripting ► both Cross and Server Side Scripting

Question No: 11 ( Marks: 1 ) - Please choose one

Which loop

type always runs the enclosed code at least once http://vustudents.ning.com

► for ► while

► do while

► all of them

Question No: 12 ( Marks: 1 ) - Please choose one

Which one

from the following uses IP addresses on network layer?

► Swithes

► Routers

► Bridges

► All of the given

Question No: 13 ( Marks: 1 ) - Please choose one

Which object

has the property of 'cookie'? http://vustudents.ning.com

► window

► location

► document ► string

Question No: 14 ( Marks: 1 ) - Please choose one

Which firewall

uses strong user authentication to verify identity of a host attempting to connect to the network?

► Packet filter firewall

► Circuit level firewall

► Application gateway firewall

► Hybrid firewall

Question No: 15 ( Marks: 1 ) - Please choose one

Page 91: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Pretty Good

Privacy (PGP) is the name of a popular _________ system which is available for general public use.

http://vustudents.ning.com

► Filtering

► Cryptographic ► Server

► Security

Question No: 16 ( Marks: 1 ) - Please choose one

An electronic

signature can ensure --------- .

► authenticity

► integrity

► non-repudiation

► all of them

Question No: 17 ( Marks: 1 ) - Please choose one

Which one is

the correct CSS syntax?

► h1 {font-size:72pt}

► h1:font-size=72pt

► {h1:font-size=72pt}

► {h1;font-size:72pt}

Question No: 18 ( Marks: 1 ) - Please choose one

In Style

Sheets, How do you change the font of an element?

► font-face:

► font:

► font-family: ► font-style:

Question No: 19 ( Marks: 1 ) - Please choose one

How many

characters MAC address consists on? http://vustudents.ning.com

► 11

► 12 ► 13

► 14

Question No: 20 ( Marks: 1 ) - Please choose one

Choose which

one is the not the columns of Log files.

Page 92: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► IP addresses

► Request (url)

► Date

► Contents

Question No: 21 ( Marks: 2 )

What you

understand about Denial of services (DOS) attacks?

Question No: 22 ( Marks: 2 )

Discuss the

role of (W3C) keeping in view the web documents ?

Question No: 23 ( Marks: 3 )

Differentiate

between the HTML and XML. Identify At least three major differences.

Question No: 24 ( Marks: 3 )

What are the

different logical operators in JavaScript? Only write their names. Also write the symbols of operators.

http://vustudents.ning.com

Question No: 25 ( Marks: 5 )

Write HTML

code for the form displaying a drop-down list containing the following entries: Honda, Suzuki, Santro,

Corolla.

Question No: 26 ( Marks: 5 )

Write a note

on any two methods used to maintain state between HTTP requests.

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 6)

Page 93: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Ref No: 1406718

Time: 60 min

Marks: 40

Student Info

StudentID:

Center: OPKST

ExamDate: 5/26/2010 12:00:00 AM

For Teacher's Use Only

Q No. 1 2 3 4 5 6 7 8 Total

Marks

Q No. 9 10 11 12 13 14 15 16

Marks

Q No. 17 18 19 20 21 22 23 24

Marks

Q No. 25 26

Marks

Page 94: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 1 ( Marks: 1 ) - Please choose one In star network

features a central connection point called a "hub" that ought to be only a hub.

► True

► False

Question No: 2 ( Marks: 1 ) - Please choose one Switch is a

device that joins multiple computers together within one local area network (LAN).

► True

► False

Question No: 3 ( Marks: 1 ) - Please choose one Switch

generally contains more "intelligence" than a hub.

► True

► False

Question No: 4 ( Marks: 1 ) - Please choose one In which

protocol, the messages are not deleted from email server.

► SMTP

► POP3

► IMAP

► ICMP

Question No: 5 ( Marks: 1 ) - Please choose one

Which

protocol does Virtual university use to send email to student Accounts?

► SMTP

► POP

► IMAP

► TCP

Question No: 6 ( Marks: 1 ) - Please choose one For which one of

the following,<MARQUEE ...> tag can work better

► News headlines

Page 95: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► Announcements

► Sound pulgin

► Movie controls

Question No: 7 ( Marks: 1 ) - Please choose one Can you add a

style in a single place on a page ?

► Yes, with a style-definition written into the tag

► Yes, with a global style definition that redefines the tag.

► No - CSS can only be defined for entire pages.

Question No: 8 ( Marks: 1 ) - Please choose one Which CSS

tag is used to place an image that would remain when user scrolls down or up the page?

► background-attachment: fixed

► background-attachment: scroll

► background-attachment: up

► All of these

Question No: 9 ( Marks: 1 ) - Please choose one What shall

come in blanks for proper result,

Here blanks are numbered with 1,2 and 3

<html>

<head>

<SCRIPT language="JavaScript">

Var num1, var num2

Document.container .result.value=parseFloat(num1)-parseFloat(num2)

</script>

</head>

<body>

<FORM name=”---------1-----------”>

<input type=”----------2-------” name=”-------3---------” maxlength=”5”>

</form>

</body>

</html>

Page 96: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► container, text and result

► result, value and container

► container , button and value

► result, container and text

Question No: 10 ( Marks: 1 ) - Please choose one Correct syntax

of "for" loop is : ► for (i = 0; i <= 5)

► for i = 1 to 5

► for (i <= 5; i++)

► for (i = 0; i <= 5; i++)

Question No: 11 ( Marks: 1 ) - Please choose one CGI stands for

► Common Gate Information

► Common Gate Interface

► Common Goal Interest

► Common Global Interaction

Question No: 12 ( Marks: 1 ) - Please choose one

Which of the

following property falls in HTTP?

► Stateless

► Stateful

► Temporary

► All of these

Question No: 13 ( Marks: 1 ) - Please choose one

What is a

correct way of referring to a stylesheet called "mystyle.xsl" ?

► <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

► <link type="text/xsl" href="mystyle.xsl" />

► <stylesheet type="text/xsl" href="mystyle.xsl" />

► <?stylesheet type="text/xsl" href="mystyle.xsl" ?>

Question No: 14 ( Marks: 1 ) - Please choose one

Which of the

following does not interpret its code?

► ASP

► PHP

Page 97: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► JSP

► Coldfusion

Question No: 15 ( Marks: 1 ) - Please choose one

Asymmetric

cryptography is also called -------------- .

► Public key cryptography

► Private key cryptography

► Substitution cryptography

► Transposition

Question No: 16 ( Marks: 1 ) - Please choose one

Digital

signature uses --------- .

► Symmetric cryptography

► Private key cryptography

► Public key cryptography

► Hash function

Question No: 17 ( Marks: 1 ) - Please choose one

Which one of

the following is NOT a valid JavaScript variable?

► _name1

► $studentScore

► first_name

► 2ndName

Question No: 18 ( Marks: 1 ) - Please choose one

Which of

these is the correct HTML code for creating a reset button?

► <input type =”button” name=”reset” value=”reset”>

► <input type=”resetButton” value=”Clear”>

► <input type=”reset” value=”reset”>

► <input type=”button” name=”reset” value=”clear”>

Question No: 19 ( Marks: 1 ) - Please choose one

Why we use

reset tag in HTML?

► To remove the text written in Notepad.

► To remove the text written in between <body> and </body>tag.

► To remove the text written in between <head> and </head> tag.

► To remove the text written in between <form> and </form> tag.

Question No: 20 ( Marks: 1 ) - Please choose one

Page 98: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

http://cs.vu.edu is an example of

► Two zone domain name

► Three zone domain name

► Four zone domain name

► Five zone domain name

Question No: 21 ( Marks: 2 ) How

Certification Authority (CA) issues the certificates? Describe briefly

Question No: 22 ( Marks: 2 )

Discuss the

role of child element tags while in writing XML code.

Question No: 23 ( Marks: 3 )

Performance

of web servers can be evaluated mainly on the basis of two factors. What are they?

Question No: 24 ( Marks: 3 )

Write a

function for the addition of two numbers?

Question No: 25 ( Marks: 5 )

Write the

JavaScript code which will display the following in a web page using a FOR loop:

The number is 0

The number is 1

The number is 2

The number is 3

The number is 4

The number is 5

Question No: 26 ( Marks: 5 )

What is the

difference between an interpreted and a compiled language? Give one example of each.

MIDTERM EXAMINATION Spring 2009

IT430- E-Commerce (Session - 4) Question No: 1 ( Marks: 1 ) - Please choose one In data link layer, data packets are placed inside

Page 99: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Data frames Data boxes Data streams None of these

Question No: 2 ( Marks: 1 ) - Please choose one Which of these is the correct HTML code for creating a reset button? <input type =”button” name=”reset” value=”reset”> <input type=”resetButton” value=”Clear”> <input type=”reset” value=”reset”> <input type=”button” name=”reset” value=”clear”>

Question No: 3 ( Marks: 1 ) - Please choose one …..tag is used into …….tag because a row contains multi cells and to fill up these cells with data. TD…… TR TR…… TD TD…… TG TG…… TR

Question No: 4 ( Marks: 1 ) - Please choose one Individuals who write programs or manipulate technologies to gain unauthorized access to computers and networks are --------------- . administrators experts hackers coders

Question No: 5 ( Marks: 1 ) - Please choose one Which tag is used for the hidden fields? <FIELD> <TEXT> <INPUT> <HIDDEN>

Question No: 6 ( Marks: 1 ) - Please choose one What is a correct way of referring to a stylesheet called "mystyle.xsl" ? <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?> <link type="text/xsl" href="mystyle.xsl" /> <stylesheet type="text/xsl" href="mystyle.xsl" /> <?stylesheet type="text/xsl" href="mystyle.xsl" ?>

Question No: 7 ( Marks: 1 ) - Please choose one Which of them is NOT a predefined object? Document Date

Page 100: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Loop Array

Question No: 8 ( Marks: 1 ) - Please choose one Which of these is not a comparison operator? < > = !=

Question No: 9 ( Marks: 1 ) - Please choose one Var d = new date() Which of the following is correct about the d variable? instance of new instance of Date() method instance of Date object Simple Variable

Question No: 10 ( Marks: 1 ) - Please choose one When you declare a variable within a function, the variable can only be accessed within that function. When you exit the function, the variable is destroyed. These variables are called Local Variables Global Variables Local and Global None of the above

Question No: 11 ( Marks: 1 ) - Please choose one Which of the following, is condition part of given For loop for (i = 0; i <= 5; i++). i=0. i++. i<=5. (i = 0; i <= 5; i++).

Question No: 12 ( Marks: 1 ) - Please choose one What is the correct JavaScript syntax to write "Virtual University of Paistan"? document.write("Virtual University of Paistan ") ("Virtual University of Paistan ") " Virtual University of Paistan " response.write("Virtual University of Paistan ")

Question No: 13 ( Marks: 1 ) - Please choose one Which of the following is NOT valid HTML code line? <frameset rows="16%,84%"> <frameset columns="16%,84%"> <frameset cols="100,150"> <frameset cols=”50%,50%” rows=”16%,84%”>

Question No: 14 ( Marks: 1 ) - Please choose one CSS is a breakthrough in Web design because it allows developers to control the--------- Processing speed on client side Data grid view on client side Style and layout of home page.

Page 101: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Style and layout of multiple Web pages

Question No: 15 ( Marks: 1 ) - Please choose one Which HTML tag is used to define an internal style sheet?

<css> <script> <style> <sheet>

Question No: 16 ( Marks: 1 ) - Please choose one What is the correct HTML tag for adding a background color? <background>yellow</background> <body bgcolor="yellow"> <body color="yellow"> None

Question No: 17 ( Marks: 1 ) What does this mean? padding-right Question No: 18 ( Marks: 1 ) Do you agree or not that using Cascading Style Sheets one can apply an image to sections of one‟s page or even to individual words. Question No: 19 ( Marks: 2 ) Suppose, there is an applet at "http://www.vu.edu.pk/demo.class". Write the code to include this applet in your web page. Question No: 20 ( Marks: 3 ) What do you think, is there any difference between Static and Dynamic IP Address assignment? Discuss.

Question No: 21 ( Marks: 5 ) What is cryptography? What techniques are used for cryptography? Question No: 22 ( Marks: 10 ) Analyze the following given code showing some Cascading Style Sheets tags and explain its lines one by one. <html> <head> <style type="text/css"> h1 {text-decoration: overline} h2 {text-decoration: line-through} h3 {text-decoration: underline} a {text-decoration: none} </style> </head> <body>

Page 102: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

<h1>This is header 1</h1> <h2>This is header 2</h2> <h3>This is header 3</h3> <p><a href="http://www.w3schools.com/default.asp">This is a link</a></p> </body> </html>

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce

Time: 60 min

Marks: 40

Student Info

StudentID:

Center: OPKST

ExamDate:

For Teacher's Use Only

Q No. 1 2 3 4 5 6 7 8 Total

Marks

Q No. 9 10 11 12 13 14 15 16

Marks

Q No. 17 18 19 20 21 22 23 24

Marks

Q No. 25 26

Marks

Page 103: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 1 ( Marks: 1 ) - Please choose one

RIP(Routing

Information protocol) is used by---------- , to build a ------------ table

► bridges , hash

► routers, matrix

► routers , routing

► All of these

Question No: 2 ( Marks: 1 ) - Please choose one

In which

protocol, the messages are not deleted from email server.

► SMTP

► POP3

► IMAP

► ICMP

Question No: 3 ( Marks: 1 ) - Please choose one

For which one

of the following,<MARQUEE ...> tag can work better

► News headlines

► Announcements

► Sound pulgin

► Movie controls

http://vustudents.ning.com

Question No: 4 ( Marks: 1 ) - Please choose one

At line code 5

which of the following Css methods has been applied?

<html>

<head>

1. <style type="text/css">

2. h3 {font-family: times}

3. p {font-family: courier}

4. p.sansserif {font-family: sans-serif}

</style>

5. <Link rel=”stylesheet” type=”text/css” herf=”mystyle.css”>

Page 104: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

</head>

<body>

6. <h3 style=”font-size:40pt”>This is header 3</h3>

</body>

</html>

àmystyle.css:

h3{ color:red}

► Browser default

► External style sheet

► Inline style

► Internal style sheet

Question No: 5 ( Marks: 1 ) - Please choose one

Which of the

following is NOT valid HTML code line?

► <frameset rows="16%,84%">

► <frameset columns="16%,84%">

► <frameset cols="100,150">

► <frameset cols=”50%,50%” rows=”16%,84%”>

Question No: 6 ( Marks: 1 ) - Please choose one

What shall

come in blanks for proper result,

Here blanks are numbered with 1,2 and 3

<html>

<head>

<SCRIPT language="JavaScript">

Var num1, var num2

Document.container .result.value=parseFloat(num1)-parseFloat(num2)

</script>

</head>

<body>

<FORM name=”---------1-----------”>

<input type=”----------2-------” name=”-------3---------” maxlength=”5”>

</form>

</body>

Page 105: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

</html>

► container, text and result

► result, value and container

► container , button and value

► result, container and text

http://vustudents.ning.com

Question No: 7 ( Marks: 1 ) - Please choose one

Let us assume

in Javascript, Variabales num1 and num2 are assigned values 10 and 30 respectively

The following text was displayed on browser page:

OUTPUT:

The result of addition is (40)

Which one of following code will display the output?

► document.write(“The result of addition is (”+(parseFloat(num1)+parseFloat(num2))+”)”;

► document.write(“The result of addition is (”+(parseFloat(num1)+parseFloat(num2))+”)”.

► document.write(“The result of addition is (”+(parseFloat(num1)+parseFloat(num2)));.

► document.alert (“The result of addition is (” (parseFloat(num1)+parseFloat(num2)) ”)”;

Question No: 8 ( Marks: 1 ) - Please choose one

Constructor is

defined as the initializing function used to create…........

► Instance of object

► Copy of object

► Instance / copy of object

► Shallow copy of object

Question No: 9 ( Marks: 1 ) - Please choose one

Which

language does not compile its code but interpret it?

► ASP. Net

► ASP

► C++

► None of these

Question No: 10 ( Marks: 1 ) - Please choose one

Page 106: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

JavaScript is

mainly a ___________ language.

► Server Side Scripting

► Cross Side Scripting

► Client Side Scripting

► both Cross and Server Side Scripting

Question No: 11 ( Marks: 1 ) - Please choose one

Which loop

type always runs the enclosed code at least once http://vustudents.ning.com

► for

► while

► do while

► all of them

Question No: 12 ( Marks: 1 ) - Please choose one

Which one

from the following uses IP addresses on network layer?

► Swithes

► Routers

► Bridges

► All of the given

Question No: 13 ( Marks: 1 ) - Please choose one

Which object

has the property of 'cookie'? http://vustudents.ning.com

► window

► location

► document

► string

Question No: 14 ( Marks: 1 ) - Please choose one

Which firewall

uses strong user authentication to verify identity of a host attempting to connect to the network?

► Packet filter firewall

► Circuit level firewall

► Application gateway firewall

► Hybrid firewall

Question No: 15 ( Marks: 1 ) - Please choose one

Pretty Good

Privacy (PGP) is the name of a popular _________ system which is available for general public use.

http://vustudents.ning.com

► Filtering

► Cryptographic

► Server

Page 107: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► Security

Question No: 16 ( Marks: 1 ) - Please choose one

An electronic

signature can ensure --------- .

► authenticity

► integrity

► non-repudiation

► all of them

Question No: 17 ( Marks: 1 ) - Please choose one

Which one is

the correct CSS syntax?

► h1 {font-size:72pt}

► h1:font-size=72pt

► {h1:font-size=72pt}

► {h1;font-size:72pt}

Question No: 18 ( Marks: 1 ) - Please choose one

In Style

Sheets, How do you change the font of an element?

► font-face:

► font:

► font-family:

► font-style:

Question No: 19 ( Marks: 1 ) - Please choose one

How many

characters MAC address consists on? http://vustudents.ning.com

► 11

► 12

► 13

► 14

Question No: 20 ( Marks: 1 ) - Please choose one

Choose which

one is the not the columns of Log files.

► IP addresses

► Request (url)

► Date

► Contents

Page 108: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 21 ( Marks: 2 )

What you

understand about Denial of services (DOS) attacks?

Question No: 22 ( Marks: 2 )

Discuss the

role of (W3C) keeping in view the web documents ?

Question No: 23 ( Marks: 3 )

Differentiate

between the HTML and XML. Identify At least three major differences.

Question No: 24 ( Marks: 3 )

What are the

different logical operators in JavaScript? Only write their names. Also write the symbols of operators.

http://vustudents.ning.com

Question No: 25 ( Marks: 5 )

Write HTML

code for the form displaying a drop-down list containing the following entries: Honda, Suzuki, Santro,

Corolla.

Question No: 26 ( Marks: 5 )

Write a note

on any two methods used to maintain state between HTTP requests.

MIDTERM EXAMINATION

Spring 2009

IT430- E-Commerce (Session - 4)

Page 109: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 1 ( Marks: 1 ) - Please choose one In datalink layer, data packets are placed inside

► Data frames ► Data boxes

► Data streams

► None of these Data link layer It places data packets into data frames. Network Interface Card Drivers/Protocols operate at this layer. It is used to

identify MAC or hardware address of computer machines. A mathematical calculation, Cyclical Redundancy Check

(CRC), takes place here to confirm integrity of data frames

Question No: 2 ( Marks: 1 ) - Please choose one Which of these is the correct HTML code for creating a reset button?

► <input type =”button” name=”reset” value=”reset”>

► <input type=”resetButton” value=”Clear”>

► <input type=”reset” value=”reset”>

► <input type=”button” name=”reset” value=”clear”> Submit and reset button To create a submit or reset button use the following instruction within the form tag: <Input type=“submit”

value=“label”> <Input type=“Reset” value=“label”> “Label” is the value that appears on the button. You may not want to use „value‟ attribute

Question No: 3 ( Marks: 1 ) - Please choose one …..tag is used into …….tag because a row contains multi cells and to fill up these cells with data.

► TD…… TR ► TR…… TD

► TD…… TG

► TG…… TR

Question No: 4 ( Marks: 1 ) - Please choose one Individuals who write programs or manipulate technologies to gain unauthorized access to computers and

networks are --------------- .

► administrators

► experts

► hackers ► coders

Question No: 5 ( Marks: 1 ) - Please choose one Which tag is used for the hidden fields?

► <FIELD>

► <TEXT>

► <INPUT> ► <HIDDEN>

Page 110: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 6 ( Marks: 1 ) - Please choose one What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

► <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

► <link type="text/xsl" href="mystyle.xsl" />

► <stylesheet type="text/xsl" href="mystyle.xsl" />

► <?stylesheet type="text/xsl" href="mystyle.xsl" ?>

http://www.ex-designz.net/test_grade.asp?tid=67

Question No: 7 ( Marks: 1 ) - Please choose one Which of them is NOT a predefined object?

► Document

► Date ► Loop

► Array

Question No: 8 ( Marks: 1 ) - Please choose one Which of these is not a comparison operator?

► <

► >

► = ► !=

Question No: 9 ( Marks: 1 ) - Please choose one

Var d = new date() Which of the following is correct about the d variable?

► instance of new

► instance of Date() method ► instance of Date object

► Simple Variable

Question No: 10 ( Marks: 1 ) - Please choose one When you declare a variable within a function, the variable can only be accessed within that function. When you

exit the function, the variable is destroyed. These variables are called

► Local Variables ► Global Variables

► Local and Global

► None of the above

Question No: 11 ( Marks: 1 ) - Please choose one Which of the following , is condition part of given For loop for (i = 0; i <= 5; i++). ► i=0.

► i++.

► i<=5. ► (i = 0; i <= 5; i++).

Question No: 12 ( Marks: 1 ) - Please choose one What is the correct JavaScript syntax to write "Virtual University of Paistan"?

► document.write("Virtual University of Paistan ")

► ("Virtual University of Paistan ")

► " Virtual University of Paistan "

Page 111: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► response.write("Virtual University of Paistan ")

Question No: 13 ( Marks: 1 ) - Please choose one Which of the following is NOT valid HTML code line? ► <frameset rows="16%,84%">

► <frameset columns="16%,84%">

► <frameset cols="100,150">

► <frameset cols=”50%,50%” rows=”16%,84%”>

Question No: 14 ( Marks: 1 ) - Please choose one CSS is a breakthrough in Web design because it allows developers to control the--------- ► Processing speed on client side

► Data grid view on client side

► Style and layout of home page.

► Style and layout of multiple Web pages

Question No: 15 ( Marks: 1 ) - Please choose one Which HTML tag is used to define an internal style sheet? ► <css>

► <script>

► <style> ► <sheet>

Question No: 16 ( Marks: 1 ) - Please choose one What is the correct HTML tag for adding a background color?

► <background>yellow</background>

► <body bgcolor="yellow"> ► <body color="yellow">

► None

Question No: 17 ( Marks: 1 ) What does this mean?

padding-right

Question No: 18 ( Marks: 1 ) Do you agree or not that using Cascading Style Sheets one can apply an image to sections of one‟s

page or even to individual words.

Question No: 19 ( Marks: 2 ) Suppose, there is an applet at "http://www.vu.edu.pk/demo.class". Write the code to include this applet in

your web page.

Question No: 20 ( Marks: 3 ) What do you think, is there any difference between Static and Dynamic IP Address assignment? Discuss.

Page 112: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Question No: 21 ( Marks: 5 ) What is cryptography? What techniques are used for cryptography?

Question No: 22 ( Marks: 10 ) Analyze the following given code showing some Cascading Style Sheets tags and explain its lines one by one. <html> <head> <style type="text/css"> h1 {text-decoration: overline} h2 {text-decoration: line-through} h3 {text-decoration: underline} a {text-decoration: none} </style> </head> <body> <h1>This is header 1</h1> <h2>This is header 2</h2> <h3>This is header 3</h3> <p><a href="http://www.w3schools.com/default.asp">This is a link</a></p> </body> </html>

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 6)

Question No: 1 (Marks: 1) - Please choose one

For which of the following we need to know the classification of E-commerce?

► Market planning strategy

► Build Mission statement

► Management strategy

► none

Question No: 2 ( Marks: 1 ) - Please choose one

Switch is a device that joins multiple computers together within one local area network (LAN).

► True

► False

Question No: 3 ( Marks: 1 ) - Please choose one

In which protocol, the messages are not deleted from email server.

► SMTP

Page 113: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► POP3

► IMAP

► ICMP

Question No: 4 ( Marks: 1 ) - Please choose one

How can you open a link in a new browser window?

► <a href="/url" target="new">

► <a href="/url" target="_blank">

► <a href="/url" new>

► None of these

Question No: 5 ( Marks: 1 ) - Please choose one

What does the Target= “_top” tag perform?

► Loads the new page into the same frame

► Loads the new page into the entire window

► Loads the new page into a new browser window

► All of the above

Question No: 6 ( Marks: 1 ) - Please choose one

Which attribute is used in a tag to control the layout of element?

► view

► css

► Style

► Layout

Question No: 7 ( Marks: 1 ) - Please choose one

Choose the correct HTML code line which left-align the content inside a tablecell.

Page 114: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► <td leftalign>

► <td valign="left">

► <td align="left">

► <tdleft>

Question No: 8 ( Marks: 1 ) - Please choose one

Where in an HTML document is the correct place to refer to an external style sheet?

► In the <body> section

► At the end of the document

► In the <head> section

► At the top of the document

Question No: 9 ( Marks: 1 ) - Please choose one

When you declare a variable within a function, the variable can only be accessed within that function. When you exit the function, the variable is destroyed. These variables are called

► Local Variables

► Global Variables

► Local and Global

► None of the above

http://groups.google.com/group/vu-askari?hl=en

Question No: 10 ( Marks: 1 ) - Please choose one

Constructor is defined as the initializing function used to create…........

► Instance of object

► Copy of object

► Instance / copy of object

► Shallow copy of object

Question No: 11 ( Marks: 1 ) - Please choose one

What does XML stand for?

► eXtra Modern Link

► X-Markup Language

Page 115: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► eXtensible Markup Language

► Example Markup Language

Question No: 12 ( Marks: 1 ) - Please choose one

For which of following purpose the Firewall is used ?

► Efficient working

► Protection against security attacks

► Networking purpose

► None of these

Question No: 13 ( Marks: 1 ) - Please choose one

PPP stands for

► Point to Point Protocol

► Post to Post Protocol

► Point to Post Protocol

► None of these

Question No: 14 ( Marks: 1 ) - Please choose one

Which of the following is NOT processed on the client side?

► Cookies

► JavaScript

► CGI scripts

► Applets

► Cookies

Question No: 15 ( Marks: 1 ) - Please choose one

Firewall is used to

I - examine the data entering the network

II - examine the data leaving the network

Page 116: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

III - filter the data according to certain rules

► I, II and III

► I only

► I and III only

► I and II only

http://groups.google.com/group/vu-askari?hl=en

Question No: 16 ( Marks: 1 ) - Please choose one

Which firewall uses strong user authentication to verify identity of a host attempting to connect to the network?

► Packet filter firewall

► Circuit level firewall

► Application gateway firewall

► Hybrid firewall

Question No: 17 ( Marks: 1 ) - Please choose one

Bus networks is same as the system bus of a computer.

► True

► False

Question No: 18 ( Marks: 1 ) - Please choose one

In Style Sheets, How do you add a background color for all "<h1>" elements?

► all.h1 {background-color:#FFFFFF}

► h1.all {background-color:#FFFFFF}

► h1 {background-color:#FFFFFF}

► h1 {bgcolor:#FFFFFF}

Question No: 19 ( Marks: 1 ) - Please choose one

How do you make each word in a text start with a capital letter?

► text-transform:capitalize

► text-transform:first_capitalize.

► Cann‟t be possible with CSS

Page 117: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► text-transform:uppercase

Question No: 20 ( Marks: 1 ) - Please choose one

MAC address is written in

Binary form► 0-1

Decimal► form 0-9

Hexadecimal form 0-f►

None of► these

Question No: 21 ( Marks: 2 )

What is a web server?

Question No: 22 ( Marks: 2 )

What does „parseFloat(string)‟ And NaN mean?

Question No: 23 ( Marks: 3 )

Write at least three rules for writing an XML code.

Question No: 24 ( Marks: 3 )

How „Man in The middle Attacks‟ operates?

Question No: 25 ( Marks: 5 )

Write the code for a web page displaying a button named "Testing". After clicking that button an alert should be displayed saying "The test is successful".

Question No: 26 ( Marks: 5 )

Differentiate between front end and back end.

Page 118: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 5) http://groups.google.com/group/vu-askari?hl=en

www.vuaskari.com

Question No: 1 ( Marks: 1 ) - Please choose one

Network addresses 128--- 191 range belongs to which of the following class networks?

► A

► B

► C

► E

http://groups.google.com/group/vu-askari?hl=en

Question No: 2 ( Marks: 1 ) - Please choose one

Which of the following is true for Class A:

► Network 01 byte and 03 hosts

► Network 02 bytes and 02 hosts

Page 119: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► Network 03 bytes and 01 host

► None of these

http://groups.google.com/group/vu-askari?hl=en

Question No: 3 ( Marks: 1 ) - Please choose one

Which one is not included in the networking topologies?

► Star Topology

► Bus Topology

► Media Topology

► Ring Topology

Question No: 4 ( Marks: 1 ) - Please choose one

What is the correct HTML for making a hyperlink?

► <a name="http://www.vu.edu.pk”>Virtual university</a>

► <a href=" http://www.vu.edu.pk "> Virtual university </a>

► <a>http://www. vu.edu.pk </a>

► <a url="http://www. vu.edu.pk "> Virtual university of pakistan</a>

Question No: 5 ( Marks: 1 ) - Please choose one

What is the correct HTML for making a text input field?

Page 120: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► <textinput type="text">

► <input type="text">

► <input type="textfield">

► <textfield>

Question No: 6 ( Marks: 1 ) - Please choose one

If we leave out the target attribute in frame tag and link was clicked ,the document loads into the window

► In Same page

► In other blank page.

► To display browser error.

► All of the options.

Question No: 7 ( Marks: 1 ) - Please choose one

Where in an HTML document is the correct place to refer to an external style sheet?

► In the <body> section

► At the end of the document

► In the <head> section

► At the top of the document

Question No: 8 ( Marks: 1 ) - Please choose one

How do you write a conditional statement for executing some statements only if "i" is equal to 5?

► if i=5

► if i=5 then

Page 121: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► if i==5 then

► if (i==5)

Question No: 9 ( Marks: 1 ) - Please choose one

Which of the following is used to get remote access of any computer on a network?

► Trojan Horse

► Backdoor

► Virus

► All of these

Question No: 10 ( Marks: 1 ) - Please choose one

PPP stands for

► Point to Point Protocol

► Post to Post Protocol

► Point to Post Protocol

► None of these

Question No: 11 ( Marks: 1 ) - Please choose one

JavaScript is mainly a ___________ language.

► Server Side Scripting

► Cross Side Scripting

► Client Side Scripting

► both Cross and Server Side Scripting

Question No: 12 ( Marks: 1 ) - Please choose one

Page 122: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Inside which HTML element do we put the JavaScript?

► <scripting>

► <javascript>

► <script>

► <js>

Question No: 13 ( Marks: 1 ) - Please choose one

a++; is the same as which of the following?

► a=a*1;

► a=a+2;

► a=1+2;

► a=a+1;

Question No: 14 ( Marks: 1 ) - Please choose one

If a web server is bombarded with thousands of HTTP requests, that would be an example of ---------------.

► sniffing

► password attack

► man in the middle attack

► denial of service attack

Question No: 15 ( Marks: 1 ) - Please choose one

Outside attacks on a network include the following, EXCEPT --------------- .

► Password attack

► DoS

► Back doors

► IP spoofing

Question No: 16 ( Marks: 1 ) - Please choose one

Digital signature uses --------- .

► Symmetric cryptography

► Private key cryptography

► Public key cryptography

► Hash function

Page 123: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 17 ( Marks: 1 ) - Please choose one

In star topology, If hub fails, the entire network also fails.

► True

► False

Question No: 18 ( Marks: 1 ) - Please choose one

Which one is the correct CSS syntax?

► h1 {font-size:72pt}

► h1:font-size=72pt

► {h1:font-size=72pt}

► {h1;font-size:72pt}

Question No: 19 ( Marks: 1 ) - Please choose one

In CSS, How do you make each word in a text start with a capital letter?

► text-transform:capitalize

► text-transform:uppercase

► text:capitalize

► You can't do that with CSS

Page 124: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

http://groups.google.com/group/vu-askari?hl=en

Question No: 20 ( Marks: 1 ) - Please choose one

Which of the following is the default alignment in HTML?

► Left

► Center

► Right

► None

Question No: 21 ( Marks: 2 )

What is Term „Catalog Display‟ means?

It provides photos, detailed description and search facility about the availability of products or items..

It is simple list written in HTML. Some has to has to edit the HTML code to change it. Dynamic catalog stores information in a database.

Question No: 22 ( Marks: 2 )

What is meant by a constructor?

It is initializing function used to create instance of an object. It is after the name of the object whose constructor it is.

Question No: 23 ( Marks: 3 )

What is meant by „Shopping Cart‟ in context of e commerce?

Page 125: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

It is an electronic shopping cart or basket that keeps record of the items the

customer has select and allow him to view the details of the items selected.

He/she can add new items or remove items. To order an item, a customer simply clicks at that item option. All details of that item like product No. Item name and its price store in cart automatically.

Question No: 24 ( Marks: 3 )

We have an array named myArray where this sentence is stored. “Welcome to Virtual University!”

If we apply str.split(‟‟) method.

What will be the output of str.split(‟‟)myArray(4) and str.split(‟‟)myArray(2) respectively.

Str.Split split the string based on the blank spaces.

str.split(‟‟)myArray(4) = blank

Page 126: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

str.split(‟‟)myArray(2) = virtual

Question No: 25 ( Marks: 5 )

Describe the importance of Cryptography in internet data transfer security in E-Commerce?

It is a collection of mathematical techniques used to ensure confidentiality of information. The process of scrambling a message with the help of a key is called Encryption.

Now a days as internet is widely used. So danger of data safety and serurity also rose.

Compare to its earlier use.

It provide the Transaction Integrity. Tranasction detail of both the parties can be verified which help to built the confidence between business community.

It provide Privacy like it provide controls to prevent third parties from geting access to the information within the transaction

Without cryptography, it is doubtful that banks, businesses and individuals would feel safe doing business online.

Cryptography provides the confidence to the customer that their data is safe and secure. Otherwise due to lack of confidence and doubt e-commerce business can not flourish.

Page 127: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 26 ( Marks: 5 )

Write a list of comparison operators in JavaScript with symbols.

http://groups.google.com/group/vu-askari?hl=en

1. <= less than equal

1.

2. >= Greater than equal

3. == for Equal

4. != not equal

5. < Less than

6. > Greater than

MIDTERM EXAMINATION Spring 2010

IT430- E-Commerce (Session - 6)

Page 128: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

http://groups.google.com/group/vu-askari?hl=en

www.vuaskari.com

Question No: 1 ( Marks: 1 ) - Please choose one

MAC stand for

► Media Access Control 13

► Media Access Consortium

► Member of Asian Community

► None of these

Question No: 2 ( Marks: 1 ) - Please choose one

Choose the correct HTML tag for the largest heading ► <head>

► <h1> ► <Heading>

► <h6>

Question No: 3 ( Marks: 1 ) - Please choose one Which of the following tags are used for embedding sound files into HTML code?

► <A href=“song.wav”>

► <EMBED SRC="Skylar.MP3">

► <A href=“song.wav”> and <EMBED SRC="Skylar.MP3">

► None of these

Question No: 4 ( Marks: 1 ) - Please choose one Which of the following is NOT an advantage of CSS ?

► Works on version 4 browsers or newer ► Define the look of your pages in one place

► Easily change the look ► Implement same formatting each time tag is used.

Question No: 5 ( Marks: 1 ) - Please choose one

Which of the following is correct line to add separated css file with name xxxx.css? ► <link scr=stylesheet href="/xxxx.css" type="text/css">

► <link rel=stylesheet href="/xxxx.css" type="text/css">

► <style rel=stylesheet href="/xxxx.css" type="text/css"> ► <link rel=stylesheet scr="xxxx.css" type="text/css">

Question No: 6 ( Marks: 1 ) - Please choose one

Which of the following is correct syntax to define color in CSS?

Page 129: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► body {color: black} ► body:color=black

► {body:color=black(body} ► {body;color:black}

Question No: 7 ( Marks: 1 ) - Please choose one

Inside which of the following HTML element do we put the JavaScript? ► <script>

► <js> ► <javascript>

► <scripting>

Question No: 8 ( Marks: 1 ) - Please choose one

JavaScript is mainly a ___________ language. ► Server Side Scripting

► Cross Side Scripting ► Client Side Scripting 79

► both Cross and Server Side Scripting

Question No: 9 ( Marks: 1 ) - Please choose one Which one is the responsible to manage “Internal processes”?

► E-business ► E-commerce

► E-marketing ► All of the given

Question No: 10 ( Marks: 1 ) - Please choose one

The first control statement in a for loop usually

► sets the termination condition ► increments a counter

► creates a control variable ► none of the above

Question No: 11 ( Marks: 1 ) - Please choose one

You define a method using ► obj.method

► obj.method[] ► obj.method()

► obj-method

Question No: 12 ( Marks: 1 ) - Please choose one What is the default scripting language in ASP?

Page 130: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► EcmaScript ► JavaScript

► Java ► VBScript 85

Question No: 13 ( Marks: 1 ) - Please choose one

Following are malicious programs EXCEPT ----------------- . ► Back doors

► Trojan Horses ► Firewalls 94

► Worms

Question No: 14 ( Marks: 1 ) - Please choose one Outside attacks on a network include the following, EXCEPT --------------- .

► Password attack ► DoS

► Back doors

► IP spoofing

Question No: 15 ( Marks: 1 ) - Please choose one At which layer of the OSI model the circuit level firewall operates?

► Application layer ► Presentation layer

► Network layer ► Transport layer 96

Question No: 16 ( Marks: 1 ) - Please choose one

The process of scrambling a message with the help of a key is called -------------- . ► Cryptography 100

► Filtering ► Transposition

► Encryption

Question No: 17 ( Marks: 1 ) - Please choose one

In a ring network, every device has exactly ______ neighbors for communication purpose.

► more than two ► Two

► Four ► None of these

Question No: 18 ( Marks: 1 ) - Please choose one

What is identified by the tag <FRAMESET COLS="20%,60%,20%">?

► Horizontal frame

► Vertical Frame 31

► Top Frame

► Bottom Frame

Page 131: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 19 ( Marks: 1 ) - Please choose one Why we use reset tag in HTML?

► To remove the text written in Notepad. ► To remove the text written in between <body> and </body>tag.

► To remove the text written in between <head> and </head> tag. ► To remove the text written in between <form> and </form> tag.

Question No: 20 ( Marks: 1 ) - Please choose one

Network Interface Card is operated at ► Application layer

► Session layer ► Network layer

► Datalink layer 6

Question No: 21 ( Marks: 2 )

What value will be printed after executing the following statement in JavaScript:

document.write( Math.pow(3, 2) );

Question No: 22 ( Marks: 2 ) What is a web server?

Question No: 23 ( Marks: 3 )

To calculate the area of a circle the formula pi r squared is used. How would you code it in JavaScript?

Question No: 24 ( Marks: 3 )

Name four commonly used web server operating systems.

Question No: 25 ( Marks: 5 )

Write the types of firewalls. Only names? Explain these briefly

Question No: 26 ( Marks: 5 ) Write the JavaScript code which will display the following in a web page using a FOR

loop: The number is 0

The number is 1 The number is 2

The number is 3 The number is 4

The number is 5

Page 132: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

MIDTERM EXAMINATION Spring 2010

IT430- E-Commerce (Session - 6) http://groups.google.com/group/vu-askari?hl=en

www.vuaskari.com

Question No: 1 ( Marks: 1 ) - Please choose one

Academic institutions, religious organizations and government using --------------------- e-commerce classification

► Business-to-Business(B2B) ► Intra Business

► Non Business EC 2 ► Business-to-consumer(B2C)

Question No: 2 ( Marks: 1 ) - Please choose one

In which protocol, the messages are not deleted from email server.

► SMTP

► POP3

► IMAP 18

► ICMP

Question No: 3 ( Marks: 1 ) - Please choose one What is the correct HTML tag for adding a background color?

► <background>yellow</background> ► <body bgcolor="yellow">

► <body color="yellow"> ► None

Question No: 4 ( Marks: 1 ) - Please choose one

Which HTML tag is used to define an internal style sheet?

► <css>

► <script>

Page 133: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► <style> (Ans)

► <sheet>

Question No: 5 ( Marks: 1 ) - Please choose one

What is the correct HTML for making a hyperlink? ► <a href="http://www.w3schools.com">W3Schools</a> (Ans)

► <a name="http://www.w3schools.com">W3Schools.com</a> ► <a url="http://www.w3schools.com">W3Schools.com</a>

► <a>http://www.w3schools.com</a>

Question No: 6 ( Marks: 1 ) - Please choose one If we leave out the target attribute in frame tag and link was clicked ,the document

loads into the window

► In Same page ► In other blank page.

► To display browser error. ► All of the options.

Question No: 7 ( Marks: 1 ) - Please choose one

What does mean by != comparison operator? ► Equal to

► Not ► Equal

► Not Equal 58

Question No: 8 ( Marks: 1 ) - Please choose one What does the string. match (“abc”) object do?

► Concatenates the “abc” word to other “abc” words

► Matches the “abc” words with other “abc” words

► It does replacement of abc word with other words

► All of the above

Question No: 9 ( Marks: 1 ) - Please choose one var txt="Hello World!" document.write(txt.length), it would return the length

as.

► 10

Page 134: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► 11

► 12

► 13

Question No: 10 ( Marks: 1 ) - Please choose one Which of the following property falls in HTTP?

►Stateless (Ans)

► Stateful

► Temporary

► All of these

Question No: 11 ( Marks: 1 ) - Please choose one

Which one of the following certifies the binding between public key and its owner. ► CA

► KDC

► TLS

► Firewall

Question No: 12 ( Marks: 1 ) - Please choose one

Cyclical Redundancy Check (CRC), takes place in which layer of OSI Model. ► Session Layer

► Transport Layer

► Network Layer ► Data link layer

Question No: 13 ( Marks: 1 ) - Please choose one

How can you convert information consisting of comma separated values into an array?

► txtArray = txt.indexOf(','); ► txtArray = txt.split(','); page 70

► txtArray = txt.trim(','); ► txtArray = txt.substring(',');

Question No: 14 ( Marks: 1 ) - Please choose one

The control statement on a while loop is tested ► before each time through the loop

► after each time through the loop

► once at the start ► once at the end

Page 135: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 15 ( Marks: 1 ) - Please choose one

Which SQL statement is used to delete data from a database? ► DELETE

► COLLAPSE ► REMOVE

► DISCARD

Question No: 16 ( Marks: 1 ) - Please choose one A program that performs a specific function such as creating invoices/bills or

processing payment received from customers is called a/an ---------------. ► Middleware

► Web Service

► CRM Software ► Appplication Program page 92

Question No: 17 ( Marks: 1 ) - Please choose one

Which firewall uses strong user authentication to verify identity of a host attempting to connect to the network?

► Packet filter firewall ► Circuit level firewall

► Application gateway firewall ► Hybrid firewall

Question No: 18 ( Marks: 1 ) - Please choose one

In what form are style rules presented?

► Selector { property: value }

► selector { property= value } ► selector ( property: value )

► selector ( property= value ) Question No: 19 ( Marks: 1 ) - Please choose one

Why we use reset tag in HTML? ► To remove the text written in Notepad.

► To remove the text written in between <body> and </body>tag. ► To remove the text written in between <head> and </head> tag.

► To remove the text written in between <form> and </form> tag.

Question No: 20 ( Marks: 1 ) - Please choose one When data moves upward in the OSI stack it is called

► Encapsulation ► De-encapsulation

Page 136: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► Synchronization ► None of these

Question No: 21 ( Marks: 2 )

What does PPTP stand for?

Question No: 22 ( Marks: 2 ) What are the keywords to define a variable and a function in JavaScript?

Question No: 23 ( Marks: 3 )

Identify the object, property and method in the following: Math.sin(45)

Math.PI

Question No: 24 ( Marks: 3 ) Performance of web servers can be evaluated mainly on the basis of two factors.

What are they?

Question No: 25 ( Marks: 5 )

Write the code for a web page displaying a button named "Testing". After clicking that button an alert should be displayed saying "The test is successful".

Question No: 26 ( Marks: 5 )

What is the difference between an interpreted and a compiled language? Give one example of each.

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 6) http://groups.google.com/group/vu-askari?hl=en

www.vuaskari.com

Question No: 1 ( Marks: 1 ) - Please choose one In star network features a central connection point called a "hub" that ought to be

only a hub. ► True

Page 137: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► False

Question No: 2 ( Marks: 1 ) - Please choose one Switch is a device that joins multiple computers together within one local area

network (LAN). ► True

► False

Question No: 3 ( Marks: 1 ) - Please choose one Switch generally contains more "intelligence" than a hub.

► True ► False

Question No: 4 ( Marks: 1 ) - Please choose one In which protocol, the messages are not deleted from email server.

http://groups.google.com/group/vu-askari?hl=en

► SMTP

► POP3

► IMAP 18

► ICMP

Question No: 5 ( Marks: 1 ) - Please choose one

Which protocol does Virtual university use to send email to student Accounts? ► SMTP

► POP ► IMAP

► TCP

Question No: 6 ( Marks: 1 ) - Please choose one For which one of the following,<MARQUEE ...> tag can work better

► News headlines ► Announcements

► Sound pulgin

► Movie controls

Question No: 7 ( Marks: 1 ) - Please choose one Can you add a style in a single place on a page ?

► Yes, with a style-definition written into the tag ► Yes, with a global style definition that redefines the tag.

Page 138: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► No - CSS can only be defined for entire pages.

Question No: 8 ( Marks: 1 ) - Please choose one Which CSS tag is used to place an image that would remain when user scrolls

down or up the page?

http://groups.google.com/group/vu-askari?hl=en

► background-attachment: fixed 48

► background-attachment: scroll

► background-attachment: up

► All of these

Question No: 9 ( Marks: 1 ) - Please choose one What shall come in blanks for proper result,

Here blanks are numbered with 1,2 and 3 <html>

<head> <SCRIPT language="JavaScript">

Var num1, var num2 Document.container .result.value=parseFloat(num1)-parseFloat(num2)

</script>

</head> <body>

<FORM name=”---------1-----------”> <input type=”----------2-------” name=”-------3---------” maxlength=”5”>

</form> </body>

</html> ► container, text and result

► result, value and container ► container , button and value

► result, container and text

Question No: 10 ( Marks: 1 ) - Please choose one Correct syntax of "for" loop is :

► for (i = 0; i <= 5)

► for i = 1 to 5 ► for (i <= 5; i++)

►for (i = 0; i <= 5; i++)

Question No: 11 ( Marks: 1 ) - Please choose one CGI stands for

► Common Gate Information

► Common Gate Interface 82

Page 139: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

► Common Goal Interest

► Common Global Interaction

Question No: 12 ( Marks: 1 ) - Please choose one

Which of the following property falls in HTTP?

►Stateless ► Stateful

► Temporary

► All of these

Question No: 13 ( Marks: 1 ) - Please choose one What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

► <?xml-stylesheet type="text/xsl" href="/mystyle.xsl" ?> ► <link type="text/xsl" href="/mystyle.xsl" />

► <stylesheet type="text/xsl" href="/mystyle.xsl" /> ► <?stylesheet type="text/xsl" href="/mystyle.xsl" ?>

Question No: 14 ( Marks: 1 ) - Please choose one

Which of the following does not interpret its code?

► ASP ► PHP

► JSP 85 ► Coldfusion

Question No: 15 ( Marks: 1 ) - Please choose one

Asymmetric cryptography is also called -------------- . ► Public key cryptography 100

► Private key cryptography ► Substitution cryptography

► Transposition http://groups.google.com/group/vu-askari?hl=en

Question No: 16 ( Marks: 1 ) - Please choose one

Digital signature uses --------- . ► Symmetric cryptography

► Private key cryptography

► Public key cryptography

Page 140: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

► Hash function

Question No: 17 ( Marks: 1 ) - Please choose one Which one of the following is NOT a valid JavaScript variable?

► _name1 ► $studentScore

► first_name ► 2ndName 54

Question No: 18 ( Marks: 1 ) - Please choose one

Which of these is the correct HTML code for creating a reset button? ► <input type =”button” name=”reset” value=”reset”>

► <input type=”resetButton” value=”Clear”> ► <input type=”reset” value=”reset”>

► <input type=”button” name=”reset” value=”clear”>

Question No: 19 ( Marks: 1 ) - Please choose one

Why we use reset tag in HTML? ► To remove the text written in Notepad.

► To remove the text written in between <body> and </body>tag. ► To remove the text written in between <head> and </head> tag.

► To remove the text written in between <form> and </form> tag.

Question No: 20 ( Marks: 1 ) - Please choose one http://cs.vu.edu is an example of

► Two zone domain name ► Three zone domain name

► Four zone domain name ► Five zone domain name

Question No: 21 ( Marks: 2 )

How Certification Authority (CA) issues the certificates? Describe briefly

Question No: 22 ( Marks: 2 )

Discuss the role of child element tags while in writing XML code.

Question No: 23 ( Marks: 3 )

Performance of web servers can be evaluated mainly on the basis of two factors. What are they?

Question No: 24 ( Marks: 3 )

Write a function for the addition of two numbers?

Question No: 25 ( Marks: 5 ) Write the JavaScript code which will display the following in a web page using a FOR

loop: The number is 0

Page 141: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

The number is 1 The number is 2

The number is 3 The number is 4

The number is 5

Question No: 26 ( Marks: 5 ) What is the difference between an interpreted and a compiled language? Give one

example of each.

MIDTERM EXAMINATION

Spring 2010

IT430- E-Commerce (Session - 2) Ref No: 1406731

Time: 60 min

Marks: 40

Student Info

StudentID: MC090406623

Center: OPKST

ExamDate: 5/28/2010 12:00:00 AM

For Teacher's Use Only

Q No. 1 2 3 4 5 6 7 8 Total

Marks

Q No. 9 10 11 12 13 14 15 16

Marks

Q No. 17 18 19 20 21 22 23 24

Page 142: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

Marks

Q No. 25 26

Marks

Page 143: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 1 ( Marks: 1 ) - Please choose one

Academic

institutions, religious organizations and government using --------------------- e-commerce classification

► Business-to-Business(B2B)

► Intra Business

► Non Business EC (Ans)

► Business-to-consumer(B2C)

Question No: 2 ( Marks: 1 ) - Please choose one In which

protocol, the messages are not deleted from email server.

► SMTP

► POP3

► IMAP (Ans)

► ICMP

Question No: 3 ( Marks: 1 ) - Please choose one

What is the

correct HTML tag for adding a background color?

► <background>yellow</background>

► <body bgcolor="yellow"> (Ans)

► <body color="yellow">

► None

Question No: 4 ( Marks: 1 ) - Please choose one Which HTML

tag is used to define an internal style sheet?

► <css>

► <script>

► <style> (Ans)

► <sheet>

Question No: 5 ( Marks: 1 ) - Please choose one

Page 144: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

What is the

correct HTML for making a hyperlink?

► <a href="http://www.w3schools.com">W3Schools</a> (Ans)

► <a name="http://www.w3schools.com">W3Schools.com</a>

► <a url="http://www.w3schools.com">W3Schools.com</a>

► <a>http://www.w3schools.com</a>

Question No: 6 ( Marks: 1 ) - Please choose one If we leave out

the target attribute in frame tag and link was clicked ,the document loads into the window

► In Same page (Ans)

► In other blank page.

► To display browser error.

► All of the options.

Question No: 7 ( Marks: 1 ) - Please choose one What does

mean by != comparison operator?

► Equal to

► Not

► Equal

► Not Equal (Ans)

Question No: 8 ( Marks: 1 ) - Please choose one What

does the string.match (“abc”) object do?

► Concatenates the “abc” word to other “abc” words

► Matches the “abc” words with other “abc” words (Ans)

► It does replacement of abc word with other words

► All of the above

Question No: 9 ( Marks: 1 ) - Please choose one var

txt="Hello World!" document.write(txt.length), it would return the length as.

► 10

► 11

► 12 (Ans)

► 13

Page 145: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

Question No: 10 ( Marks: 1 ) - Please choose one Which of the

following property falls in HTTP?

► Stateless (Ans)

► Stateful

► Temporary

► All of these

Question No: 11 ( Marks: 1 ) - Please choose one Which one of

the following certifies the binding between public key and its owner.

► CA (Ans)

► KDC

► TLS

► Firewall

Question No: 12 ( Marks: 1 ) - Please choose one Cyclical

Redundancy Check (CRC), takes place in which layer of OSI Model.

► Session Layer

► Transport Layer (Ans)

► Network Layer

► Data link layer

Question No: 13 ( Marks: 1 ) - Please choose one How can you

convert information consisting of comma separated values into an array?

► txtArray = txt.indexOf(','); (Ans)

► txtArray = txt.split(',');

► txtArray = txt.trim(',');

► txtArray = txt.substring(',');

Question No: 14 ( Marks: 1 ) - Please choose one

Page 146: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

The control

statement on a while loop is tested

► before each time through the loop (Ans)

► after each time through the loop

► once at the start

► once at the end

Question No: 15 ( Marks: 1 ) - Please choose one Which SQL

statement is used to delete data from a database?

► DELETE (Ans)

► COLLAPSE

► REMOVE

► DISCARD

Question No: 16 ( Marks: 1 ) - Please choose one A program

that performs a specific function such as creating invoices/bills or processing payment received from

customers is called a/an ---------------.

► Middleware

► Web Service

► CRM Software

► Appplication Program (Ans)

Question No: 17 ( Marks: 1 ) - Please choose one Which

firewall uses strong user authentication to verify identity of a host attempting to connect to the network?

► Packet filter firewall

► Circuit level firewall

► Application gateway firewall (Ans)

► Hybrid firewall

Question No: 18 ( Marks: 1 ) - Please choose one In what form

are style rules presented?

► selector { property: value }

► selector { property= value } (Ans)

► selector ( property: value )

► selector ( property= value )

Question No: 19 ( Marks: 1 ) - Please choose one Why we use

reset tag in HTML?

► To remove the text written in Notepad. ► To remove the text written in between <body> and </body>tag. (Ans) ► To remove the text written in between <head> and </head> tag. ► To remove the text written in between <form> and </form> tag.

Question No: 20 ( Marks: 1 ) - Please choose one

Page 147: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

COMPOSED BY

MUHAMMAD USMAN BUTT

The best mind-altering drug is truth.

When data moves upward in the OSI stack it is called

► Encapsulation

► De-encapsulation

► Synchronization (Ans) ► None of these

Question No: 21 ( Marks: 2 ) What does

PPTP stand for?

Ans:

PPTP stads for Point to Point

Tunneling Protocol (PPTP

Question No: 22 ( Marks: 2 ) What are the

keywords to define a variable and a function in JavaScript?

A variable in JavaScript can be defined using the keyword „var‟ and a function by the

Keyword „function. A function can be defined in the following format : function myfunction() { //

some code }

Question No: 23 ( Marks: 3 ) Identify the

object, property and method in the following:

Math.sin(45)

Math.PI

Ans:

Math.PI we are using for mathematical calculation.

Question No: 24 ( Marks: 3 ) Performance

of web servers can be evaluated mainly on the basis of two factors. What are they?

Ans:

We can evaluate web servers performance by below basic factors.

Performance of web servers can be evaluated mainly on the basis of two factors:

Throughput, which is the number of http requests that a particular server hardware and

Page 148: COMPOSED BY MUHAMMAD USMAN BUTT...COMPOSED BY MUHAMMAD USMAN BUTT The best mind-altering drug is truth. MIDTERM EXAMINATION Spring 2009 IT430- E-Commerce (Session - 1) Question No:

An investment in knowledge always pays the best interest

software can handle in the unit time; and

Response time, which is the amount of time a web server requires to process one request.

Web server hardware architectures

Question No: 25 ( Marks: 5 ) Write the code

for a web page displaying a button named "Testing". After clicking that button an alert should be displayed

saying "The test is successful".

Question No: 26 ( Marks: 5 ) What is the

difference between an interpreted and a compiled language? Give one example of each.

Ans:

In a compiled language we compile to code or convert into machine language using a software called

compiler as we can case C++

Example C++

with interpret language we interpret the code (line by line) at run time using a program called

interpreter browser is an interpreter.

Example Browser…