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 11 of 18

Q101.
Quit (:q) command doesn’t work if the buffer is unsaved.
Discuss
Answer: (a).True
Q102.
Which of the following command will be used if we want to abort editing and quit the editor even if the buffer has been changed and not saved?
Discuss
Answer: (c).:q!
Q103.
In ex-mode, current line is represented by ___

a.

:

b.

$

c.

>

d.

.

Discuss
Answer: (d)..
Q104.
In ex-mode, last line is represented by ___

a.

:

b.

$

c.

>

d.

.

Discuss
Answer: (b).$
Q105.
‘:w’ command can be used to write selected lines.
Discuss
Answer: (a).True
Q106.
Which of the following command will be used to write the 4th line to file named file002?
Discuss
Answer: (c).: 4w file002
Q107.
Which of the following is not a valid command?
Discuss
Answer: (b).:w 1,$ file002
Q108.
How can we escape to the UNIX shell without quitting vi editor?
Discuss
Answer: (d).using ‘:sh’ command and using ctrl-Z
Q109.
To return back to the editor from shell prompt we use _____ command.
Discuss
Answer: (d).fg and exit
Q110.
vi editor stores most of its information in a hidden swap file.
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!