Professional Documents
Culture Documents
Acts Computer College: Total
Acts Computer College: Total
PRELIM EXAMINATION
2IT-A-IT201-2CS-A-CS203-Data Structures and Algorithms
1st Semester A.Y. 2020-2021
TOTAL
Name : _Melvin Abenes________________________________
Date : _BSIT 2 A____________________________ 100
GENERAL INSTRUCTIONS:
1. Read all instructions carefully.
2. Your answers can be typed using word processing application or handwritten.Save your file as
DataStructuresandAlgorithmsPrelimExam_yourfullname.
3. Submit your exam on the Google drive provided to you.
4. One hour and 30 minutes are allocated to complete the exam, including the time spent in downloading of exam and uploading of
your answers.
5. Answer the exam intelligently.
Why would the preprocessor need a look-up table to store such definitions? ANSWER: Preprocessor replacement are done
on a textual basic.
4. Is every linear ordering of a finite number of objects a hierarchical ordering? Is every hierarchical ordering a partial
ordering? Answer: No. Because linear ordering is any relationship where any two objects x and y while hierarchical
orderings all relationships may appear very different and all exhibit the same properties, partial orderings has multiple
starting points and one class may have multiple prerequisites.
5. Describe the difference between an explicitly defined and an implicitly defined relation.ANSWER: implicity defined
relation arw done by other code running behind thenscenes while explicity defined relation arw manual approach to
change what you what by writing out the code yourself.
Prepared by: Reviewed/Approved by: Noted by:
DR. ADOREE A. RAMOS DR. ADOREE A. RAMOS PROF. RUBEN F. MACALINAO, MBA, MM
Faculty Head, Department of Business Management President/Director
6. Discuss the three classifications of memory allocation. ANSWER: Touching, in actual contact, next in space; meeting
at a common boundary, bordering, adjoining or connected throughout in an unbroken sequence.
7. Linked – Linked storage such as linked list associates two pieces of data with each item being stored.
8. Indexed - An array of pointers link to a sequence of allocated memory locations.Answer: i- not equal ii- equal iii- not
equal
9. Distinguish some variations of memory allocations such as Trees, Graphs,, Deques (linked arrays) and inodes
10. Which of the following are equal?
11.
DR. ADOREE A. RAMOS DR. ADOREE A. RAMOS PROF. RUBEN F. MACALINAO, MBA, MM
Faculty Head, Department of Business Management President/Director