Interviewer And Interviewee Guide

Linux OS Shell Interview Question:

What is the output of this program?

#!/bin/bash
san_var=10
echo "the value of "san_var" is $san_var"
exit 0
a) the value of "san_var" is 10
b) the value of is 10
c) the value of san_var is $san_var
d) the value of "san_var" is $san_var

Submitted by: Murtaza
a) the value of "san_var" is 10
Output:
root@ubuntu:/home/google# ./test.sh
the value of "san_var" is 10
root@ubuntu:/home/google#
Submitted by: Murtaza

Read Online Linux OS Shell Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.