You are on page 1of 3

RICHFIELD GRADUATE INSTITUTE OF TECHNOLOGY (PTY) LTD

HIGHER EDUCATION AND TRAINING

FACULTY OF INFORMATION TECHNOLOGY

PROGRAMMING 732 (PRACTICAL)

2ND SEMESTER NATIONAL FINAL EXAMINATION

DURATION: 2 HOURS MARKS: 100 DATE: 21 NOVEMBER 2019

EXAMINER: ROYAL GORONGA MODERATOR: SIMON GOBVU

This paper consists of 4 questions and 3 pages including this page.

PLEASE NOTE THE FOLLOWING:


1. Ensure that you are writing the correct Examination paper, and that there are no missing pages.
2. You are obliged to enter your student details on the answer sheet. The answer sheet provided
are the property of Richfield Graduate Institute of Technology (Pty) Ltd and all extra sheets must
be handed to the invigilator before you leave the examination room.
3. If you are found copying or if there are any documents / study material in your possession, or
writing on parts of your body, tissue, pencil case, desk etc. your answer sheet will be taken away
from you and endorsed accordingly. Appropriate disciplinary measures will be taken against you
for violating the code of conduct of Richfield Graduate Institute of Technology (Pty) Ltd
Examinations Board. Therefore, if any of these materials are in your possession you are requested
to hand these over to the invigilator before the official commencement of this paper.
4. The question paper consists of 2 sections.
 Section A is compulsory
 Section B comprises of 3 questions and you are required to answer only two questions

SUGGESTED TIME REQUIRED TO ANSWER THIS QUESTION PAPER


NUMBERS QUESTIONS MARKS TIME IN MINUTES
SECTION A: COMPULSORY
1 Question One (Compulsory) 40 50
SECTION B: ANSWER ANY TWO QUESTIONS
2 Question Two (Optional) 30 35
3 Question Three (Optional) 30 35
4 Question Four (Optional) 30 35
TOTAL 100 120

Initiated By Academic Director Dr Stephen Akandwanaho Document No Exams /02/2019


Authorised By Group Chief Executive Officer Stefan Ferreira Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 01/10/2019
Document PROG_732 (P) Issue Date 01/10/2019

Page 1 of 3
SECTION A: (THIS SECTION IS COMPULSORY) (40 MARKS)

QUESTION ONE (40 MARKS)

1.1 Demonstrate your understanding of Action Event listeners, Layouts and other swing
components by creating jframe form with three buttons, a textfield and a label namely
counter. If one clicks counting up button the textfield should count up on every click. If
you click counting down it will start counting down from where the other button left. It
should also set the texfield to zero if reset is clicked as shown from Fig 1.1 below:

Fig 1.1

NB. All swing components and listeners are added manually. Do not use drag and drop on
this question otherwise marks will be heavily deducted. This applies to this question only
(40)

SECTION B: ( ANSWER TWO QUESTIONS FROM THIS SECTION) (60 MARKS)

QUESTION TWO (30 MARKS)

2.1 Using MySQL create database Members with a table memberData of a newly created
stokvel. The organiser should be able to enter member information such as (Name,
Surname, DateOfBirth, ID andContact number) of the members.

Using Java, create frame that will be used to enter member information. The Frame should
have a button and textfields. Each textfield should have a label. You should also be able to
delete a member from the database. Hence the frame should have two panels separating
insertion and deletion of members

Note: you can use drag and drop to create frames (30)

QUESTION THREE (30 MARKS)

3.1 Write a Socket-based Java tcp client-server in which the sever program responds to client
messages as follows: When it receives a message from a client, it simply converts the
message into all uppercase letters and sends back the same to the client. Write both client
and server programs demonstrating this. Use a textfield to enter the message and a
textarea to display the message from the server and a button to send.

Use Jframes to create the client interfaces


(30)

Initiated By Academic Director Dr Stephen Akandwanaho Document No Exams /02/2019


Authorised By Group Chief Executive Officer Stefan Ferreira Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 01/10/2019
Document PROG_732 (P) Issue Date 01/10/2019

Page 2 of 3
QUESTION FOUR (30 MARKS)

4.1 Write a java program to accept the details of Teacher (TId, Name, Address) from the user
and insert it into the Database using servlets and jsp or html. The program should the able
to pop up a message “successfully added” when the details are added. (30)
TOTAL: 100 MARKS

Initiated By Academic Director Dr Stephen Akandwanaho Document No Exams /02/2019


Authorised By Group Chief Executive Officer Stefan Ferreira Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 01/10/2019
Document PROG_732 (P) Issue Date 01/10/2019

Page 3 of 3

You might also like