Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose two.)
A. Ctrl XX
B. Ctrl :W
C. Esc zz
D. Esc :wq
E. Esc ZZ
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose two.)
A. Ctrl XX
B. Ctrl :W
C. Esc zz
D. Esc :wq
E. Esc ZZ
D is correct but E is incorrect.
In order to be applicable it have to be:
Esc + Shift ZZ ( https://itsfoss.com/how-to-exit-vim/ )
The capital Z means Shift+z, as there is another answer with lower case z it’s obvious that upper case z (a.k.a. Shift+z) is meant.