2016
2016
Instructions:
1. You have to answer each of 30 questions. Each question will carry 5 marks.
2. Total time : 1.30 hour
1. Multiply the following two 2 digit numbers with only three 1 bit multiplication.
16
x 35
--------
??
2. Implement max heap sort for the following numbers. 4, 3, 7, 1, 8, 5
5. Consider the following network of routers where the numbers on the link indicate link
cost. Find out the shortest path of all routers from router A.
6. Consider the subnet as shown below where distance vector routing is used and
following vectors have just come to router C: from B(5, 0, 8, 12,6,2); from D(16, 12,6,
0,9, 10); and from E(7, 6, 3, 9, 0,4). The measured delays to B, D and E are 6,3 and 5,
(10) respectively. What is C's new routing table?
8. Draw a PERT chart from the following table. Find out the critical path & projected
time.
------------------------------------------------------------------------------------------------------------
Tasks | T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10 | T11 | T12
------------------------------------------------------------------------------------------------------------
Duration | 5 | 15 | 20 | 10 | 25 | 15 | 30 | 10 | 5 | 15 | 10 | 35
------------------------------------------------------------------------------------------------------------
Department | | T1 | T1 | T2 | T3,T4 | T3 | T5 | T6,T7 | T8 | T8 | T9,T10 | T11
------------------------------------------------------------------------------------------------------------
9. Write down a method to find out how many times an object has been instantiated in java.
10. Write down a method in c++ to reverse a char array. You are not permitted to use
temp array and STL lib function.
11. Write down a program in c++ using copy constructor to initialize its member variable
from another object.
12. Write down a function that will check whether a year is leap year or not.
13. In any 6 numbers, show at least 2 of them having same remainder after dividing 5.
20. Kmap
22. ERD(constraint)
25. Implement stack using single linked list.(Write down pseudo-code only)
https://www.facebook.com/groups/msc.cse.buet