0% found this document useful (0 votes)
110 views2 pages

Linux and Shell Programming

Uploaded by

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

Linux and Shell Programming

Uploaded by

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

GOVERNMENT ARTS AND SCIENCE COLLEGE, PENNAGARAM

DEPARTMENT OF COMPUTER SCIENCE


MODEL EXAM NOV 2024
TIME 3:00 LINUX AND SHELL PROGRAMMING (21UCS09) MAX MARK: 75

PART A (Answer All The Question) 15X1=1 marks


1. On a UNIX system, there can be ____ shells running simultaneously.
a) 1
b) 2
c) many
d) 4
2. The prompt issued by the shell is called ______
a) prompt
b) command translator
c) command prompt
d) command executor
3. Sh stands for _________?
4. Ksh Stands for ________?
5. Bash stands for________?
6. What is the default symbol for command prompt in Bourne shell?
a) $
b) %
c) #
d) @
7. What is the default symbol for command prompt in C shell?
a) $
b) %
c) #
d) @
8. Which one of the following command will display the name of the shell we are
working on?
a) echo shell
b) echo $
c) echo $SHELL
d) echo $$
9. Which shell is the most common and best to use?
a) Korn shell
b) POSIX shell
c) C shell
d) Bash shell
10. The UNIX shell is both _______ and _______ language.
a) interactive, responsive
b) interpreter, executing
c) scripting, interpreter
d) high level, low level
11. Which of the following function(s) are performed by an interactive shell?
a) job control
b) history
c) aliases
d) job control, history, aliases
12. Which one of the following command is used to create a child shell?
a) fork
b) wait
c) sh
d) env
13. ____ command is used to display the environment variables only.
a) set
b) env
c) sh
d) var
14. ____ command displays all the variables available in the current shell.
a) env
b) set
c) var
d) sh
15. To make the script interactive,the _____command is used?
a) ip
b) input
c) write
d) read
PART B (write any two questions) 5 marks
1. Write short notes on “Operating System and Linux”?
2. Write short notes on “Linux Overview”?
3. Write short notes on “Shell”?
4. Write short notes on “WC Command”?
5. Write short notes on “Interactive Shell Scripts”?

PART C (Answer All The Question) 10 marks


1. A. Brief notes on ” History of Linux and Unix”?
OR
B. Brief notes on ” Linux Distribution and vi editor”?
2. A. Brief notes on ” Comparision of Shells and various Directories”?
OR
B. Brief notes on ” Drilling Deep into process management job control and
Automation”?
3. A. Brief notes on ” Text Processing and Text Filtering tools”?
OR
B. Brief notes on ”Logical Operators”?
4. A. Brief notes on” Tricks with shell scripting ”?
OR
B. Brief notes on”The Here document and << operator”?
5. A. Brief notes on” Sort Command and WC Command”?
OR
B. Brief notes on” File Handling”?

You might also like