CA3EL13 Linux & Shell Programming
CA3EL13 Linux & Shell Programming
Total No. of Questions: 6 Total No. of Printed Pages:2 x. Which command is used to shut down a system? 1
(a) Sudo systemcontrol poweroff
Enrollment No...................................... (b) Sudo systemctl poweroff
(c) Sudo systemctl shutdown
Faculty of Science / Engineering
(d) Sudo systemcontrol shutdown
End Sem Examination May-2024
CA3EL13 Linux & Shell Programming Q.2 i. Define bash. 2
Programme: BCA / BCA- Branch/Specialisation: Computer ii. What is kernel? Write types of kernel. 3
MCA (Integrated) Application iii. Draw architecture of Linux. Explain different layers of Linux 5
Duration: 3 Hrs. Maximum Marks: 60 architecture.
Note: All questions are compulsory. Internal choices, if any, are indicated. Answers of OR iv. Why is Linux the most used operating system? Justify. 5
Q.1 (MCQs) should be written in full instead of only a, b, c or d. Assume suitable data if
necessary. Notations and symbols have their usual meaning. Q.3 i. What is du and df command? 2
ii. Explain system startup and shutdown process in detail. 8
Q.1 i. Which among the following interacts directly with system 1
hardware? OR iii. Explain following commands- 8
(a) Terminal (b) Kernel (c) Shell (d) Applications (a) kill (b) ps (c) uniq (d) paste
ii. Linux is which kind of Operating System? 1
(a) Multi-user (b) Multi-processes Q.4 i. Define awk. Write syntax with example and usage. 3
(c) Multi-tasking (d) All of these ii. What is system monitoring and logging? Explain with the help of 7
iii. The process id of init process is: 1 their commands.
(a) -1 (b) 0 (c) 1 (d) 2 OR iii. Explain egrep command. Write difference between grep and egrep 7
iv. Which Linux command is used to print a file? 1 commands.
(a) lp (b) pr (c) print (d) ptr
v. Sed stands for: 1
Q.5 i. Define echo and shebang. Write difference between echo and read. 4
(a) Search editor
(b) Switch editor ii. Write a script for- 6
(c) Stream editor (a) To swapping of two numbers using third variable
(d) Shell editor (b) To check if the number is palindrome or not
vi. Which command is used to change file permissions? 1 OR iii. What is shell scripting? Write features of it and write a shell script 6
(a) file (b) chown (c) chmod (d) ls -l to perform arithmetic operations.
vii. What command is used with vi editor to replace text from cursor to 1
right- Q.6 Attempt any two:
(a) S (b) s (c) R (d) r i. Write short note on: 5
viii. Which is the correct statement for adding two numbers in a shell 1 (a) FTP (b) Domain name system
script? ii. Explain file management in Linux with its commands. 5
(a) z= expr $x + $y (b) z=`expr $x + $y`
iii. Describe all the Ip address classes. 5
(c) z=`expr x + y` (d) None of these
ix. What is the format of IP address? 1
******
(a) 16 bit (b) 64 bit (c) 32 bit (d) 34 bit
P.T.O.
[4]
Marking Scheme
Q.6
Linux & Shell Programming (T) - CA3EL13 (T) i. FTP- 2.5 Marks 2.5+2.5=5
. domain name system – 2.5 Marks
ii. Explanation – 2 Marks, 2+3=5
Q.1 i) (b) kernel 1 file management with commands – 3 Marks
ii) (d) All of the above 1 iii. 5 Marks 5
iii) (c) 1 1
iv) (a) lp 1 ******
v) (c) Stream editor 1
vi) (c) chmod 1
vii) (c) R 1
viii) (b) z=`expr $x + $y` 1
ix) (c) 32 bit 1
x) (b) sudo systemctl poweroff 1
Q.2 i. 2 Marks 2
ii. Definition – 1 Marks 1+2=3
types with definition. 2 Marks
iii. Architecture diagram, 2 Marks 2+3=5
layers explanation 3 Marks
OR iv. Each point of explanation – 1 Marks 1*5=5
P.T.O.