MCQs > IT & Programming > Unix Shell Script > What's the output when directory name 'home' is given as input?

Unix Shell Script MCQs

What is the output of the following program when directory name "home" is given as input?

echo Enter a directory Name

read dirname

case $dirname in

    *) echo any directory name ;;

    c*) echo cobol directory name ;;

    f*) echo fortran directory name ;;

    p*) echo pascal directory name ;;

esac

Answer

Correct Answer:

any directory name

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Unix Shell Script Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Unix Shell Script Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it