CS3461 Set 1
CS3461 Set 1
(Regulations 2021)
1. a. Install any flavor of windows operating system on top of any bare metal by creating necessary
partitions for OS and user space. (80)
b. Create a directory on your own and include two files and list out the files that are present in that directory
using the necessary UNIX commands. (20)
2. a. List out the number of lines, characters and words present in a file using the necessary UNIX
command. (15)
b. Create a process and print the process id of current process and its parent process. (15)
c. Write a C program for implementing an FCFS Scheduling algorithm by displaying process id,
average waiting time and average turnaround time. (70)
3. a. Find a specific file in a directory and print only the unique lines that are present in that file
using appropriate UNIX commands. (15)
b. Write a C program for identifying whether the process listed is a parent process or child
process using the necessary system calls. (15)
c. Write a C program for implementing an SJF Scheduling algorithm by displaying process id,
average waiting time and average turnaround time. (70)
4. a. Using the appropriate UNIX Command check whether the remote host is responding well or
not. (15)
b. Write a Shell program to count the number of vowels in a line of text. (15)
c. Write a C program for implementing Interprocess communication using shared memory
concept. (70)
5. a. Using the appropriate UNIX command print the last 10 lines of user specified file to standard
output. (15)
b. Write a shell program to find the sum and average of four integers. (15)
c. Write a C Program for simulating a deadlock detection model. (70)
6. a. Give the correct UNIX commands that display a list of users who are currently logged in to a
computer and which prints the calendar of the current month and year. (15)
b. Write a shell program to compute simple interest and compound interest. (15)
c. Write a C program for implementing Round Robin Scheduling algorithm. (70)
7. a. Using the desired UNIX command rename a file of the user to a new name. (15)
b. Write a Shell program to find the area and circumference of a circle. (15)
c. Write a C program for implementing Priority Scheduling algorithm. (70)
Page 1 of 3
8. a. Give the appropriate UNIX command for creating a user file with specific content and display
the same. (15)
b. Write a C program illustrating the use of wait system call. (15)
c. Write a C program for implementing the semaphore synchronization tool. (70)
10. a. Use the appropriate UNIX command for printing the manual page of any given specific
command. (15)
b. Write a Shell program to generate Fibonacci series. (15)
c. Write a C program for implementing the concept of paging in memory management. (70)
11. a. Write the specific UNIX commands for listing the contents of the current directory and also to
remove the same directory. (15)
b. Write a Shell program to find the roots of a quadratic equation. (15)
c. Write a C program for implementing FIFO page replacement algorithm. (70)
12. a. Write the appropriate UNIX commands for printing the output to a terminal and to print the
processes running in a system. (15)
b. Write a shell program to check whether the given number is positive or negative. (15)
c. Write a C program for implementing LRU page replacement algorithm . (70)
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 Optimal page replacement algorithm. (70)
14. a. Write a shell program to find the sum of two numbers using function programming (30)
b. Write a shell program for implementing sequential file allocation strategy. (70)
15. a. Give the appropriate UNIX command for displaying the block number at the beginning of
each line. (15)
b. Write a Shell program to check whether the given integer is prime or not. (15)
c. Write a C program to implement Random file access technique. (70)
16. a. Write the procedure and show the installation of any Linux flavor as a guest Operating
system on top of Windows operating system. (90)
b. Write the UNIX command needed for creating a directory. (10)
17. Write a C program for implementing FCFS disk scheduling strategy. (100)
19. a. Give the UNIX command that for getting information from the DNS server. (15)
b. Write a Shell script for calculating the area of a triangle. (15)
c. Write a C program for implementing Best Fit allocation strategy. (70)
20. a. Write a Shell program to find the smallest digit from a number. (30)
b. Write a C program for implementing Worst Fit allocation strategy. (70)
22. Write a C program for implementing LOOK disk scheduling strategy. (100)
Page 2 of 3
23. a. Write a shell program to find the smallest number between two numbers using function. (30)
b. Write a C program for implementing contiguous file allocation strategy. (70)
24. Write a C program for implementing SCAN disk scheduling strategy. (100)
25. Write a C program for implementing C-SCAN disk scheduling strategy. (100)
26. a. Create two files and move them in to a directory named ‘dir1’ using the desired UNIX commands.
(15)
b. Write a Shell script for converting the temperature from Fahrenheit to Celsius. (15)
c. Write a C program for implementing linked file allocation strategy. (70)
Page 3 of 3