MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Unix
Unix Technical
Quiz 1
1
2
3
4
5
6
7
8
9
Q.1
Which of the following option is used with a set for debugging shell scripts?
a) -a
b) -x
c) -d
d) -e
Q.2
Suppose x =then what will be the value of x$x$?
a) undefined
b) erroneous
c) 100
d) x10$
Q.3
Given x=then, x$x$ == $x$x.
a) True
b) False
Q.4
A shell script stopped running when we change its name. Why?
a) location of the file changed
b) we can’t change the name of the script
c) $0 was used in the script
d) many possible reasons
Q.5
Where is the exit status of a command stored?
a) $0
b) $>
c) $1
d) $?
Q.6
Which of the following is false?
a) here document provides standard input to any script non interactively
b) read command is used for making scripts interactive
c) $* stores the number of arguments specified
d) && and || are logical operators
Q.7
test statement cannot ______
a) compare two numbers
b) compare two strings
c) compare two files
d) check a file’s attributes
Q.8
____ option is used with a test for checking if the file exists and has the size greater than zero.
a) -f
b) -r
c) -e
d) -s
Q.9
Every time shift command is used, the leftmost variable is lost.
a) True
b) False
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page