0% found this document useful (0 votes)
817 views4 pages

UNIX Shell Programming Exam Paper

This document is a question paper for a UNIX Shell Programming exam with 50 multiple choice questions. It provides instructions to candidates to darken the appropriate circle on the OMR sheet corresponding to each question number. The questions cover various topics about UNIX commands like man, uname, stty, who, passwd, clear, chmod, ls, cat, and directories.

Uploaded by

Aum Jadhav
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)
817 views4 pages

UNIX Shell Programming Exam Paper

This document is a question paper for a UNIX Shell Programming exam with 50 multiple choice questions. It provides instructions to candidates to darken the appropriate circle on the OMR sheet corresponding to each question number. The questions cover various topics about UNIX commands like man, uname, stty, who, passwd, clear, chmod, ls, cat, and directories.

Uploaded by

Aum Jadhav
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

GBCS SGHEME 21CS482

USN BI 2 C o 29 Question Paper Version : A

Fourth Semester B.E. Degree Examination, June/July 2023


UNIX ShellProgramming
[Max. Marks: 50
Time: Ihr.]
INSTRUCTIONS TO THE CANDIDATES

1.
Answer all the fifty questions, each question carries one marK.
2. Use only Black ball point pen for writingldarkening the circles.
3 For each question, after selecting your answer, darken the appropriate circle
corresponding to the same question number on the OMR sheet.
4. Darkening two circles for the same question makes the answer invalid.
5. Damaging/overwriting, using whiteners on the OMR sheets are strictly
prohibited.
1 The UNIX shell is both and language
"a) Scripting and interpreter
b) High level and low level
c) Interactive and responsive
d) Interpreter and executing
2. Which command is used to display the documentation of commands in UNIX?
" a) man b) help c) wc d) who

3. Which keys afe used to exit be command?


a) Alt +d b) ctrl + E c) ctrl +d d) ctrl + D
UNIX?
4. Which command is used to check current version of OS in
a) Suname - y b) Suname c) uname v d) uname -n

in UNLX
5. S stty - ais used to display
b) current users -c) current settings d) None of the above
a) old settings
of cach column
6. Which of the below options can be used with who command to display header
to in the output
b)-u c) who -d) -h
a) -H

7 Which command can be used to change our current password of the system
a) Password b)Pwd .c) Passwd d) None of these

8. The command used to clear the screen in UNIX is


a) clrscr() b) tPut c) tPut clear d) clearscreen
Ver A- l of4
25. Default24.set 23. 22. 20. 19. 18. 17. 16. 15. 14. 13. command
Which12. 11. 10. 9.
21.
Which
a) chmod a) a)
How2 "c) a)Directory "a) a)$ a) -a)-l directory ("a)
current a) In Which dircctory
) theof Parent
"c) a)Pwvd del* a) PwdWhich
a) JavaUNIX
a) -a
a)
filea)Pemissions
s-(hypen) Which
a)n- Which c)Chmod Which
rw LongListing -l W,
X,
r, execute
both To Print
many long UNIX, is
rw of UNIX was option
listingcommand of of a U workingcommand
rwthe files in the andmode + list what
permissionsof
is types following written
following the of command
b isx only
ofwith following following
symbols
used command
used is is
is o/p file a to does directory used
of files the uscd is in
file name used
ofslcommand command others used
are directories HOME
*b) 3 to with
b) is catb)permissions Ordinary b)
for fileb) represented -b) b)
&
symbol -ldb)directoryRoot b) b)
("
") check m*
b) to b)m C++ b) b)
rwxrWXrwx
rIL default
c) e, n assign
used to delete
determinedby
a w, variable language i s
- is command
pemission x s
used is to
used all directory
current
change
are by represent? the
to option in
Ver there indicates which createto relative files?
logfor
indicate files
A setting
simple
setunmask
.called
c) "c) C .c) -
-2 c)4 in d) Sourcefilec) c)x,w,
e of c)soft c)+ d).b) c)+
d is c) c) Home
d) b) directory
$path directory c)
mv* c) ina CP
for UNIX? None b) the execute used Users None Iisting
of4 Listing n absence none
link?
ordinary following - with name?
of sl of home of of
the of thesemode s these
ordinary of
file? above permission commanddirectory
characters to
d) .d) d) user None d) d) "d)cd
printd)as d)
1 d) d) rndir d) d) -L
d)
w files x, n (-)
All W, and
nonc
rw - of
of r a a of
rwx these file ofthesealld) ()
thesc
21CS47
21CS482
26. What is a relative path name in UNIX?
a) Path starting from root directory
b) Path relative to current directory
c) Path relative to home directory
d) Path containing only file name
27. What is group ownership?
a) group of uses who can create file
b) group of uses who can delete file
c)group of uses who can access file
d) none of the above

28. Which command is used to change the owner of a file? d)chmod


a) cowner b) chown c) chowner
pernission representation
29. Which number is assigned to read permission in octal d) 4
a) 0 b) 2 c) 1

30. Which is the following is not a content of inode? .d) file name
b) file permission c)file size
a) file type
used
31. To make shell interactive, the command is .d) read
b) input c) write
a) ip
32. && and | are used for
a)conditional execution
"b) logical execution
c) Relational execution
d) All of the above

33. Every if is closed with a corresponding c) else if d) if


a) else b) fi
its arguments toits positional parmeters is
34. The command used to assign c) both a and b d) None
"a) set b) shift

35. Exit 1 is used to represent b) when something went wrong


a) proper execution d) None
-c) In both situation
single string
stores the complete set of positional parameters as a d) $#
36.
b) S# c) Sn
a) $
command in the following?
37. Which is the internal b) expr c) cut d) Is
.a)set
while loop?
Which of the following keywords are used in "d) do and done
38. b)done c) then
a) do
a program
39.
command is the appropriate way to interrupt
c) INT "d) trap
b)SIGKILL
a) kill
file
can be used to redirect the output to a
40. Which of the following symbols c) >> .d) All of the above
b) >
a) I Ver A-3 of4
21CS482
41. When process is crcated,
a) Samc PID as parent
parent and child process will have
b) Different PID
c) Will not have any ID
d)None of the above

42. Aparent process calling System call will be suspended until children process terminate
a)wait b) fork c) exit d) exec

43. Which command used to display the proccss owned by the user running the current command
a) pwd b) Home -c) PS d) fork ( )
44. Command is used to schedule another comand runtime once in future.
.a) batch b) PS d) cron
c) at
45. Cron allows user to schedule a command runtime
a) at once in future "b) c) Twicea week d) None of the these
Periodically
46. By using the command ofcrontab a user can
a) Remove contents of crontab file
b) See the contents of crontab file
.c) Both a andb
d) None ofthe these

47. The three ways in which a process responds to a signal are


a) ignoring a signal
b)Handling a signal
c)performing some default action
d) All of the above
48. When a process has completed its execution it is called
a) Born b) Terminated c) Waiting d) Exit

49. The parent id ofa child is called


a) PID -b) PPID c) TID d) PTID
on to a UNIX system?
50. Which process is immediately setup by the kemel when we log d) None of the these
a) parent b)bash "c) shell

sk k sk k k

Ver A- 4of4

You might also like