A&B
¥
University
FACULTY OF ENGINEERING
FINAL EXAMINATION
Student 1D (in Figures)? [| |
Student ID (in Words)
Course Code & Name EE209 Computing for Engineers
Semester : dan — April 2017
Tnstructor/Examiner/Lecturer : Dr. Neoh Siew Chin
Duration 23 hours
INSTRUCTIONS TO CANDIDATES:
“FIVE (5) Questions set. Attempt ALL. (100 marks)
This question paper consists of 4 pages, excluding the cover page. Answers to the
questions are to be written in the answer booklet. Candidates are not allowed to
bring into the Examination Hall textbooks, lecture notes, files or any
nauthorized materials except writing equipment and scientific calculator.
Electronic d sar tly prohibited.
This question paper must be submitted along with all used and/or unused rough
papers and/or graph papers (if any). Candidates are NOT allowed to take any
examination materials out of the examination hall
Warning:
‘The University Examination Board of UCSI University regards cheating as a most
serious offence and will not hesitate to mete out the appropriate punitive actions
according to the severity of the offence committed, and in accordance with the clauses
stipulated in the Students’ Handbook, up to and including expulsion from UCSt
University.Jar-Apr 2017 Final Examination E209 Computing for Engineers
Ql(a) Consider the following C++ program (Figure Qi(a)). Generate the output
of the program, If there is a blank space, indicate blank space by writing
symbol Cl If there is a blank line, indicate a blank line in the output by
writing blank Line.
winclude
main()
{
int n= 4, k = 25
cout << +n << endl;
cout << n << endl;
cout << nt# << endl;
cout << n << endl;
cout << -n << endl;
cout << --n << endl;
cout << n << endl;
cout << n-- << endl;
cout << n << endl;
cout