Answer the qs in UNIX commands

1) whats the output of the below script, when executed at the command line
vi test.ksh
echo 'output $@:'$@
echo 'output$#:'$#
----------------
cmd execution as follows
$test.ksh Hello"

a)output $@:1,output $#:Hello
b)output $@:Hello,output $#:1
c)output$@:,output $#:
d)None of the above

2)whats the output of following script
pdate='20090130
pcomp='ABC
echo '$pdate'"$pdate"
a)ABC+20090130
b) $pcomp_20090130
c)ABC
$pdate
d)ABC_pdate

3) whats the output for the following environment variable
echo "SHELL1"$SHELL"
SHELL='Hello'
echo "SHELL2:$SHELL"
a)SHELL1:,SHELL2:
b)SHELL1:ksh,SHELL2:Hello
c)SHELL1: <default shell>,SHELL2:Hello
d) SHELL1:SHELL,SHELL2:SHELL

So - what would be YOUR answers?

Hi Rudic.

my answer is 1)c , 2)b 3)c.

Please confirm if my answer is correct

My first step were to sit down at my computer, enter and run the scripts, and check the results. If doing so, would you still need somebody else's confirmation?

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.