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
This section is not available anymore. Please use the main Exam Page.1z0-819 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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
10 months agod7bb0b2
1 year, 5 months agoOmnisumem
1 year, 10 months agoStavok
1 year, 11 months agoMukes877
2 years agoTADIEWA
2 years, 6 months ago