What is the output of this program?
#!/bin/bash
function hello_function1 {
echo "This is first function"
}
hello_function2() {
echo "This is second function"
}
hello_function1
hello_function2
exit 0
#!/bin/bash
function hello_function1 {
echo "This is first function"
}
hello_function2() {
echo "This is second function"
}
hello_function1
hello_function2
exit 0A. This is the first function
B. This is the second function
C. This is the first function
This is the second function
D. program will generate error because first function definition is not correct
Answer: Option C
Related Questions on Linux
What command is used to count the total number of lines, words, and characters contained in a file?
A. countw
B. wcount
C. wc
D. count p
E. None of the above
What command is used with vi editor to delete a single character?
A. x
B. y
C. a
D. z
E. None of the above

Join The Discussion