adplus-dvertising

Welcome to the Vi Editor MCQs Page

Dive deep into the fascinating world of Vi Editor with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Vi Editor, a crucial aspect of UNIX. In this section, you will encounter a diverse range of MCQs that cover various aspects of Vi Editor, 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 Vi Editor. 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 Vi Editor. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Vi Editor MCQs | Page 2 of 18

Q11.
Substitution command is an ex-mode command.
Discuss
Answer: (a).True
Q12.
Which of the following symbol is used for substitution command?

a.

n

b.

N

c.

s

d.

S

Discuss
Answer: (c).s
Q13.
Which of the following is a correct syntax for performing substitution on a file?
Discuss
Answer: (a).:address/source_pattern/target_pattern/flag
Q14.
We cannot leave the flag field empty while performing the substitution.
Discuss
Answer: (b).False
Q15.
Which of the following commands can be used to replace ‘professor’ with ‘director’ throughout the whole file?
Discuss
Answer: (d).1,$s/professor/director/g and %s/professor/director/g
Q16.
Which of the following flag will be used for interactive substitution?
Discuss
Answer: (c).gc
Q17.
Which one of the following commands will be used to delete all the instances of string ‘manager’ in file003?
Discuss
Answer: (a).1,$s/manager/ /g
Q18.
Which one of the following command is invalid?
Discuss
Answer: (d).:1,%/file01/file02/g
Q19.
Search and replace operations can also use regular expressions for matching multiple patterns.
Discuss
Answer: (b).True
Q20.
For yanking text, ___ is used.

a.

d

b.

y

c.

c

d.

G

Discuss
Answer: (b).y
Page 2 of 18

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!