Académique Documents
Professionnel Documents
Culture Documents
ETRONAS
FINAL EXAMINATION
SEPTEMBER 2013 SEMESTER
COURSE :
TCB1013/T881073/TC82073 STRUCTURED
PROGRAMMING / STRUCTURED PROGRAMMING
AND DATABASE
DATE :
TIME :
9:00 AM
INSTRUCTIONS TO CANDIDATES
1.
SECTION A - Answer ALL questions in this section on the OMR sheet given.
SECTION B - Answer ALL questions in this section on the Answer Booklet given.
2.
3.
4.
ALL assumptions.
5.
Note
Universiti
Teknologi
PETRONAS
TCB
SECTION B
3/TB
B 1 07
3fi
CB.207 3
There are THREE (3) questions in this section. Answer all questions in the answer
booklet provided.
1.
a.
.
.
[10 marks]
b.
Generate
first
sum of all the integers between first and last inclusive. Thus, for
example,
,'
-5
[10 marks]
14
TCB
2
a.
f 1l L
-. /
ll
float x: 3.8;
n: int(x);
cout<< 'rt - tr << n <<end1;
[10 marks]
Dev
Y-
ifx>0
+10 f x-0
ifx<0
15
TCB
3.
a.
3/TBB
07 3tT CB.207 3
Emp_phone,
Dept_Code)
b.
Employee
Name
ID
Phone
Department
Gode
Address
111667
03-27739001
MKT
No 5, Jalan
Permaisuri 3
[3 marks]
c.
The company you work for wants to digitize their time cards. You have
been asked to design the database for submitting and approving time
cards. Design the database ER diagram with the following information:
.
.
.
.
o
.
.
.
.
o
o
.
- END OF PAPER 17