Get premium membership and access revision papers, questions with answers as well as video lessons.
Introduction To Internet Programming Question Paper
Introduction To Internet Programming
Course:Bachelor Of Business Information Technology
Institution: Strathmore University question papers
Exam Year:2010
Answer question 1 in section A and any Other TWO
Question1[20 marks]
(a) In reference to socket programming,explain what each of the following functions do:
(i)Listen() [3 marks]
(ii) Accept()
(iii) Connect
(b) Explain the difference client server and peer to peerarchitectures[4 marks]
(c) What advantages does a circuit switched network have over a packet switched network?[4 marks]
(d) What isthe meaning of DNS? Explain how domain names are resolved on the internet[3 marks]
Question2[20 marks]
(a)
(i) Supppose that between a sending host and a receiving host there is exactly one packet switch.The transmission rates between the sending host and the switch and between the switch and the receiving hostare R1 and R2 ,respectively.Assuming that the router uses store -and-forward packet switching, what is the totalend-to-end delay to send a packet of length L?[6 marks]
(ii)What is the difference between persistent HTTP with pipelining and persistent HTTP without pipelining. wWhich of the two
is used by HTTP /1.1?[4 Marks](
iii)Explain what is meant by physical media that Ethernet can run over .Give two examples[4 marks]
(b)Write short notes on the following
(i) Local name servers [2 Marks]
(ii) Root name servers [2 Marks]
(iii) Authoritative name servers [2 Marks]
Question 3: [20 Marks]
(a)
(i) Why do HTTP, FTP, SMTP, POP3 and IMAP run on top of TCP rather than UDP? [3 Marks]
ii) Consider an e-commerce site that wants to keep a purchase record for each of its customers. Describe
how this can be done with HTTP authentication. How about with cookies? [6 Marks]
(b)
(i) What is the difference between persistent HTTP with pipelining and persistent HTTP without pipelining?
Which of the two is used by HTTP/1.1? [4 Marks]
(ii) Each Internet host will have at least one local name server and one authoritative name server. What role
does each of these servers have in DNS? [4 Marks]
(iii) Briefly describe how the Internet's connection-oriented service provides reliable transport. [3 Marks]
Question 4: [20 Marks]
(a)
(i) On your homework Web page, you want to present a warning message in red and bold. Write one line of
HTML that will make that happen. The content of the warning message is up to you. [4 Marks]
(ii) What will the following JavaScript code print? [7 Marks]
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
for (var i=0; i<=5; i++) {
if (i>=0 && i< 3 ) {
document.write(" Wait... ");
}else{
document.write(" Go! ");
}
}
document.write("
Excellent!
");
</SCRIPT>
(iii) What will the following JavaScript code print? [6 Marks]
for (var i=0; i<5; i++) {
if (i != 2) {
document.write(i + " ... ");
}
}
document.write("Liftoff!
");
(b) What is meant by a handshaking protocol? [3 Marks]
Question 5: [20 Marks]
(a) A UDP server only needs one socket, whereas the TCP server needs two sockets. Why? If the TCP server
were to support n simultaneous connections, each from a different client host, how many sockets would the
TCP server need? [6 Marks]
(b) For the client-server application over TCP described in class, why must the server program be executed
before the client program? For the client-server application over UDP described in class, why may the client
program be executed before the server program? [4 Marks]
(c) What information is used by a process running on one host to identify a process running on another host?
[2 Marks]
(d) How does the router know the right LAN addr to use to contact another machine on its LAN?
i.e. given an IP addr, what is the LAN addr of that machine? [4 Marks]
(e) Explain what happens if a program calls read() on a socket that has no data. Can other programs make use of
this hardware during this period? Explain. [4 Marks]
More Question Papers