Linux OS Shell Question:
Download Questions PDF

The keyword 'local' is used:
a) to define a variable within a function for its local scope
b) to redefine any global variable
c) this is not a valid keyword
d) none of the mentioned

Linux Shell Interview Question
Linux Shell Interview Question

Answer:

a) to define a variable within a function for its local scope

Download Linux Shell Interview Questions And Answers PDF

Previous QuestionNext Question
Which of the following command provides the list of the functions defined in the login session?
a) declare -f
b) declare -F
c) both (a) and (b)
d) none of the mentioned
Functions improves the shell's program-ability significantly, because:
a) when we invoke a function, it is already in the shell's memory, therefore a function runs faster than seperate scripts
b) function provides a piece of code for repetative tasks
c) both (a) and (b)
d) none of the mentioned