Question: Problem 2 (8 points): Answer the following questions about absolute and relative filenames: a) What is the difference between an absolute filename and a relative
Problem 2 (8 points): Answer the following questions about absolute and relative filenames:
a) What is the difference between an absolute filename and a relative filename?
b) Assume you have a directory containing a computer program. This program reads and writes to a file that is always located inside this same directory. If you are going to be moving the directory to different locations on your computer, should you use an absolute or relative filename to refer to that file?
c) Would directory/files/ be considered absolute or relative?
d) Would /important_files/File16.txt be considered absolute or relative?
e) Would /opt/code/calculator.rb be considered absolute or relative?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
