Professional Documents
Culture Documents
2.-BUET_CSE_MSc_April_2017
2.-BUET_CSE_MSc_April_2017
2.-BUET_CSE_MSc_April_2017
Direction: Please answer all of 30 question carefully. Time Duration: 1 hour 30 min
-------------------------------------------------------------------------------------------------------------------------------
7. Write the regular expression which takes one or more alphanumeric character
followed by even number of digits?
8: What is the problem of using small page size in memory? What are its
advantages?
9. Write a pseudo code for heapsort algorithm using stack? You do not need to
implement stack.
Write a pseudo code to identify a given sequence is palindrome or not using stack
and queue. You do not need to write code to implement stack and queue.
11. Write a function that takes an integer number and separate each digit. You
must have to use recursion.
12. Tables of 4 destination IP addresses are given associated with each interface.
Another table was given with 4 different IP address with the blank field of interface.
Fill the interfaces column for each destination IP using 1st table.
13. Consider an IP address (for ex 223.16.37.0/29). Find the subnet address and the
last address for this network. If we want 12 addresses in the subnet than what will
be the value of the subnet mask?
18. Pre order and in order sequence are given for a binary tree. Draw
the binary tree?
Solution:
25. Prove that the value of n always the sum of value greater than 8
and 9 for n>=14 (similar question but I can’t remind exactly)
Solution: