Explore topic-wise MCQs in Unix.

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

1.

To create a space for entering a new line of text above the current cursor location, ‘O’ command is used.

A. True
B. False
Answer» B. False
2.

After using ‘s’ or ‘S’, we are automatically left in insert mode.

A. True
B. False
Answer» B. False
3.

To replace the entire line irrespective of cursor position, we can use ____ command

A. s
B. 10s
C. S
D. 10s
Answer» D. 10s
4.

To replace 5 characters with new characters, which one of the following will be used?

A. s
B. 5S
C. 5s
D. S
Answer» D. S
5.

Which one of the following command is used to replace a single character with many?

A. s
B. r
C. R
D. S
Answer» B. r
6.

To replace all text on the right of the cursor position, we use ____ command.

A. r
B. R
C. s
D. I
Answer» C. s
7.

vi automatically switches from command mode to input mode when we press ‘r’.

A. True
B. False
Answer» B. False
8.

WHICH_ONE_OF_THE_FOLLOWING_COMMAND_IS_USED_TO_REPLACE_A_SINGLE_CHARACTER_WITH_MANY??$

A. s
B. r
C. R
D. S
Answer» B. r
9.

To replace the entire line irrespective of cursor position, we can use ____ command$

A. s
B. 10s
C. S
D. 10s
Answer» D. 10s
10.

To_replace_5_characters_with_new_characters,_which_one_of_the_following_will_be_used?$

A. s
B. 5S
C. 5s
D. S
Answer» D. S
11.

Which of the following command is not used for entering or replacing text?

A. ‘a’ and ‘A’
B. ‘s’ and ‘S’
C. ‘r’ and ‘R’
D. :q
Answer» E.
12.

To create a space for entering a new line of text above the current cursor location, ‘O’ command is used.$

A. True
B. False
Answer» B. False
13.

Which command creates a space for entering a new line of text below the current cursor location?

A. o
B. O
C. a
D. S
Answer» B. O
14.

After_using_‘s’_or_‘S’,_we_are_automatically_left_in_insert_mode.$

A. True
B. False
Answer» B. False
15.

To replace all text on the right of the cursor position, we use ____ command?

A. r
B. R
C. s
D. I
Answer» C. s
16.

vi automatically switches from command mode to input mode when we press ‘r’.$

A. True
B. False
Answer» B. False
17.

To replace a single character, we use ____ command

A. r
B. R
C. s
D. i
Answer» B. R
18.

Which command appends text at the end of the current line?

A. A
B. a
C. i
D. I
Answer» B. a
19.

To append text after the current cursor location, we can use ____ command

A. A
B. a
C. i
D. I
Answer» C. i
20.

Which command will be used to insert text at the beginning of the line?

A. i
B. I
C. a
D. A
Answer» C. a
21.

Which command is used to insert text before the current cursor location?

A. a
B. A
C. I
D. i
Answer» E.
22.

Input mode is used for ____________

A. editing text in files
B. invoking commands on files
C. saving files
D. performing substitution
Answer» B. invoking commands on files