Documente Academic
Documente Profesional
Documente Cultură
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.
multiuser
C. portable
A.
B.
featureless
D. multitasking
2.
3.
_____________ directory contain executable file for most of the UNIX commands.
A.
lib
C. dev
bin
B.
D. tmp
4.
5.
6.
7.
8.
C.
D.
9.
10.
rm new old
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
13.
14.
C.
D.
touch filename
less filename
A.
B.
15.
Hardware
Shell
C.
D.
Kernel
CPU
last line
ex
16.
To get out of insert mode, press the _____ key, which will put you back into
command mode.
A.
Shift
C. Esc
B.
Ctrl
D. Alt
17.
Which command is used to copy all files having the string chap and any two
characters after that to the progs directory?
cp chap* progs
C. cp chap[12] /progs/*.*
A.
cp chap?? progs
B.
D. None of these
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.
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.
5.
C.
D.
copy a file
display a file
6.
7.
Question Bank
8.
9.
________ pathname uses the current directory as point of reference for the file.
Relative
A.
C. Both A and B
B.
Absolute
D. None of these
10.
________ commands are executed directly by the shell. These commands will not
have a separate process running for each.
A.
External
C. Internal
B.
Background
D. None of these
UNIT 3
1.
2.
C.
D.
end if
none
C.
D.
end case
None of these
3.
4.
5.
Both A and B
None of these
6.
For taking input from the user in shell script ________command is used
A.
echo
C. Both A and B
read
B.
D. None of these
7.
8.
9.
Page 3 of 6
Question Bank
UNIT 4
1.
2.
3.
4.
5.
C.
D.
expr 4 * 5
expr 4 / 5
6.
_______command copies to output those lines in the input that match a specified
pattern.
A.
cut
C. echo
B.
paste
D. grep
7.
8.
C.
D.
Sequence Editor
None of these
9.
10.
Which symbol will be used with grep command to match the pattern pat at the
beginning of a line?
^pat
C. pat$
A.
B.
$pat
D. pat^
11.
Page 4 of 6
Question Bank
UNIT 2
1.
2.
3.
4.
5.
6.
7.
8.
9.
UNIT 3
1.
2.
3.
4.
5.
6.
7.
8.
1.
2.
3.
4.
5.
6.
7.
8.
Question Bank
4.
5.
6.
7.
1.
2.
3.
4.
5.
6.
7.
1.
2.
3.
4.
5.
6.
7.
1.
2.
3.
4.
5.
6.
7.
8.
UNIT 1
Marks
[4]
[5-6]
3
mark
each
[4-5]
[4-5]
[4-5]
UNIT 2
Marks
[4-5]
[4-5]
[4-5]
[4-5]
[4-5]
[4-5]
[4-6]
UNIT 3
Marks
[3-4]
[6-7]
[4-5]
[4-5]
[10]
[4]
[4]
UNIT 4
Marks
Explain method of processing data in text files for fixed-width format and
delimited format in detail.
Explain method of processing data in text files for fixed-width format in detail.
Explain method of processing data in text files for delimited format in detail.
Explain substitution facility of sed filter.
Explain grep command with example.
Write note on sed filter.
Explain all attributes displayed by l option of ls command.
How to process the output of who command?
[10]
[4-5]
[4-5]
[3-4]
[5-6]
[5-6]
[4]
[3]
Page 6 of 6