Itec 4010
Itec 4010
Itec 4010
Part A: Multiple choice (30%, 1 mark each question) - Circle one answer
2. How many web servers exists in the world? ( select the closest number)
a. 1 million
b. 10 millions
c. 100 millions
d. 1 billion
e. 100,000
3. In a peer to peer architecture, which of the following is not true (choose the most
likely)
a. Each participating software entity is both a client and a server
b. Data is decentralized, and spread across each peer
c. Napster is an example of peer to peer application
d. The architecture is not reliable, if one peer fails, the whole system fails
e. It scales well
1
Part B: Short Answer Questions (35%, marks indicated next to each question)
2. Describe 4 layers in a client server system (can use a diagram). Explain the role of
each layer
1. Write an html markup that displays: “to learn more about York University, click
here”
Note: “here” is a hyperlink to yorku.ca
2. In a network,
message transmission time = latency+length/(data transfer rate)
Q: how long takes to transfer 1MB data between two computers located at 10000Km
of each other? Assume a transmission rate of 20KB/s and that data travels with the
speed of light
A: T=(10000/300000)+ 1000/20=
3. In a database “articles”, with 2 columns “title” and “ content”, if I want to find all
rows that contain „tricky‟ and do not contain „database‟ how does the query looks
like?
2
4. For the web service descriptor bellow(wsdd file), how does the provider looks
like? Write the name of the class and the method‟s signature.
<deployment xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="Foo" provider="java:RPC" style="wrapped" use="literal">
<parameter name="className" value="Foo"/>
<operation qname="foo" returnQName="fooReturn" returnType=“xls:string"
>
<parameter qname="bar" type=“xls:string"/>
</operation>
</service>
</deployment>
Answer
Class Foo{
```````