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?

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 Directory

Hindi

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 PathRelative Path
C:\config.iniconfig.ini
Complete locationDepends on current directory
Starts from rootStarts 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 होगा।

Article Revision Quiz
Read the article, then test how much you remember.
Click “Generate Quiz” to create a bilingual quiz from this article.