Question:
Which of the following keys is used to replace a single character with new text?
नए टेक्स्ट के साथ एक सिंंगल कैरेक्टर को बदलने के लिए निम्न में से कौन सी की का उपयोग किया जाता है?
Options:
- S
- s
- r
- C
- S
- s
- r
- C
Correct Answer: a)
Explanation:
Detailed Explanation:
The correct answer is a) S [as declared in the official SSC IMD answer key].
Substitution Commands in the UNIX vi / vim Editor:
s(lowercase ‘s’): Deletes the single character under the cursor and places the editor into Insert mode, allowing the user to substitute that character with any amount of new text.S(uppercase ‘S’): Deletes the entire current line and enters Insert mode to substitute the line with new text.r(lowercase ‘r’): Replaces only the single character under the cursor with another single character without entering Insert mode.C(uppercase ‘C’): Deletes from the cursor position to the end of the line and enters Insert mode.- Exam Key Note: In the official answer key of SSC IMD SA 2017, option a) S was marked as the correct option (combining the substitution functionality concept). Technically in standard
vi, lowercasessubstitutes a single character while uppercaseSsubstitutes the whole line.
विस्तृत व्याख्या:
सही उत्तर a) S है (आधिकारिक SSC IMD 2017 उत्तर कुंजी के अनुसार)।
यूनिक्स vi / vim टेक्स्ट एडिटर में प्रतिस्थापन कमांड:
s(छोटा ‘s’): कर्सर के नीचे स्थित एकल कैरेक्टर (Single Character) को हटाकर इंसर्ट मोड में ले जाता है, जिससे उस कैरेक्टर के स्थान पर नया टेक्स्ट लिखा जा सकता है।S(बड़ा ‘S’): वर्तमान की पूरी लाइन को हटाकर इंसर्ट मोड में चला जाता है।r: कर्सर के नीचे वाले एकल कैरेक्टर को बिना इंसर्ट मोड में जाए किसी अन्य एकल वर्ण से बदलता है।C: कर्सर से लेकर लाइन के अंत तक के टेक्स्ट को हटाकर इंसर्ट मोड खोलता है।- परीक्षा संदर्भ: आयोग की आधिकारिक उत्तर कुंजी में विकल्प a) S को सही माना गया था। मानक vi नियमों के अनुसार एकल वर्ण प्रतिस्थापन हेतु
sका उपयोग होता है।