In the Windows Operating System, if a file named config.ini is located in the root directory of the main drive, what is the correct and complete absolute path to reference this file?
Options / विकल्प
- A. config.ini
- B. C:\config.ini
- C. C:\Users\config.ini
- D. \config.ini
Correct Answer / सही उत्तर ✅ B. C:\config.ini
Detailed Explanation / विस्तृत व्याख्या
Absolute Path (पूर्ण पथ)
Hindi: Absolute Path वह पूरा पता होता है जो किसी फ़ाइल या फ़ोल्डर की सटीक लोकेशन बताता है। Windows में एक Absolute Path में निम्न शामिल होते हैं:
- Drive Letter (जैसे C:)
- Colon (:)
- Backslash (\)
- File/Folder Name
यदि config.ini फ़ाइल C ड्राइव की root directory में रखी है, तो उसका पूरा path होगा: C:\config.ini
English: An absolute path specifies the complete location of a file starting from the root of a drive. Since config.ini is stored directly in the root directory of the C drive, its complete path is: C:\config.ini
Why Other Options Are Incorrect?
- A. config.ini
Hindi: यह केवल फ़ाइल का नाम है, पूर्ण path नहीं।
English: This is only the filename and does not specify its location. - C. C:\Users\config.ini
Hindi: यह दर्शाता है कि फ़ाइल Users folder के अंदर है, जबकि प्रश्न में root directory बताई गई है।
English: This path places the file inside the Users folder, not in the root directory. - D. \config.ini
Hindi: यह root-relative path है, लेकिन इसमें drive letter नहीं है।
English: This is a root-relative path and does not explicitly identify the drive.
Important Concepts
Root DirectoryHindi: Root Directory किसी drive का सबसे ऊपरी स्तर (top-level folder) होता है। उदाहरण: C:\, D:\, E:\
English: The root directory is the highest-level directory of a drive. Examples: C:\, D:\, E:\
Absolute vs Relative Path| Absolute Path | Relative Path |
|---|---|
| C:\config.ini | config.ini |
| Complete location | Depends on current directory |
| Starts from root | Starts from current folder |
Exam Point / परीक्षा हेतु महत्वपूर्ण तथ्य ✅
- Absolute Path = Drive Letter + Full Location
- Root Directory of C Drive = C:\
- File in Root Directory = C:\filename.ext
- Windows uses backslash (\) as the path separator.
One-Liner
A file named config.ini stored in the root of the C drive is referenced by the absolute path C:\config.ini.
यदि config.ini फ़ाइल C ड्राइव की root directory में है, तो उसका पूर्ण path C:\config.ini होगा।
Related Vitorr Study Material
- Important Computer Terms: Cache, Registers, Operating System, Compiler, Interpreter and Assembler | महत्वपूर्ण कंप्यूटर शब्दावली
- Civil Service Values and Ethics in Public Administration: Integrity, Impartiality, Objectivity, Non-Partisanship, Empathy and Dedication to Public Service | लोक प्रशासन में सिविल सेवा मूल्य और नैतिकता: सत्यनिष्ठा, निष्पक्षता, वस्तुनिष्ठता, गैर-पक्षपात, समानुभूति और लोक सेवा के प्रति समर्पण
Quick Revision / Key Points
- An absolute path in Windows includes the drive letter, colon, backslash, and the full file or folder name.
- The root directory is the top-level folder of a drive, e.g., C:\.
- The correct absolute path for config.ini in the root of C drive is C:\config.ini.
- Relative paths do not specify the drive and depend on the current working directory.
- Windows uses backslash (\) as the path separator.