0% found this document useful (0 votes)
22 views

Set

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Set

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

1. a. Illustrate the following UNIX Commands: Display date in dd/mm/yyyy .

b. Develop a Shell program to generate factorial of 5 numbers.


c. For the following table find the average waiting time and turnaround time using Priority CPU
scheduling:
Process Arrival Time Burst Time Priority
P0 0 4 2
P1 1 2 3
P2 2 7 4
P3 3 3 1

Aim/Procedure Program Results Viva-Voce Record Total


(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

2. a. Illustrate the following UNIX Commands: Create and list the content in a file .
b. Develop a Shell program to find Area of a Square.
c. Implement Semaphore using C.

Aim/Procedure Program Results Viva-Voce Record Total


(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

3. a. Illustrate the following System Calls: Getpid()


b. Develop a Shell program to find whether given number is perfect square or not
c. Implement Banker’s Algorithm using C.
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

4. a. Illustrate the following UNIX Commands: calendar of a year


b. Develop a Shell program to find whether given number is even prime.
c. Implement Threading using C.

Aim/Procedure Program Results Viva-Voce Record Total


(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER


5. a. Illustrate the following UNIX Commands: cat, date
b. Develop a Shell program to find circumference of a circle.
c. Write a C Program to implement Worst Fit Allocation Method for the following:
Process Size Block Size
P0 40 B1 100
P1 10 B2 50
P2 30 B3 30
P3 60 B4 120
B5 35

Aim/Procedure Program Results Viva-Voce Record Total


(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

6. a. Illustrate the following System Calls: Fork()


b. Develop a Shell program to convert Celsius to Fahrenheit
c. Implement IPC using C.
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

7. a. Illustrate the following UNIX Commands: ls with attributes


b. Develop a Shell program to find Area of a Triangle.
c. Implement Deadlock Detection algorithm using C.
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

8. a. Write a shell program to find Factorial of a number.


b. Consider the reference string 6, 1, 1, 2, 0, 3, 4, 6, 0, 2, 1, 2, 1, 2, 0, 3, 2, 1, 2, 0 for a memory with three
frames and calculate number of page faults by using LRU in C.
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER


9. a. Write a shell program to display first 10 natural numbers.
b. Develop a C program to implement two-level directory
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

10. a. Write a shell program to display date with time.


b. Consider a disk queue with requests for I/O to blocks on cylinders 98, 183, 41, 122, 14, 124, 65, 67.
The LOOK scheduling algorithm is used. The head is initially at cylinder number 53. The cylinders are
numbered from 0 to 199. Find the total head movement (in number of cylinders) incurred while
servicing these requests using C.

Aim/Procedure Program Results Viva-Voce Record Total


(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

11. a. Develop a Shell program to generate Fibonacci Series.


b. For the following table find the average waiting time and turnaround time using SJF CPU scheduling:
Process Arrival Time Burst Time
P0 0 8
P1 1 2
P2 2 3
P3 3 4

Aim/Procedure Program Results Viva-Voce Record Total


(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

12. a. Develop a Shell program to find whether given number is positive or negative.
b. Implement Semaphore using C.
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

13. a. Develop a Shell program to find whether given number is Armstrong.


b. Consider the reference string 6, 1, 1, 2, 0, 3, 4, 6, 0, 2, 1, 2, 1, 2, 0, 3, 2, 1, 2, 0 for a memory with three
frames and calculate number of page faults by using Least Recently Used (LRU) Page replacement
algorithms in C.

Aim/Procedure Program Results Viva-Voce Record Total


(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

14. a. Write a shell program to find the area of triangle by getting base and height from user.
b. Consider a disk queue with requests for I/O to blocks on cylinders 98, 183, 41, 122, 14, 124, 65, 67.
The SCAN scheduling algorithm is used. The head is initially at cylinder number 53 moving towards
larger cylinder numbers on its servicing pass. The cylinders are numbered from 0 to 199. Find the total
head movement (in number of cylinders) incurred while servicing these requests using C. (50)

Aim/Procedure Program Results Viva-Voce Record Total


(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

15. a. Develop a Shell program to find area and circumference of a circle.


b. Given five memory partitions of 100Kb, 500Kb, 200Kb, 300Kb, 600Kb (in order), how would the first-
fit algorithm place processes of 212 Kb, 417 Kb, 112 Kb, and 426 Kb (in order)? Implement it using C.
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

16. a. Consider a disk queue with requests for I/O to blocks on cylinders 98, 183, 41, 122, 14, 124, 65, 67. The
CLOOK scheduling algorithm is used. The head is initially at cylinder number 53 moving towards
larger cylinder numbers on its servicing pass. The cylinders are numbered from 0 to 199. Find the total
head movement (in number of cylinders) incurred while servicing these requests using C.
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

17. a. Write a shell program to display factorial of first 5 numbers.


b. Develop a C program to implement Indexed File Allocation Method

Aim/Procedure Program Results Viva-Voce Record Total


(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

18 a. Consider a disk queue with requests for I/O to blocks on cylinders 98, 183, 41, 122, 14, 124, 65, 67. The C-
SCAN scheduling algorithm is used. The head is initially at cylinder number 53 moving towards larger cylinder
numbers on its servicing pass. The cylinders are numbered from 0 to 199. Find the total head movement (in
number of cylinders) incurred while servicing these requests using C.
Aim/Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

Develop a C program to implement Banker’s Algorithm

Aim/Procedure Program Results Viva-Voce Record Total


(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

a. Write a shell program to find greatest of 2 numbers.


b. Develop a C program to implement Single Level Directory.

Aim/Procedure Program Results Viva-Voce Record Total


(20) (30) (30) (10) (10) (100)

INTERNAL EXAMINER EXTERNAL EXAMINER

You might also like