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

Question Bank_UNIX_BCA

This document is a question bank for the Unix & Shell Programming course for TY BCA (Sem - 5) at Vidhyadeep Institute of Commerce & Information Technology. It includes multiple-choice questions, short answer questions, and long answer questions covering various Unix commands, concepts, and programming tasks. The content is structured to assess students' understanding of Unix operating system features, shell scripting, file management, and process handling.

Uploaded by

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

Question Bank_UNIX_BCA

This document is a question bank for the Unix & Shell Programming course for TY BCA (Sem - 5) at Vidhyadeep Institute of Commerce & Information Technology. It includes multiple-choice questions, short answer questions, and long answer questions covering various Unix commands, concepts, and programming tasks. The content is structured to assess students' understanding of Unix operating system features, shell scripting, file management, and process handling.

Uploaded by

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

VIDHYADEEP INST. OF COM. & INFO.

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

2. What is the command to list all files in a directory?


a) Ls b) Cd
c) Cp d) mv

3. What is the command to change the ownership of a file?


a) Chown b) chmod
c) cp d) mv

4. What is the command to create a symbolic link?


a) ln -s b) ln -h
c) ln -p d) ln -f

5. What is the command to list all processes running on a system?


a) ps b) top
c) kill d) nice

6. What is the command to display the last lines of a file?


a) head b) tail
c) cat d) less

7. What is the command to terminate a running process?


a) Kill b) stop
c) end d) terminate

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

c) awk ‘/manager/ { print } emp.lst d) awk ‘manager { print }’ emp.lst


11. Which built-in variable is used by the awk to specify the line numbers?
a) AR b) NR
c) $$ d) $?
12. Which of the following directory contain device file
a) Root b) Bin
c) Etc d) dev
13. How can you display a list of all files, including the hidden files?
a) Ls -a b) Find -a
c) Find all d) All
14. How will you list only the empty lines in a file using grep command.
a) Grep “$^” Filename.txt b) Grep “$” Filename.txt
c) Grep “^$” Filename.txt d) Grep $^ Filename.txt
15. Which command is used in shell scrip to save and quite the script.
a) :sq b) :wq
c) :SaveQuite d) :qw
16. Which command is used to Displays the contents of a file page by page
a) More b) Less
c) Diff d) patch
17. The Unix shell is both _______ and _______ language.
a) scripting, interpreter b) high level, low level
c) interactive, responsive d) interpreter, executing
18. Which editor is used by the Unix system to edit files?
a) Word b) notepad++
c) vi d) notepad
19. Which of the following files are known as special files in Unix?
a) /dev/null b) sample.txt
c) /dev/null and /dev/tty d) /dev/tty
20. Which of the following system call is used for creating a new process in Unix?
a) New b) wait
c) read d) fork

Sort question.(3 Marks & 4 marks)

1. What is unix operating system?


2. Explain shell?
3. DiferenetBetween Utility & Application Utility.
4. Explain the windowing System.
5. Explain pip.
6. What is kernel and list any two advantages.
7. Difference between block device and character device.
8. What is the use of $passwrd command.
9. Explain the bc command.
VIDHYADEEP INST. OF COM. & INFO. TECHNOLOGY, ANITA(KIM)
BCA DEPARTMENT

10.What is the use of $shutdown command.


11.What is superblock in i-node Structure.
12.What is Data Block?
13.Explain the ls-f command.
14.Which type of file store in /bin directory.
15.What is the use of PIP command.
16.Write down the full name of BIOS and explain it.
17.What is the use of MKDIR.
18.Explain cat command.
19.What is UID and GID in unix operating system.
20.Explain the flag on column.
21.Explain chmod and chown
22.What if UDF.
23.Different between $* and $@.
24.Explain re-direction and list out the type.
25.Explain case-Statement.
26.Write a command to display the all directory of unix operating system using find
command.
27.What is condition Statements.
28.What is the use of tee command.
29.Write a command to display a file which is modify last two days using the find
command.
30.Different between foreground and background process.
31.Different between zombie and orphan process.
32.Different between nohup and bg command.
33.What is difference between grep & fgrep command.
34.Explain –u,-n,-r option for sort.
35.What is filtering
36.Explain the expression of the [a-c] & [^a-c] in the grep utility.
37.Write a command to find the “akshay” name from the abc.txt file
38.Explain the ch+ and ch? .
39.List out the Different Communication command.
40.Write the different between wall and write communication command.
41.What is the used of –t command in wall communication command.

Long questions.

1. What is Unix and explain the featurs of unix operating System.


VIDHYADEEP INST. OF COM. & INFO. TECHNOLOGY, ANITA(KIM)
BCA DEPARTMENT

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.

You might also like