Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

101.

ex mode is used for what purpose?(a) file handling(b) substitution(c) file handling and substitution(d) Inputting text in filesI had been asked this question in a national level competition.This intriguing question originated from Vi Basics and Modes topic in portion The Vi Editor of Unix

Answer»

The correct OPTION is (c) file handling and substitution

Easy explanation: EX mode performs various file handling and substitution OPERATIONS like saving the file, quitting the EDITOR, search and replace operations ETC.

102.

To insert text into a file, _____ mode is used.(a) Command mode(b) Input mode(c) Ex mode(d) def modeI have been asked this question in class test.Query is from Vi Basics and Modes in chapter The Vi Editor of Unix

Answer» CORRECT answer is (b) Input mode

To elaborate: Input mode PROVIDES us with a feature of inputting TEXT in files. Every KEY pressed in this mode is RECORDED in the file.
103.

What is the default mode of vi editor?(a) Command mode(b) Input mode(c) Ex mode(d) Insert modeI had been asked this question in class test.The doubt is from Vi Basics and Modes in chapter The Vi Editor of Unix

Answer»

The correct answer is (a) Command mode

To elaborate: The default mode of vi EDITOR is command mode, where every key which is pressed is interpreted as a command to RUN on the text. To perform operations on text like DELETING, COPYING, the FIRST step you’ll have to follow is to be in the command mode so that you can run commands according to your suitability.

104.

How many types of modes are used by vi editor?(a) 2(b) 4(c) 3(d) 1I had been asked this question in an interview for internship.Question is from Vi Basics and Modes in portion The Vi Editor of Unix

Answer»

The correct option is (c) 3

Explanation: Before working with VI editor, it is necessary to be familiar with the modes in which vi editor works. There are three DIFFERENT KINDS of modes, namely command mode, input mode and EX mode each of which is used for a specific PURPOSE.

105.

Which option is used by vi editor to open a file in read mode only?(a) -r(b) -R(c) -d(d) -fThe question was posed to me in an interview.My doubt is from Vi Basics and Modes in portion The Vi Editor of Unix

Answer»

Correct CHOICE is (B) -R

To EXPLAIN: To open an existing file in read-mode only, -R is used with the filename (as an argument). For EXAMPLE,

106.

Which editor is used by the UNIX system to edit files?(a) vi(b) notepad(c) word(d) notepad++This question was posed to me at a job interview.This is a very interesting question from Vi Basics and Modes in section The Vi Editor of Unix

Answer»

Correct choice is (a) vi

Best explanation: It doesn’t matter what kind of work we are doing on a UNIX system, we always NEED an editor to edit some system FILES or ordinary files. For this PURPOSE, vi editor is USED in UNIX. Currently, vim (vi improved) is an improved version which is supported by LINUX SYSTEMS.