1. Which one shows the correct precedence order of operators used in a shell? Operators on left side of comma have higher precedence than those on the right side of comma.
2. Suppose there are three files test0.sh, test1.sh, and test2.sh in your current directory. Which of the following options would occur during the execution of read statement?
3. Which expression is valid?
4. What is the output of the following program?
5. What's the output when directory name 'home' is given as input?
6. What is the output of the following program?
7. Suppose you are writing a shell script that accepts five positional parameters from the terminal. What will be the effect of using statement 'shift 1' in your shell script and then executing the shell script?
8. Which loop is invalid?
9. What is the error in the following program?
10. What's the output assuming that the command line arguments are Unix shell scripting?
11. What is the output of the following program?
12. What is the error in the following program?
13. Which is correct declaration(s) of a null variable 'a' in shell script?
14. A shell script is executed by:
15. Which statement is true?
16. On executing the statement: set -3 + 1
17. Which assignment is illegal?
18. Which variable name is invalid?
19. The expression expr -2 % 7 evaluates to:
20. The statement z=`expr 5 / 2` would store which value in z?
21. What is the error in the following loop statement?
22. Which one is not a shell keyword?
23. What's the output of the following program?
24. Output of the following program?
25. Error in the following shell script code?
26. The expression expr -7 % 2 evaluates to:
27. The exit statement is used in a loop to
28. What is the output of the following program?
29. Precedence hierarchy decides which operator:
30. What is the error in the following program?
31. The break statement is used to exit from:
32. What is the output of the following program?
33. Which assignment is illegal?
34. What's the error in the following program?
35. Which of the following lines have an error?
36. Which of the following is true about the 'continue' statement?
37. Output of the following program assuming that the command line arguments are dog parrot cuckoo? for argument in $* do echo $argument done
38. Which expression is correct?
39. If x=11 and y=6, then what is the exit status of the following expression?
40. Which statement is incorrect regarding if-then-fi?
41. Condition to check whether file with name 'xyz' is a regular file?
42. Output of the following shell script code?
43. Which statement is false?
44. Output of the following program?
45. If x=11 and y=6, then what is the exit status of the following expression?
46. Which one is true about 'until' loop?
47. What is the error in the following program?
48. What is the output of the following program?
49. What is the output of the following program?
50. What is the error in the following shell script code?
51. A shell variable cannot start with
52. Which one is allowed in an arithmetic statement involving expr command?
Virtual Private Network - VPN
VoIP - Voice Over IP
Paypal Web Integration
J2ME - Java Platform Micro Edition
Facebook Open Platform Development
OpenSocial
Related MCQ's