School of System and Technology: Department of Computer Science
School of System and Technology: Department of Computer Science
SECTION 01
Question 01 (03 Points)
Write an algorithm to visit the double linked list consisting of thirteen nodes in
reverse order
Question 02 (02 Points)
Write Expression in postfix form.
(b+a-(b+c*a+(c*d-a)+a)-c)
Question 03 (05 points)
Add last digit of your own id to all digits in your student id e.g. if your id is
F2018266123 then exclude F and 3+ (all digits in your id).
Now the series of numbers should be,
5 4 4 11 5 9 9 4 5 6
a) Generate a Binary search tree
b) Now traverse the tree in,
I. Infix form
II. Prefix form
III. Postfix form
Question 04 (05 points)
Consider your own Student ID, e.g. if your Id is F2018266123, then consider 3=a,
2=b, 1=c, 6=d, 6=e, 2=f, and 1=g mean assign alphabets in reverse order, now
replace the corresponding digits with the alphabets in the following expression and
evaluate.
Note: If you have 0 (zero) in your ID, Simply replace it with 9.
acb+-eaf/+*g↑b+
GOODLUCK
Page 1 of 1