UNIX Question Bank - Final PDF
UNIX Question Bank - Final PDF
TYBCA
US05EBCA01- BASICS OF UNIX OPERATING SYSTEM
QUESTION BANK
MULTIPLE CHOICE QUESTIONS
UNIT 1
1. In UNIX resources are shared by all the users, so UNIX is_____________ System.
A. multiuser C. portable
B. featureless D. multitasking
2. Root directory in UNIX is denoted by ____________
A. -- C. /
B. () D. \
3. _____________ directory contain executable file for most of the UNIX commands.
A. lib C. dev
B. bin D. tmp
4. dev directory contain files for controlling ____________.
A. input/output C. Both A and B
B. OS D. None
5. When scheduler submits process to the queue, process is said to be in
____________ state.
A. hold C. run
B. submit D. ready-to-run
6. Process whose execution comes to an end will be in _____________state.
A. hold C. complete
B. submit D. run
7. PWD stands for ______________.
A. present working directory C. present working diary
B. past working directory D. past working diary
8. Unix Operating System is an __________.
A. Time Sharing Operating System C. Multi-tasking Operating System
B. Multi-User Operating System D. All the Above
9. How do you get help about the command "cp"?
A. help cp C. cp ?
B. man cp D. cat cp
10. How do you rename file "new" in file "old"?
A. mv new old C. rm new old
B. cp new old D. rn new old
11. Which command is used with vi editor to move the cursor one row up?
A. i C. h
B. j D. k
12. Which command is used with the vi editor to save file and remain in the editing
mode?
A. :q C. :w
B. :q! D. :x
Page 1 of 6
Question Bank US05EBCA01- Basics of UNIX Operating System
UNIT 2
1. Which command can be used to display the contents of a file on the screen?
A. ls C. cat
B. grep D. cut
2. How can you append the output of a command to a file?
A. command < file C. command > file
B. command << file D. command >> file
3. When the shell is used from a terminal it will issue a prompt before reading a
command. By default this prompt is _____.
A. > C. &
B. $ D. #
4. The shell prompt when further input is needed, by default it is ______.
A. > C. &
B. $ D. #
5. The cat command is used to
A. capture a file C. copy a file
B. print a file D. display a file
6. When you execute a script called test at $ prompt as
$test hi hello then test will be stored in _____ positional parameter.
A. $# C. $0
B. $* D. $1
7. Use of \ in removing meaning of any meta character placed after it is known as
_______________.
A. Escaping C. Editing these
B. Treating D. None o
Page 2 of 6
Question Bank US05EBCA01- Basics of UNIX Operating System
UNIT 3
Page 3 of 6
Question Bank US05EBCA01- Basics of UNIX Operating System
UNIT 4
Page 4 of 6
Question Bank US05EBCA01- Basics of UNIX Operating System
UNIT 1
UNIT 2
UNIT 3
UNIT 4
Page 5 of 6
Question Bank US05EBCA01- Basics of UNIX Operating System
UNIT 2 Marks
1. Write note on: Input / Output redirection
2. Write note on: Quoting and Escaping [4-5]
3. What is path? Explain Absolute and Relative path with example. [4-5]
4. Write note on: Command substitution [4-5]
5. Write note on: Command line argument [4-5]
6. Explain Command line processing. [4-5]
7. [4-6]
UNIT 3 Marks
1. Explain case statement with example. [3-4]
2. Explain if and case statement in LINUX. [6-7]
3. Explain for loop in Linux with example. [4-5]
4. What is Shell script? Explain uses of Shell script and execution of shell script. [4-5]
5. Explain all control structures in details. [10]
6. Explain turning debugging on and off procedure in detail. [4]
7. Explain while loop in detail with example. [4]
UNIT 4 Marks
1. Explain method of processing data in text files for fixed-width format and [10]
delimited format in detail.
2. Explain method of processing data in text files for fixed-width format in detail. [4-5]
3. Explain method of processing data in text files for delimited format in detail. [4-5]
4. Explain substitution facility of sed filter. [3-4]
5. Explain grep command with example. [5-6]
6. Write note on sed filter. [5-6]
7. Explain all attributes displayed by –l option of ls command. [4]
8. How to process the output of who command? [3]
Page 6 of 6