1. Which one is allowed in an arithmetic statement involving expr command?
2. A shell variable cannot start with
3. What is the error in the following shell script code?
4. What is the output of the following program?
5. What is the output of the following program?
6. What is the error in the following program?
7. Which one is true about 'until' loop?
8. If x=11 and y=6, then what is the exit status of the following expression?
9. Output of the following program?
10. Which statement is false?
11. Output of the following shell script code?
12. Condition to check whether file with name 'xyz' is a regular file?
13. Which statement is incorrect regarding if-then-fi?
14. If x=11 and y=6, then what is the exit status of the following expression?
15. Which expression is correct?
16. Output of the following program assuming that the command line arguments are dog parrot cuckoo? for argument in $* do echo $argument done
17. Which of the following is true about the 'continue' statement?
18. Which of the following lines have an error?
19. What's the error in the following program?
20. Which assignment is illegal?
21. What is the output of the following program?
22. The break statement is used to exit from:
23. What is the error in the following program?
24. Precedence hierarchy decides which operator:
25. What is the output of the following program?
26. The exit statement is used in a loop to
27. The expression expr -7 % 2 evaluates to:
28. Error in the following shell script code?
29. Output of the following program?
30. What's the output of the following program?
31. Which one is not a shell keyword?
32. What is the error in the following loop statement?
33. The statement z=`expr 5 / 2` would store which value in z?
34. The expression expr -2 % 7 evaluates to:
35. Which variable name is invalid?
36. Which assignment is illegal?
37. On executing the statement: set -3 + 1
38. Which statement is true?
39. A shell script is executed by:
40. Which is correct declaration(s) of a null variable 'a' in shell script?
41. What is the error in the following program?
42. What is the output of the following program?
43. What's the output assuming that the command line arguments are Unix shell scripting?
44. What is the error in the following program?
45. Which loop is invalid?
46. 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?
47. What is the output of the following program?
48. What's the output when directory name 'home' is given as input?
49. What is the output of the following program?
50. Which expression is valid?
51. 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?
52. 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.