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

Linux Model

This document contains questions about Linux and shell programming. It has three sections: Section A contains 15 multiple choice questions worth 1 mark each. Section B contains 5 short answer questions worth 2 marks each. Section C contains 5 long answer questions worth 10 marks each. The questions cover topics such as Linux commands, shell scripting, editors, files, and automatic decision making in Linux.

Uploaded by

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

Linux Model

This document contains questions about Linux and shell programming. It has three sections: Section A contains 15 multiple choice questions worth 1 mark each. Section B contains 5 short answer questions worth 2 marks each. Section C contains 5 long answer questions worth 10 marks each. The questions cover topics such as Linux commands, shell scripting, editors, files, and automatic decision making in Linux.

Uploaded by

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

SIRI PSG ARTS AND SCIENCE COLLEGE FOR WOMEN, SANKARI 14.

14. Which command is used to display the documentation of commands in


MODEL EXAMINATION-I (ODD SEM) Unix?
LINUX AND SHELL PROGRAMMING a) man b) whatis c) help d) search
Class: IIIBSC (CS) 15. Which command is used for printing the current working directory?
Sub code: 21UCS09 Time: 3hrs a) dir b) HOME c) cd d) pwd
Date: Max.marks: 75 SECTION - B [2 x 5 = 10 MARKS]

SECTION - A [15 x 1 = 15 MARKS] Answer any TWO questions

Answer all the questions 16. Write short notes history of Linux and Unix.
17. Briefly explain about Standard Input and Output Redirection.
1. In the shell, by default, all variables are considered and stored as
a) string b) integer c) character d) float 18. Define Text Processing and name some commands.
2. Which command reads user input from the terminal and assign this
19. How word count is used in Linux justify with example.
value to a variable name?
a) read b) get c) declare d) set 20. Short notes on Automatic Decision Making in Linux.
3. To redefine a variable, it can be removed from the list of variables by
using the command
a) unset b) delete c) remove d) clear SECTION - C [5 x 10 = 50 MARKS]
4. Which command sets up shorthand for command or command line?
a) set b) alias c) new d) echo Answer all the questions
5. Which command prints the directory stack?
a) cd b) dirs. c) popd d) pushd 21. a) Define Operating System and their types.
6. Which command concatenate the specified argument into a single [or]
command, then execute the command? b) Discuss about the functions of VI editors with examples.
a) fc b) eval c) exec d) getopts
7. syntax to suppress the display of command error to monitor? 22. a) What is mean by a Shell and make a Comparison between the shells.
a) command > &2 b) command 2> &1 [or]
c) command 2> &2 d) command 2> /dev/null b) Name some the commands used in listing and displaying the files.
8. Which command is used to set terminal IO characteristic?
a) tty b) ctty c) ptty d) sty 23. a) Explain briefly about grep commands in Linux with examples.
9. Which command is used to record a user login session in a file [or]
a) macro b) read c) script d) none of the mentioned b) Write a sample program to work with arrays in Linux.
10. Which command is used to display the unix version
a) uname -r b) uname -n c) uname -t d) kernel 24. a) How will the user interact with shell scripting explain in detail.
11. Which option of ls command used to view file inode number [or]
a) –l b) -o c) –a d) –i b) State the importance Files and debugging in Linux.
12. Which of the following is the first UNIX editor?
a) vi b) emacs c) ex d) ed 25. a) Describe about the Automatic Decision in Linux?
13. Which editor is used by the Unix system to edit files? [or]
a) word b) notepad++ c) vi d) notepad b) Explain Working with Functions in Linux with suitable example.

You might also like