Saturday, November 14, 2015
Past Question On File Processing 2013/2014
DEPARTMENT OF MATHS/STATISTICS & COMPUTER SCIENCE
SECOND SEMESTER EXAMINATION 2012/2013
COURSE: CSS 2222 – INTRODUCTION TO FILE PROCESSSING TIME: 3HOURS
INSTRUCTIONS: Answer any four (4) questions with two from each section
SECTION A
1. (a) (i) Discuss freely the concept of computer files and distinguish clearly between logical and physical records. (ii) What is a record key? Discuss its use in file processing.
(b). A magnetic tape that is 25 feet long has 2 feet of unusable portion. If density of this tape is 10 bytes/inches and blocking factor is 5, estimate the number of logical records of record length 95 bytes that can be stored in this tape if inter-block gap is 0.0025 inches.
2. (a) (i) Distinguish clearly a sequential file organization from a serial file organization.
(ii) Distinguish a Direct Access Storage (DASD) from Random Access Method (RAM).
(b) (i) What do you understand by the address of a record in a file? (ii) Describe two methods used to assign addresses to records in a file. (iii) What is file organization?
3. (a) (i) Discuss the storage and retrieval processes of ISAM and sequential file organizations.
(ii) State precisely the facilities in ISAM file organization that are not found in sequential files.
(iii) How do you use the additional facilities in ISAM file organization?
(b) (i) Distinguish between a master file and a transaction file. (ii) Suppose you have a master file M, and a transaction file T, both of which are sequentially sorted. Give an algorithm that uses T to update M in order to get new master NM.
SECTION B
4. (a) Using concrete examples, differentiate between files and directories, stating why each is important in its own right.
(b) In a multiuser system, there is almost always a requirement for allowing file sharing among users, describe any five (5) access rights in the light on this.
5. (a) You have been handed the task of making a small presentation on file allocation schemes at the forthcoming orientation for Computer Science students in our Department. You are to use the following files to demonstrate contiguous allocation: HOD_Admin.xls (length=5), Students.mdb (length=9), AcadStaff.doc (length=5), AdimStaff.pdf (lenth=7) and NUDCB.html (lenth=8) in that order. Starting your allocation at block 2; (i) Show how this allocation will be done on disk (ii) Construct a directory table showing how these files will be allocated.
(b) (i) Sow how the file AdimStaff.pdf will be allocated using chained and indexed allocation schemes, respectively. (ii) Make brief comments on external fragmentation stating why it is prevalent in contiguous allocation.
6. (a) Typical of computer installation management, describe with examples, any three (3) ways in which you can provide file security.
(b) You have been handed four record keys: 876-54-3210, 123-45-6789, 187-65-2243, and 101-20-3037 to place in a database file that contains a maximum of twelve records. Using the modulus hashing technique/algorithm, show how these records will be placed in the file.
Monday, November 9, 2015
Past Question on File Processing CSC 2222
UNIVERSITY OF CALABAR
CALABAR
DEPARTMENT OF MATHEMATICS/STATISTICS/COMPUTER SCIENCE
SECOND SEMESTER EXINATION 2005/2006.
COURSE NO: CSC 2222
1a. Explain the concept of file system within the computer system, pointing out the likely content of each file system. Why do you think a file is important to a computer system?
1b. Using suitable examples, describe any four (4) different types of files, pointing out the content in each case. Is linear list a file? If yes briefly describe what it is.
2a. Distinguish clearly between (i) logical and physical records (ii) sequential and direct storage medium (iii) primary and secondary storage devices.
2b. Describe the advantages of blocking records in a file. A specification is given to a file on magnetic tape as follows : blocking factor is 20; inter-block gap is 1.5cm; Density of tape is 2.5 bytes per inch, usable portion of tape is 24 feet. How many records of fixed length 110 can be stored in this tape?
3a. What do you understand by the term "file organisation"? Discuss the factors you would consider when. Choosing a file organisation.
3b. Discuss the concept of directories in your file system. Explain how you would protect your file(s) from unauthorised users.
SECTION B
4a. State any five (5) operations that can be performed on files. Using sequential file organization for illustration, discuss how three (3) of the operations can be implemented.
5a. Explain any three basic file allocation techniques, giving their respective merits and demerits.
5b. (i) Discuss the concept of random/direct file organisation.
(ii) Explained any two hashing techniques.
6a. Differentiate clearly between (i) linear probing and bucket chaining. (ii) Incremental and full backup.
6b. State any five backup guidelines.