Download Original PDF
Get the official Barkatullah University print version scanned document.
đ¤ Help Your Juniors!
Have previous year question papers that aren't on our website? Help the next batch of students by sending them to us! With your consent, we will proudly feature your name as a Top Contributor on our platform.
Submit Papers đŠM.Sc. IIIrd Semester (Reg./ATKT)
Examination, 2022-23
Computer Science
Paper - MCSC-301
Linux & Shell Programming
Note :- Attempt all the questions.
SECTION - 'A'
Objective Type Questions
1. Choose the correct answer :
Which is the core of the operating system?
(a) Shell
(b) Kernel
(c) command
(d) Script
Which command changes a file's group owner?
(a) cgrp
(b) chgrp
(c) change
(d) group
The command chmod 4777 a.out
(a) will set the suid bit of a.out
(b) will set the suid bit of a.out only if the command is issued by root
(c) is not a valid command
(d) will set the sticky bit of a.out
Permissions of a file are represented by which of the following characters?
(a) r, w, x
(b) e, w, x
(c) x, w, e
(d) e, x, w
Which option of `grep` displays the line number as well?
(a) -v
(b) -l
(c) -n
(d) -E
What is a shell script?
(a) group of commands
(b) a file containing special symbols
(c) a file containing a series of commands
(d) group of functions
The first line in any shell script begins with a ______.
(a) &
(b) !
(c) $
(d) #
What is the output of the following command for bash
shell : echo linux $0
(a) linux echo
(b) linux linux
(c) linux bash
(d) linux
How to run a process in the background?
(a) &
(b) *
(c) ?
(d) |
Process information in the current shell can be obtained by using
(a) Kill
(b) bg
(c) fig
(d) ps
SECTION - 'B'
Short Answer Type Questions
5Ã5=25How does semaphore work for managing concurrent processes? Give an example.
Write about the advantages and disadvantages of both internal and external fragmentation.
OR
Consider the processes which are given in the table along with the arrival time and burst time.

Calculate and compare the waiting time and turnaround time for FCFS and SJF scheduling.
Demonstrate FIFO and LRU page replacement algorithms by giving an example of both.
Write a note about the Linux file system.
OR
Write about the following Linux commands, complete with syntax and examples.
- mkdir
- move
- rename
- who
- mm
What are the different types of permissions in Linux ? Give examples of each.
OR
Write about the Linux filter commands listed below, including syntax and examples.
- last
- grep
- sort
- tail
- tr
What is the shell in Linux ? Discuss the different types of shells in Linux.
SECTION - 'C'
Long Answer Type Questions
9Ã5=45What are the necessary conditions for deadlock ? How is dead-lock avoided ? Explain by giving an example.
OR
Describe the Round Robin Scheduling algorithm by giving an example.
Elaborate the complete hardware organization necessary for virtual memory by giving an example.
OR
Discuss the following memory management schemes :
- Swapping
- Paging
- Segmentation
Elaborate on the complete system organization (Kernel and Shell) of the Linux operating system.
OR
Write differences between :
- CUI OS v/s GUI OS
- Windows v/s Linux
- Open Source software v/s Licensed software
How to manage users and groups in Linux. Explain by giving examples.
OR
What are different ways to use the find command in Linux ? Explain by giving examples for each way.
Write a shell script to print a number in reverse order. It should support the following requirements.
- The script should accept the input from the command line.
- If you don't input any data, then display an error message to execute the script correctly.
OR
What is the syntax for different types of loops available in shell scripting ? Explain by giving examples for each.