Professional Documents
Culture Documents
University of Engineering & Technology, Taxila: Class: BS - CS (4th) Term: Final Term SP 2019
University of Engineering & Technology, Taxila: Class: BS - CS (4th) Term: Final Term SP 2019
Class: BS – CS (4th) Paper: Operating System Laboratory` Term: Final Term SP 2019
Total Marks: 10 (Objective) Time: 10 Minutes
Session: 2k17 Roll No: Name: Date: 29-06-019
Note: Circle the correct option in corresponding options. Deleting/Cutting will lead to Zero for that part.
a. Basic input output b. Basic input output c. Basic input output d. Basic input output
service structure Script system
a. address space and b. open files c. pending alarms, signal d. all of the mentioned
global variables and signal handlers
4. What is IPC’s
a. process control block b. device queue c. process identifier d. none of the mentioned
9. In UNIX the return value for the fork system call is ---- for child process and ---- for parent process.
a. negative integer, zero b. zero, negative integer c. zero, non-zero integer d. non-zero integer, zero
Page 1 of 3
University of Engineering & Technology, Taxila
Class: BS – CS (4th) Paper: Operating System Laboratory` Term: Final Term SP 2019
Total Marks: 60 (Subjective) Time: 90 Minutes
Session: 2k17 Roll No: Name: Date: 29-06-019
Note: Question paper must be return with the answer sheet otherwise your paper will not be marked.
Attempts all questions on the answer sheet.
b) Write 3 C program one prints “Department” second prints “Computer” and third prints
“Science”. Compile and Run three programs and print the output to three different files. After then
combine three the files in one new file using a single command, also draw tree for it.
Question No. 4 : (10+10=20).
a) Write Algorithm/program for Preemptive Shortest Job First Non-Preemptive Shortest Job First.
b) Write an Algorithm/program for the following:
i) Product of all the integers up to and including a given integer.
ii) Raise a number to a power.
By using getpid(), getppid().
-
Page 2 of 3
Page 3 of 3