Multiple choice technology operating systems

Esc + :$s/mumbai/pune/g

  1. To put cursor at the end of the next occurance of either Mumbai or Pune

  2. To Find all occurrence of Mumbai and Replace with Pune with confirmation

  3. To Find all occurrence of Mumbai and Replace with Pune without confirmation

  4. To put cursor at the beginning of the next occurance of either Mumbai or Pune

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The vim command :$s/mumbai/pune/g substitutes all occurrences of 'mumbai' with 'pune' on the last line. The 'g' flag means global replacement within that line, and no confirmation is requested. Option B would require the 'c' flag (:s/mumbai/pune/gc) for confirmation prompts.