adplus-dvertising

Welcome to the Filters and Regular Expressions MCQs Page

Dive deep into the fascinating world of Filters and Regular Expressions with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Filters and Regular Expressions, a crucial aspect of UNIX. In this section, you will encounter a diverse range of MCQs that cover various aspects of Filters and Regular Expressions, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within UNIX.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Filters and Regular Expressions. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of UNIX.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Filters and Regular Expressions. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Filters and Regular Expressions MCQs | Page 13 of 18

Explore more Topics under UNIX

Q121.
Which one of the following command will be used for searching β€œdirector” in emp.lst?
Discuss
Answer: (d).grep β€œdirector” emp.lst
Q122.
When the pattern is not found in a file, grep command silently returns the prompt.
Discuss
Answer: (a).True
Q123.
grep command can be used for searching a pattern in more than one file.
Discuss
Answer: (a).True
Q124.
Which of the following is not a subset of BRE (basic regular expression) character subset?
Discuss
Answer: (d).ch+
Q125.
Which of the following commands is known as stream editor?
Discuss
Answer: (a).sed
Discuss
Answer: (c).sed options β€˜address action’ file(s)
Q127.
Which one of the following command will be used for quitting after selecting 3 lines from file emp.lst?
Discuss
Answer: (c).sed β€˜3q’ emp.lst
Q128.
Which of the following command is used with sed for outputting as well as printing the selected lines?

a.

q

b.

n

c.

p

d.

i

Discuss
Answer: (c).p
Q129.
To suppress the behaviour of β€˜p’ command, we use ____ option.
Discuss
Answer: (b).-q
Q130.
The command $ sed -n β€˜$p’ emp.lst will display the last line.
Discuss
Answer: (a).True

Suggested Topics

Are you eager to expand your knowledge beyond UNIX? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!