I was testing my knowledge using the free Linux Technical Skills Assessment tests on Novell's site:
Linux Technical Skills Assessment
And In the
Advanced Administration assessment there are the following two questions:
The two variables TEXT1 and TEXT2 contain text strings. Which of the following commands checks if both strings are identical?
a) test $TEXT1 = $TEXT2
b) test $TEXT1 -eq $TEXT2
c) test $TEXT1 <> $TEXT2
Which is not a valid declaration of a function?
a) pause () { sleep $1; }
b) function pause {sleep $1;}
c) function pause { sleep $1; }
d) Do not know
I answered 'a' and 'b' but found that they wanted the answers to be 'b' and 'a'....
I'm pulling my hair out over those and I believe the site has them wrong. You can't use the -eq with strings you will get an error... And you will also receive an error on declaring your function without spaces next to the {}..
So I'm just hoping someone can help me verify that the site has it wrong and not me... :)
Also, I'm thinking of taking the CLP10 exam and stuff like this makes me wonder if I have to worry about the test being wrong. But reading through the forums it seems like its more of a hands on test so I'm guessing I don't need to worry about it.
Thanks!
Joel