relative paths same current working directory
absolute paths one absolute location to another, regardless of the current working directory
absolute and relative throws an exception
go up three levels to scratch is possible just from A, B cases
answer B, C
The two statements that print ..\..\..\answers\topsecret are options B and C.
In option B, p2.relativize(p3) constructs a relative path from p2 to p3. Since p2 represents the path /scratch/exam/answers/temp.txt, and p3 represents the path /scratch/answers/topsecret, the relative path from p2 to p3 is ..\..\..\answers\topsecret.
In option C, p1.relativize(p3) constructs a relative path from p1 to p3. Since p1 represents the path /scratch/exam/topsecret/answers, and p3 represents the path /scratch/answers/topsecret, the relative path from p1 to p3 is also ..\..\..\answers\topsecret
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ASPushkin
5 months agod7bb0b2
1 year agoOmnisumem
1 year, 5 months agoStavok
1 year, 6 months agoMukes877
1 year, 8 months agoTADIEWA
2 years, 1 month ago