\begin{tabular}{l} Which of the following is an example of a relative path? \\ - /file.txt \\ \hline Mome/user/Documents/file.txt \\ \hline Documents/file.txt \end{tabular}
Upstudy AI Solution
Answer
Solution
Answered by UpStudy AI and reviewed by a Professional Tutor


The Deep Dive
A relative path is a way of describing the location of a file or folder in relation to the current directory you're in, rather than from the root of the file system. In your examples, "Documents/file.txt" is a relative path because it specifies the location of the file "file.txt" starting from the "Documents" directory within the current working directory. In contrast, absolute paths like "/file.txt" and "Mome/user/Documents/file.txt" specify locations starting from the root directory, giving the full path to the file regardless of the current working directory. Using relative paths is often more flexible when navigating or linking files within the same parent directory.