Get premium membership and access revision papers, questions with answers as well as video lessons.

Bit 2217 : Internet Application Programming 11 Question Paper

Bit 2217 : Internet Application Programming 11 

Course:Bachelor Of Information Technology

Institution: Jomo Kenyatta University Of Agriculture And Technology question papers

Exam Year:2013



JOMO KENYATTA UNIVERSITY OF AGRICULTURE AND TECHNOLOGY

UNIVERSITY EXAMINATIONS 2012/2013

EXAMINATION FOR THE DEGREE OF BACHELOR OF INFORMATION TECHNOLOGY

BIT 2217 : INTERNET APPLICATION PROGRAMMING 11

DATE: MARCH 2013 TIME: 2 HOURS

QUESTION ONE [30 MARKS]

(a) Write, compiles and run a simple java applet with an HTML container. [4 marks]
(b) Write, compile and run a java application using a dialog box. [4 marks]
(c) Write a simple java statement to add two variables called a and b together and store the result in a variable called x. [6 marks]
(d) Study the code fragments below. Identify any classes and/or objects that you see. Develop the last line of code so that, there is a new apple object named a.

Public Class Apple
{
Private int color;
Private int type;

Public int getcolor;
{
Return color;
}
Public int getype ( );
{
Return type;
}
}
Apple a = new Apple ( ) ;
Apple b = new apple ( ); [6 marks]
(e) Write a program that creates a class named my rectangle that has fields for width and height. Create a constructor method that can set the initial values of the variables. Also define two accessor methods that will return the perimeter and they are of the rectangle.
[10 marks]

QUESTION TWO

(a) Explain the (4) four benefits of using java as an o. og language [8 marks]
(b) Explain how the concept of encapsulation and delegation relates to each other and how they differ from each other. [12 marks]

QUESTION THREE

(a) Explain the difference between language syntax and language semantics. [8 marks]
(b) Discuss the relationship and differences between java applet and java application.[12 marks]

QUESTION FOUR

(a) Explain the five steps involved when writing a java program. [8 marks]
(b) Using a bicycle as your model, show your understanding of the topics association, composition and inheritance. Write out your explanation or draw diagrams to illustrate how parts of a bicycle are related. [12 marks]






More Question Papers


Popular Exams



Return to Question Papers