Changes

Jump to: navigation, search

Talk:Fall 2008 SPR720 Sample Exam Questions

371 bytes added, 22:29, 10 December 2008
no edit summary
fi
done
 
===ANSWER:===
<pre>
one three
</pre>
Nes
 
3. What will the output of this script be?
#!/bin/bash
echo "exrxzW" | tr "A/blCedxEzfrGyhoI=JW" "8qC3pSDehcTngi#TNrIa"
 
===ANSWER:===
<pre>
Seneca
</pre>
Nes: tr is an translator, it will use the first one to match the second string..
A/blCedxEzfrGyhoI=JW
8qC3pSDehcTngi#TNrIa
# say, if u pipe is "A/B", then out put is "8qC", if the pipe is "ACxEW", then output will be "8peha"
4. What will the output of this script be?
echo "$A^2=" $((A * A))
done
 
===ANSWER:===
<pre>
0^2= 0
1^2= 1
2^2= 4
3^2= 9
4^2= 16
</pre>
Nes
5. Here is a Makefile:

Navigation menu