0% found this document useful (0 votes)
622 views3 pages

CS3461 Set 2

Uploaded by

sulochanat7851
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
622 views3 pages

CS3461 Set 2

Uploaded by

sulochanat7851
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

B.E / B.Tech.

PRACTICAL END SEMESTER EXAMINATIONS, APRIL/MAY 2023


Fourth Semester

CS3461 - OPERATING SYSTEMS LABORATORY

(Regulations 2021)

Time : 3 Hours Answer any one Question Max. Marks 100

Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total


required/Procedure Program/Drawing & Results
20 30 30 10 10 100

1. a. Demonstrate the procedure needed for Installing Windows operating system. (80)
b. Apply suitable UNIX commands for listing the files present in the specified directory and then
remove the same directory. (20)
2. a. Display the contents of both the files in parallel i.e horizontally using the appropriate UNIX
command. (15)
b. Write a program that opens a file and writes "HELLO" 10 times and then closes it using the
necessary system calls. (15)
c. Write a C program for implementing a suitable Scheduling algorithm for the given scenario:
The algorithm should dispense the tickets at the counter on the order of customer arrival (The
one who comes first will get the ticket first) (70)
3. a. Display the contents of file in a sorted order using the specific UNIX command. (15)
b. Write a C program illustrating the use of exec() system call (15)
c. Write a C program for implementing a suitable scheduling algorithm for the given scenario:
The algorithm schould allow the customers who have purchased less quantity first in their
counter of a departmental store. (70)
4. a. Using the appropriate UNIX Command check what the current directory that a user is working
with and try to change it to a different directory (15)
b. Write a Shell program to print the numbers in reverse order. (15)
c. Write a C program for implementing the suitable scheduling algorithm to the following
scenario:
A person who is seriously injured should be treated first, eventhough the regular patients have
already acquired the token for consultation. (70)

Page 1 of 3
5. a. Using the appropriate UNIX command display the contents of file with line numbers (15)
b. Write a shell program to add the digits and print their sum. (15)
c. Write a C Program implementing the suitable scheduling algorithm for the given scenario:
4 Children's want to play a game where each child will get 2 mins of time for their play and
automatically after their time expires the other child comes in to play. (70)
6. a. Give the suitable UNIX commands that translates the contents of a file from lowercase to
uppercase (15)
b. Write a Shell program to find the sum of all numbers between 50 and 100, which are divisible
by 3 and not divisible by 5. (15)
c. Write a C program for implementing the concept of semaphores to provide synchronisation
while accessing a critical section. (70)
7. a. Write a C program for implementing the deadlock avoidance algorithm using bankers
algorithm. (100)
8. a. Write a Shell program to check the given string is palindrome or not. (30)
b. Write a C program for implementing the first fit memory allocation method. (70)
9. a. Write a Shell program to execute various UNIX commands using case statements. (30)
b. Write a C program for implementing SSTF disk scheduling algorithm. (70)
10. a. Use the appropriate UNIX command that compares two files and displays what line numbers
are different. (15)
b. Write a C program for implementing the Linked file allocation strategy. (85)
11. a. Demonstrate the virtual machine concept through the installation of Linux OS as a guest
operating system on Windows OS. (90)
b. Give the Unix command for creating a directory of user's choice. (10)
12. a. Write a C program for implementing a page replacement algorithm. (70)
b. Write a shell program to find whether the given integer is Armstrong or not. (30)
13. a. Write a shell script to display the digits which are in odd position in a given number (30)
b. Write a C program for implementing threading concept. (70)
14. a. Give the syntax of UNIX command for printing the manual of ls command. (10)
b. Write a shell program for implementing best fit memory allocation technique. (90)
15. a. Give the appropriate UNIX command for displaying the byte count of a file. (10)
b. Write a C program to implement FIFO page replacement strategy. (90)
16. a. Write a shell program to find the sum and average of four integers (15)
b. Write a C program to implement indexed file allocation strategy. (85)

Page 2 of 3
17. a. Write a C program for implementing SCAN disk scheduling strategy. (100)
18. a. Use the right UNIX command for printing the length of the longest line in a file. (15)
b. Write a Shell program to check and display 10 leap years. (15)
c. Write a C program to implement LRU page replacement policy. (70)
19. a. Write a shell program to display employee details with empid, department,
experience and Salary. (30)
b. Write a C Program to implement Optimal page replacement strategy. (70)
20. Write a C program to implement LOOK disk scheduling strategy. (100)
21. a. Write a Shell program to check the given number and its reverse are same. (30)
b. Write a C proram to implement index sequential file access mechanism. (70)
22. a. Identify the UNIX command for displaying the number of matched lines in a file. (15)
b. Write a Shell program for displaying ‘n’ numbers one by one and displaying its sum at the last.
(15)
b. Write a C Program to implement the Best Fit allocation strategy. (70)
23. Write a C program for implementing C-SCAN disk scheduling strategy. (100)
24. Write a C program for implementing C-LOOK disk scheduling strategy. (100)

Page 3 of 3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy