Question Bank_UNIX_BCA
Question Bank_UNIX_BCA
TECHNOLOGY, ANITA(KIM)
BCA DEPARTMENT
TY BCA (SEM - 5)
Unix & Shell Programming (504)
Question Bank
Q.1 MCQ 10
1. What is the command to print the current working directory?
a) Cd b) pwd
c) ls d) mkdir
8. Which one of the following command is used for searching for a pattern in one or more file(s)?
a) Cd b) Cp
c) Paste d) grep
9. Which option is used with grep command for ignoring the case in pattern searching?
a) -a b) -v
c) -i d) -e
10. Which of the following will be used to print lines containing ‘manager’ in emp.lst?
a) awk ‘/manager/ { print }’ emp.lst b) awk ‘/manager { print }’ emp.lst
VIDHYADEEP INST. OF COM. & INFO. TECHNOLOGY, ANITA(KIM)
BCA DEPARTMENT
Long questions.
2. What is system structure of unix operating system and explain every layer with
example.
3. What is shell and explain the features of shell.
4. What is kernel and explain the structure of kernel in briefly.
5. Explain I-node and File Structure in detail.
6. Explain the file Directory Structure.
7. Explain the file structure and features.
8. Explain booting sequence and init process.
9. How to change the access permission on file and user.
10.What is variable and explain the defining variable and accessing value with example.
11.What is operator and explain the different operators with example.
12.What is condition statements and explain the different condition statements with
example.
13.What is UDF? Explain with examples.
14.What is process and explain the different process with command and explanation.
15.What is environment variable and user define variable.
16.What is array and explain how to declare and access the variable.
17.What is find command and explain in briefly with example.
18.What is filtering and explain the grep, egrep and fgrep utility with example.
19.What is sed and explain the different command of sed filter with example.
20.What is awk utility and explain it with the examples.
21.What is filtering and explain the splitting ,comparing, sorting and merging and
ordering file with examples.
22.Explain the mail command
23.Explain the wall command
24.Explain the msg command with their options.
25.Explain the write command with example.
26.Explain News command with example.
27.Write a shell scrip to print palindrome number
28.Write a shell script to print factorial number using while loop
29.Write a shell script to print
*
**
***
****
******
30.Write a shell script to check the given file is readable or not.