8.advance Scripting: A) Command B) Shellscript C) Function D) None
8.advance Scripting: A) Command B) Shellscript C) Function D) None
8.Advance Scripting
A ) command
B ) shellscript
C ) function
D ) none
Answer: shellscript
A ) process
B ) id
C ) security
D ) general
Answer: process
3) Each process when started has a unique number associated with it known as ______.
A ) UID
B ) CID
C ) PID
D ) MID
Answer: PID
4) To see the processes associated with the current shell we can issue the _________ command
without any parameter.
A ) id
B ) pn
C ) ps
D ) ss
Answer: ps
5) Administrative can view the process of all the users by using the _________command.
A ) ps –ef
B ) ps –es
C ) id –pf
D ) id –es
Answer: ps –ef
A ) UID
B ) PID
C ) TTY
D ) PPID
Answer: PPID
A ) del
B ) kill
www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 1/8
2/5/23, 5:25 PM Study Material
C ) rem
D ) delete
Answer: kill
A ) one
B ) two
C ) three
D ) four
Answer: four
A ) {}
B ) []
C ) ()
D ) none of them
Answer: []
A ) fi
B ) end
C ) close
D ) }
Answer: fi
11) The exit status of command is __________ if it has been executed successfully.
A ) 1
B ) 100
C ) 0
D ) 11
Answer: 0
12) when if statement condition is true then statement typed under ______ statement is executed.
A ) if
B ) then
C ) after
D ) before
Answer: then
A ) equal
B ) crp
C ) equal to
D ) cmp
Answer: cmp
A ) elif
B ) end if
C ) if else
www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 2/8
2/5/23, 5:25 PM Study Material
D ) none of them
Answer: elif
15) Linux also provide _______ command which can be used in place of square bracket of if statement.
A ) sp
B ) test
C ) nt
D ) sq
Answer: test
A ) logical
B ) bitwise
C ) relation
D ) comma
Answer: relation
A ) -ge
B ) -lt
C ) -gt
D ) All of them
18) Relational operators are used to compare values of _______ numeric operands.
A ) one
B ) two
C ) three
D ) three
Answer: two
A ) logical
B ) relation
C ) comma
D ) increment
Answer: logical
A ) -a
B ) -o
C ) !
D ) -^
Answer: -a
A ) -a
B ) -o
C ) !
www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 3/8
2/5/23, 5:25 PM Study Material
D ) -^
Answer: -o
A ) -a
B ) -o
C ) !
D ) -^
Answer: !
A ) comma
B ) file
C ) condition
D ) none
Answer: file
24) __________ operators is used to check the specified file name is exist and has size greater than 0.
A ) -f name
B ) –r name
C ) -s name
D ) -w name
Answer: -s name
25) ____ operators is used to check the specified file name is exist and is not a directory.
A ) -f name
B ) –r name
C ) -s name
D ) -w name
Answer: -f name
26) ____ operators is used to check the specified file name is a directory.
A ) -f name
B ) –r name
C ) -s name
D ) -d name
Answer: -d name
27) ____ operators is used to check the specified file name is exist and user has execute permission
on it.
A ) -f name
B ) –x name
C ) -s name
D ) -d name
Answer: –x name
A ) if-then-elif-then-else-fi
B ) switch
C ) for
www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 4/8
2/5/23, 5:25 PM Study Material
D ) while
Answer: if-then-elif-then-else-fi
A ) if
B ) case
C ) for
D ) non
Answer: case
A ) fi
B ) elif
C ) esac
D ) any one
Answer: esac
31) In case all the statements written within that section are executed till two ______are encountered
A ) : :
B ) ; ;
C ) , ,
D ) " "
Answer: ; ;
32) In case statement if user entered wrong choice automatic it transferred at ___ section.
A ) *
B ) $
C ) #
D ) %
Answer: *
33) The process of repeating the same commands number of times is known as _______
A ) Condition
B ) decision
C ) looping
D ) none
Answer: looping
A ) for
B ) while
C ) do-while
D ) all of them
35) The ______ loop allows us to specify a list of values in its statement.
A ) for
B ) while
C ) do-while
www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 5/8
2/5/23, 5:25 PM Study Material
D ) none
Answer: for
A ) zar
B ) tar
C ) tz
D ) zip
Answer: tar
A ) do
B ) if
C ) while
D ) none
Answer: while
A ) until
B ) for
C ) while
D ) all of them
Answer: until
A ) for
B ) do
C ) until
D ) none
Answer: until
40) Linux shell script also provides us the feature of creating _______.
A ) function
B ) object
C ) class
D ) none
Answer: function
A ) statement
B ) variable
C ) function
D ) group
Answer: function
42) Using ____ we can improve the overall readability of the scripts.
A ) operator
B ) function
C ) variable
www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 6/8
2/5/23, 5:25 PM Study Material
D ) none
Answer: function
A ) variable
B ) value
C ) ans
D ) none
Answer: value
A ) value
B ) file
C ) A & B
D ) status code
A ) /
B ) *
C ) $
D ) #
Answer: *
A ) ge
B ) gt
C ) -lt
D ) le
Answer: -lt
A ) test
B ) fi
C ) for
D ) while
Answer: test
A ) next
B ) then
C ) after
D ) done
Answer: then
A ) for
B ) while
C ) untile
www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 7/8
2/5/23, 5:25 PM Study Material
D ) all of them
A ) efi
B ) li
C ) elif
D ) none
Answer: elif
www.ameecomputerclass.in
www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 8/8