Docsity

computer science master program entrance exam, Exams of Programming Languages

Toggle sidebar
bg1
Department of Computer Science
Faculty of Informatics
Addis Ababa University
Entrance Examination for the M. Sc. Program in Computer Science
Date: July 13, 2007
Time allowed: 3 hours
Name:
Instructions
1. Read the instructions and the questions carefully.
2. Write your name only on this page. Writing your name on the other pages will automatically disqualify you
from this exam.
3. Answer all questions eligibly on the spaces provided on the question papers. Please make sure that
sentences are short, and grammatically and logically correct. You can use the back side of each paper when
space is not sufficient. In such a case, please indicate so.
4. This examination booklet consists of 11 pages (excluding this cover page). Make sure that the question
papers are numbered consecutively (at the bottom of each page) and that no question papers are missing or
replicated.
5. Cheating is strictly prohibited. Any person found cheating will be automatically disqualified from the
exam.
6. Use only the rough papers provided. Using other unauthorized papers will be considered as cheating.
7. Switch off your mobile phones. You are not allowed to use a mobile for any purpose.
8. You are not allowed to use calculators or any other electronic device.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
Discount

On special offer

Partial preview of the text

Download computer science master program entrance exam and more Exams Programming Languages in PDF only on Docsity!

Department of Computer Science

Faculty of Informatics

Addis Ababa University

Entrance Examination for the M. Sc. Program in Computer Science

Date: July 13, 2007 Time allowed: 3 hours

Name:

Instructions

  1. Read the instructions and the questions carefully.
  2. Write your name only on this page. Writing your name on the other pages will automatically disqualify you from this exam.
  3. Answer all questions eligibly on the spaces provided on the question papers. Please make sure that sentences are short, and grammatically and logically correct. You can use the back side of each paper when space is not sufficient. In such a case, please indicate so.
  4. This examination booklet consists of 11 pages (excluding this cover page). Make sure that the question papers are numbered consecutively (at the bottom of each page) and that no question papers are missing or replicated.
  5. Cheating is strictly prohibited. Any person found cheating will be automatically disqualified from the exam.
  6. Use only the rough papers provided. Using other unauthorized papers will be considered as cheating.
  7. Switch off your mobile phones. You are not allowed to use a mobile for any purpose.
  8. You are not allowed to use calculators or any other electronic device.

For Office Use Only

Part Part I (35) Part II (25)

Part III (20)

Part IV (20)

Total (100)

Marks

Part I: Programming, Data Structures, and Software Engineering (35 points)

1.1 a. What is a software development process model? (2 points)

b. Explain in detail the Rapid Application development model. (3 points)

1.2 a. What is software risk? (2 points)

1.5 Rewrite the following recursive algorithm using iterative methods using a programming language of your choice. You may introduce new variables as required. (5 points) int f(int num) Begin /* num > 0 */ if( num <= 2 ) then return 1; else return f(num - 1) + f(num - 2); end if End

1.6 Mention at least three points in which object oriented programming is advantageous than structured programming. (3 points)

1.7 Write three benefits of modular programming? (3 points)

1.8 Write the implementation of a simple sorting algorithm with a programming language of your choice to order a list having n integer values in descending order. (5 points)

2.4 In most modern operating systems, making use of threads in a single process is common. Write two basic reasons (advantages) for using threads. (2 points)

2.5 Direct Memory Access (DMA) is commonly available in general-purpose modern computer systems. What are the disadvantages of a system without a DMA? (2 points)

2.6 What are the four types of files supported by the Unix operating system? (2 points)

2.7 Paging and segmentation are two common methods of implementing virtual memory. Unlike pages, segments do not have fixed size and have independent linear address space. Give two advantages of segmentation over paging. (3 points)

2.8 What is the Master Boot Record (MBR) in a file System? What happens to the system if the MBR is destroyed, say by a virus? (3 points)

c. Produce a listing: CUSTNAME , NO_OF_ORDERS , AVG_ORDER_AMT , where the NO_OF_ORDERS is the total number of orders by the customer and the AVG_ORDER_AMT is the average order amount for that customer. (3 points)

d. List the orders that were not shipped within 30 days of ordering. (1.5 points)

e. List the OrderNo for orders that were shipped from all warehouses that the company has in ‘Addis Ababa’. ( 3 points)

3.2 What is the difference between logical data independence and physical data independence? ( points)

3.3 How do we transform n-ary relationships between entities in E-R diagram into relations? Give an example. (3 points)

3.4 Is a relation in 3NF also in BCNF? Justify your answer and give a relevant example. (4 points)

4.4 What is the addressing mechanism used in Ethernet LAN? Briefly describe. (2 points)

4.5 Mention and briefly describe at least two major reasons why IPv6 was defined to replace IPv4. ( points)

4.6 In comparing circuit switching and packet switching, write Yes or No in the last two columns. ( points)

Item Circuit Switching Packet Switching Dedicated physical path required Each packet follows the same route Packets arrive in order A switch crash is fatal Potentially wasted bandwidth Store-and-forward transmission

4.7 Mention and briefly describe two attenuation impairments in data transmission. (2 points)