You are on page 1of 9

MIDTERM 

EXAMINATION

Spring 2009

IT430- E-Commerce (Session - 4)

http://www.vustudents.net
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

         

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

http://www.vustudents.net
 

       ► 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>

http://www.vustudents.net
   

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?

       ► <

       ► >

       ► =

       ► !=

   

http://www.vustudents.net
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++).

http://www.vustudents.net
   

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.

http://www.vustudents.net
       ► 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

   

http://www.vustudents.net
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. 

    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 )

http://www.vustudents.net
What is cryptography? What techniques are used for cryptography?

   

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>

http://www.vustudents.net
<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>

http://www.vustudents.net

You might also like