Unix Questions and Answers – Shell Programming using Various Commands – 1

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Shell Programming using Various Commands – 1”. 1. Which of the following commands let us perform a set of instructions repeatedly? a) for b) while c) until d) for, while, until 2. Which of the following keywords are used in while loop? a) … Read more

advertisement

Unix Questions and Answers – Case and Expr Command

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Case and Expr Command”. 1. ____ statement matches an expression for more than one alternative. a) for b) while c) elif d) case 2. Every pattern in case statement in terminated with a _____ a) ; b) : c) ;; d) // 3. … Read more

advertisement

Unix Questions and Answers – Using test and [ ] to Evaluate Expressions – 2

This set of Unix MCQs focuses on “Using test and [ ] to Evaluate Expressions – 2”. 1. Which one of the following option is used for checking that the string is NULL string? a) -a b) -o c) -z d) -n 2. We can use a test to test various file attributes. a) True … Read more

advertisement

Unix Questions and Answers – Using test and [ ] to Evaluate Expressions – 1

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Using test and [ ] to Evaluate Expressions – 1”. 1. test command can be used to check which of the following? a) Compare two numbers b) Compare two strings c) Check attributes of a file d) All of the mentioned 2. Which … Read more

advertisement

Unix Questions and Answers – Logical Operators and Conditional Execution

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Logical Operators and Conditional Execution”. 1. Which of the following operators are used for logical execution? a) || b) && c) %% d) && and || 2. When we use &&, the second command is executed only when first succeeds. a) True b) … Read more

advertisement

Unix Questions and Answers – Shell Programming using read Command and Command Line Arguments

This set of Unix Multiple Choice Questions & Answers focuses on “Shell Programming using read Command and Command Line Arguments”. 1. What is a shell script? a) group of commands b) a file containing special symbols c) a file containing a series of commands d) group of functions 2. Shell scripts need to be saved … Read more

advertisement

Unix Questions and Answers – sed command – 2

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “sed command – 2”. 1. sed can also perform the substitution. a) True b) False 2. Which one of the following is the correct syntax for performing substitution using sed? a) sed [address]s /expr1/ expr2 b) sed [address]s /expr1 expr2 c) sed [address]s … Read more

advertisement

Unix Questions and Answers – sed command – 1

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “sed command – 1”. 1. Which of the following commands is known as stream editor? a) sed b) grep c) grep d) tr 2. What is the correct syntax for using sed? a) sed options file(s) b) sed options ‘action’ c) sed options … Read more

advertisement

Unix Questions and Answers – grep command – 2

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “grep command – 2”. 1. Which of the following is not a subset of BRE (basic regular expression) character subset? a) * b) .* c) ^$ d) ch+ 2. Character class is used for matching a group of characters enclosed within a pair … Read more

advertisement

Unix Questions and Answers – grep command – 1

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “grep command – 1”. 1. Which one of the following command is used for searching for a pattern in one or more file(s)? a) cd b) cp c) paste d) grep 2. Which one of the following is the correct syntax for grep … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.