🧪 Shell Scripting MCQ Quiz Hub

Shell Scripting Mcq Question Set 3

Choose a topic to test your knowledge and improve your Shell Scripting skills

1. Which of the following is not a type of shell?




2. Which of the following is true about shell?




3. What will be the output of $date?




4. The original Unix shell was written in the mid _______




5. The original Unix shell was written by _____




6. How many types of files are there in Unix?




7. Which of the following is true about files?




8. Which command is used to list all the files?




9. Which of the following symbol represents the current directory?




10. Which of the following syntax is used for creating files in VI editor?




11. The most common file type is ___.




12. Each entry of directory file has component(s) namely _____.




13. _____ and _____ cannot be used in a filename.




14. How many stream Unix program has?




15. What is the associated file descriptor for stdout?




16. The name of a variable can contain ________.




17. Unix shell variables will have their names in _____.




18. Whch of the following is invalid variable names?




19. Which of the following command is used to display the environment variables only?




20. How many prompt shell has?




21. Which keyword is used to remove the variable?




22. We cannot use the unset command to unset variables that are marked _______




23. $# is used to show?




24. What is true about array variable in Shell?




25. Which of the following is correct syntax for defining array values?




26. What is the syntax of array initialization when you are using ksh shell?




27. What is the syntax of array initialization when you are using bash shell?




28. what is the syntax to access array values?




29. A shell variable is capable enough to hold a single value. These variables are called _____




30. Which of the following syntax is used to access all the items in an array?




31. Which of the following code is used to print elements in range?




32. Which of the following code will count Length of in Array?




33. Which of the following is correct code to search in array?




34. Which of the following operator is not supported in Bourne shell?




35. Which external program used by bourne shell to perform simple arithmetic operations?




36. The complete expr and awk expression should be enclosed between _____




37. In relational operator, which keyword is used to represent greater than or equal?




38. Which of the boolean operator is supported in bourne shell?




39. What is the use of str operator in bourne shell?




40. Which File test operator is used to checks if file has its sticky bit set?




41. What is the used of -x file test operator?




42. What is the use of -z string operator in bourne shell?




43. What is the use of -e file test operator in korn shell?




44. Which of the following loops is not available in shell?




45. The _______ loop executes the given commands until the given condition remains true.




46. Which of the following statements that are used to control shell loops?




47. A loop may continue forever if the required condition is not met is known as _______




48. Which of the following statement is used to terminate the execution of the entire loop?




49. What is the syntax of break command that can also be used to exit from a nested loop?




50. Which of the following statement is supported in unix shell?