Get premium membership and access revision papers, questions with answers as well as video lessons.
Got a question or eager to learn? Discover limitless learning on WhatsApp now - Start Now!

Bit2210:Internet Programming Question Paper

Bit2210:Internet Programming 

Course:Bachelor Of Information Technology

Institution: Meru University Of Science And Technology question papers

Exam Year:2010



1
a. Define the following terms and give the importance of each in web browsing. (6 Marks) i. Server side scripts ii. Cascading style sheet iii. Web server
b. What is the importance of client side scripting? (3 Marks)
c. Describe the following JDBC interface giving the syntax in each: Driver, Connection and ResultSet. (6 Marks)
d. Before compiling a servlet program, a library file has to be included in the classpath. Give the name of this library file. (2 Marks)
e. enclosed in a try-catch block? (2 Marks)
f. Describe any two internet connection methods. (4 Marks)
g. Distinguish between POST and GET methods in an HTML form. (4 Marks)
h. Describe any three issues that can arise when browsing the internet. (3 Marks)
QUESTION TWO – 20 MARKS
a. What is session tracking? Describe any two techniques for session tracking. (5 Marks) b. Outline any three benefits of using client side programming in any internet applications. (3 Marks) c. Write JavaScript code that will validate the following HTML form elements: (12 Marks)
2
QUESTION THREE – 20 MARKS
a. Describe the four basic methods that constitute the lifecycle of an Applet. (8 Marks)
b. Write a servlet program that generates the HTML form above (Question 2(iii)) and on clicking the submit button will send it to a database.SRegDB in a table Registration. (12 Marks)
QUESTION FOUR – 20 MARKS
a. What output stream should you use to send images to the browser? What content types do you have to set for the response? (4 Marks)
b. Write a servlet that enables the user to change the password from an HTML form, as shown in figure (a) below. (4 Marks)
Suppose that the user information is stored in a database table named Account with three columns, username, password and name, where name is the real name of the user. The servlet performs the following tasks:
i. Verify that the username and old password are in the table. If not, report the error and redisplay the HTML form. (4 Marks)
ii. Verify that the new password and the confirmed password are the same. If not, report this error and redisplay the HTML form. (4 Marks)
iii. If the user information is entered correctly, update the password and report the status of the update to the user as shown in figure (b)
3
QUESTION FIVE – 20 MARKS
a. Describe the importance of the following objects:HTTPServletRequest and HTTPServletResponse. (4 Marks) b. Describe the lifecycle of a servlet program. (6 Marks) c. Create a servlet that displays the current date and time. (10 Marks)






More Question Papers


Popular Exams



Return to Question Papers