1.

Both ‘p’ and ‘P’ command puts text right/left or above/below on the basis of line deleted.(a) True(b) FalseThis question was posed to me during an interview for a job.The origin of the question is Editing Text in Vi Editor topic in chapter The Vi Editor of Unix

Answer»

Correct answer is (a) True

Explanation: If we’d deleted a PART of a LINE, then ‘p’ will PUT it to the right of the cursor and ‘P’ will put it to the LEFT of the cursor. SIMILARLY, if we’d deleted the entire line then ‘p’ will put it below the current cursor and ‘P’ will put it above the cursor.



Discussion

No Comment Found

Related InterviewSolutions