1. Which vi editor command copies the current line of the file?
a) yy
b) yw
c) yc
d) none of the mentioned

a) yy
Explanation:
The command 'p' puts the copied text after the cursor.

2. Which command is used to close the vi editor?
a) q
b) wq
c) both (a) and (b)
d) none of the mentioned

c) both (a) and (b)
Explanation:
The command 'q' just closes the file and 'wq' saves and closes the file.

14. Sed maintains the hold space (a buffer) to:
a) copy the each line of input
b) save the data for later retrieval
c) both (a) and (b)
d) none of the mentioned

b) save the data for later retrieval
Explanation:
To copy the each line of input, sed maintains the pattern space.