⟩ How do you rename file "new" to file "old"? a) mv new old b) move new old c) cp new old d) rn new old
a) mv new old
a) mv new old
When the return value of any function is not specified within the function, what function returns? a) nothing b) exit status of the last command executed c) 0 d) none of the mentioned
* Specifies a) one or more character b) zero or more charecter c) nothing d) None of the above
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
Parameters can be passed to a function a) by using the parameter variables $1, $2, $3……. b) by using the environment variables c) both (a) and (b) d) none of the mentioned
What is the output of this program? #!/bin/sh san_function() { echo "Welcome to the google" printf "World of Linuxn" } unset -f san_function san_function exit 0 a) Welcome to the google b) World of Linux c) both (a) and (b) d) nothing will print
What is the output of this program? #!/bin/sh echo "Just call the function" san_function san_function() { echo "This is a function" } exit 0 a) only first string will print without any error b) only second string will print without any error c) both strings will print d) none of the mentioned
Which command reads user input from the terminal and assign this value to a variable name? a) read b) get c) declare d) set
Which one of the following is not a valid shell variable? a) _san b) san_2 c) _san_2 d) 2_san
In the shell, by default, all variables are considered and stored as a) string b) integer c) character f) float